/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #007bff;
    font-size: 20px;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    text-align: center;
}

p {
    color: #666;
}

/* Header */
header {
    background-color: #fff;
    color: #007bff;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.logo {
    height: 40px;
    margin-right: 5px;
    cursor: pointer;
}

/* Main Menu */
.main-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
	margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    color: #007bff;
    text-decoration: none;
    padding: 10px;
    display: block;
    transition: background-color 0.3s;
}

.main-menu > li > a:hover {
    background-color: #f1f1f1;
    border-radius: 5px;
}

/* Dropdown Menu */
.dropdown .dropbtn {
    background-color: #007bff;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff; /* Changed to white to remove the blue border effect */
    min-width: 160px;
    right: 0;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #0056b3;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    background-color: #333;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 14px;
    white-space: nowrap;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Dropdown Button */
.dropbtn {
    background-color: #007bff;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.dropbtn:hover {
    background-color: #0056b3;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    right: 0; /* Aligns the dropdown content to the right */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: #0056b3;
}

/* Container styles */
.container ul {
    list-style-type: none;
    padding: 0;
}

.container ul li {
    padding: 10px;
    background-color: #f4f4f4;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.container ul li:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
/*@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-menu {
        flex-direction: column;
        width: 100%;
    }

    .main-menu > li {
        width: 100%;
    }

    .main-menu > li > a {
        padding: 10px 20px;
        text-align: left;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background-color: #fff;
    }

    .dropdown-content a {
        padding: 10px;
        border-bottom: 1px solid #ccc;
    }

    .dropdown-content a:hover {
        background-color: #f1f1f1;
    }
}
*/


.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.title-container {
    text-align: center;
}

.welcome-text {
    color: #666;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

/* Friendship History Table */
#friendship-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#friendship-history-table th, #friendship-history-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

#friendship-history-table th {
    background-color: #007bff;
    color: white;
}

#friendship-history-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#friendship-history-table tr:hover {
    background-color: #ddd;
}

#friendship-history-table td {
    color: #333;
    font-size: 14px;
}






/* Border pictures */

.transparent-border {
        position: relative;
        display: inline-block;
        max-width: 50%;
        overflow: hidden;
    }
    .transparent-border img {
        display: block;
        max-width: 100%;
        height: auto;
        -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 90%);
        mask-image: radial-gradient(circle, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 83%);
    }
	
	
	
	
	
	
	
	
	

/* tooltip messages */

/* styles.css */

/* styles.css */

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position the tooltip above the text */
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Form styling */
form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-top: 10px;
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

form select {
  margin-top: 10px;
}

form input[type="submit"] {
  margin-top: 20px;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

form input[type="submit"]:hover {
  background-color: #0056b3;
}





	

/* Letter Styles */
.letter-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.letter-front, .letter-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.letter-front img, .letter-back img {
    width: 100%;
    height: auto;
}

.letter-content {
    position: absolute;
    top: 20%;
    left: 10%;
    right: 10%;
    text-align: left;
}

button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

#delivery_time_info {
    font-size: 0.9em;
    color: #666;
}

/* Letter Preview Styles */
.preview {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.preview-front, .preview-back {
    width: 45%;
}

.preview-front img, .preview-back img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

#delivery_time_info {
    font-size: 0.9em;
    color: #666;
}
















/* Letter Styles */
.letter-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
}

.letter {
    width: 100%;
	height: 400px;
    transition: transform 1s;
    transform-style: preserve-3d;
}

.letter.flip {
    transform: rotateY(180deg);
}

.letter-side {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.letter-front, .letter-back {
    background-size: cover;
    background-position: center;
}

.letter-back {
    transform: rotateY(180deg);
}


.letter-content {
    /*background-color: rgba(255, 255, 255, 0.35);*/
	background-color: rgba(255, 255, 255, 0);
    padding: 20px;
    border-radius: 10px;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
    overflow-y: auto;
    max-height: 300px;
    width: 75%;
	height: 60%;
    text-align: left;
}

.flip-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.flip-button:hover {
    background-color: #0056b3;
}





/* Profile Card Styles */
.profile-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-picture {
    flex: 1;
    text-align: center;
}

.profile-picture img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    /*border: 2px solid #007bff; */
}

.profile-details {
    flex: 2;
    padding-left: 20px;
}

.profile-actions {
    text-align: center;
    margin-top: 20px;
}



/* Friendship History Table */
#friendship-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#friendship-history-table th, #friendship-history-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

#friendship-history-table th {
    background-color: #007bff;
    color: white;
}

#friendship-history-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#friendship-history-table tr:hover {
    background-color: #ddd;
}

#friendship-history-table td {
    color: #333;
    font-size: 14px;
}










.container-search {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Friendship History Table */
#search-result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#search-result-table tr {
    border-bottom: 1px solid #ddd;
}

#search-result-table tr:hover {
    background-color: #f2f2f2;
}

.user-cell {
    display: flex;
    align-items: center;
    padding: 10px;
}

.user-image {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 10px;
}

.user-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-details strong {
    font-size: 18px;
    margin-bottom: 5px;
    text-align: left;
}

.user-details p {
    margin: 0;
    font-size: 14px;
    color: #666;
    text-align: left;
}

.action-cell {
    text-align: right;
    padding: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #007bff;
    color: white;
    padding: 8px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a, .dropdown-content span {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content .disabled {
    color: #ccc;
    cursor: not-allowed;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* Search Input */
#search {
    width: 95%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

#search:focus {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    outline: none;
}

/* Add these styles for the flag images */
.flag {
    width: 24px;
    max-height: 24px;
    margin-right: 10px;
    cursor: pointer;
}


.consistent-text {
    color: #666; /* Adjust this to the desired text color */
}







.edit_settings_container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.edit_settings_h2 {
    text-align: center;
    margin-bottom: 20px;
}

.edit_settings_profile_picture_container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    cursor: pointer;
}

.edit_settings_profile_picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    /*border: 2px solid #007bff; */
}

.edit_settings_hover_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.edit_settings_profile_picture_container:hover .edit_settings_hover_overlay {
    opacity: 1;
}


.edit_settings_form_group {
    margin-bottom: 20px;
}

.edit_settings_form_group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.edit_settings_form_group textarea,
.edit_settings_form_group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.edit_settings_button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.edit_settings_button:hover {
    background-color: #0056b3;
}


.edit_settings_button:hover {
    background-color: #0056b3;
}
