@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

:root {
    --primary-color: #d23597;
    --secondary-color: #d2a00b;
    --tertiary-color: #fff;
    --quaternary-color: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(0deg, var(--primary-color), var(--secondary-color));
    font-size: 16px;
    line-height: 1.5;
    max-width: 100vw;
    min-height: 100vh;
    scroll-behavior: smooth;
}

.container {
    max-width: 100%;
    margin: auto;
    padding: 0 20px;
}

.container-no-margin {
    max-width: 100%;
    padding: 0 20px;
}

.fixed-home-button {
    position: fixed;
    left: 3vh;
    top: 3vh;
    text-decoration: none;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 24px;
    background: white;
    width: 48px;
    height: 48px;
    line-height: 24px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    display: flex;
    justify-content: center;
    align-items: center;

    &:hover {
        color: var(--primary-color);
    }
}

.section-top {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300vh;
    background-color: var(--tertiary-color);
    flex-direction: column;
    margin: auto;
}

.section {
    display: flex;
    min-height: 90vh;
    justify-content: center;
    align-items: center;
    background-color: var(--tertiary-color);
    flex-direction: column;
    margin: auto;
}

.section-dashboard {
    display: flex;
    min-height: 90vh;
    background-color: var(--tertiary-color);
    flex-direction: column;
    margin: auto;
}

.hero-section h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Merriweather', serif;
}

.hero-section p {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
}

.hero-section .scroll-down-arrow {
    position: absolute;
    bottom: 5vh;
    left: calc(50% - 1rem);
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

.hero-section .scroll-down-arrow img {
    width: 2rem;
    height: 2rem;
}

.card-dashboard {
    background-color: var(--tertiary-color);
    margin: auto;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.home-card:hover {
    background: linear-gradient(40deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.card-content {
    padding: 15px;
    text-align: center;
    text-decoration: none !important;
}

.card-content h3 {
    margin: 10px 0;
    color: var(--quaternary-color);
    font-size: 1.5rem;
}

.card-content p {
    margin: 10px 0;
    color: var(--quaternary-color);
}

.home-card:hover .card-content h3, .home-card:hover .card-content p {
    color: white;
}

.card-content p {
    color: var(--secondary-color);
    font-size: 1rem;
}

.form-section {
    min-height: 60vh;
}

.form-group {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 30px;
    z-index: 99;
    transition: all .3s ease-in-out;

    &:focus-within {
        transform: translateY(-5px);
    }
}

.nav-buttons {
    background-color: white;
    color: var(--primary-color);
    font-weight: bolder;
    padding: 8px 40px;
    border: none;
    border-radius: 5px;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.nav-buttons:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.nav-buttons-secondary {
    background-color: white;
    color: var(--secondary-color);
    padding: 8px 40px;
    border: none;
    border-radius: 5px;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-transform: capitalize;
    font-weight: 400;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all .3s ease-in-out;
}

.nav-buttons-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0px;
    transition: all .3s ease-in-out;
}

/* outline when focused */
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="date"]:focus {
    outline: none;
    border: none;
    border-bottom: 2px solid var(--secondary-color);
    box-shadow: none;
}

.errorField {
    background: #f3a3a3;
}

.important {
    color: red;
    font-weight: bold;
}

/* Ensure the modal is centered */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-dialog-centered::before {
    display: block;
    height: calc(100vh - 100%);
    content: '';
}

textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0px;
    transition: all .3s ease-in-out;
}

textarea:focus {
    outline: none;
    border: none;
    border-bottom: 2px solid var(--secondary-color);
    box-shadow: none;
}

input[type="radio"] {
    margin: 10px 5px 10px 0;
}

input[type="checkbox"] {
    margin: 10px 5px 10px 0;
}

.ui-widget.ui-slider-handle {
    background-color: var(--primary-color) !important;
    border: none !important;
}

.ui-widget.ui-widget-content {
    border: 1px solid var(--primary-color);
    width: 100%;
    margin: 10px 0;
    height: 10px !important;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    border-radius: 50%;
    background: var(--secondary-color) !important;
    border: 1px solid var(--tertiary-color);
    height: 20px !important;
}

.ui-slider-range {
    background: var(--secondary-color) !important;
    border: none;
}

.filter-section {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    height: 100%;
    overflow-y: scroll;
    background: linear-gradient(10deg, var(--primary-color), var(--secondary-color));
}

.filter-section-button {
    display: none;
}

.parent .content-section {
    display: flex;
    justify-content: center;
    align-items: center;
    /*flex-wrap: wrap;*/
    gap: 10px;
    height: 100vh;
    overflow-y: scroll;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }

}

.navbar-brand-hidden {
    display: none !important;
}

.navbar-brand-show {
    display: block !important;
}

@media screen and (max-width: 768px) {
    main {
        padding: 2.5vh;
    }

    .hero-section {
        min-height: 95vh;
    }

    .form-section {
        min-height: 65vh;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .filter-section-button {
        display: inline-block;
    }
}

.responsive-image {
    width: 100%; /* Ensure responsive width */
    max-width: 500px; /* Maximum width */
    height: auto; /* Maintain aspect ratio */
    max-height: 500px; /* Maximum height */
    border-radius: 15px; /* Border radius */
}

@media (max-width: 500px) {
    .responsive-image {
        width: 100%; /* Make sure the image scales down for smaller screens */
        height: 100%; /* Maintains aspect ratio */
    }
}

/* ACCOUNTS CSS */

/* Basic table styling */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px 12px;
    border: 1px solid black;
    text-align: left;
}

th {
    background-color: var(--primary-color);
    color: white;
}

/* Button styling */
.btn-container {
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 5px 10px;
    margin: 0 2px;
    border: none;
    cursor: pointer;
}

.btn-edit {
    background-color: #4CAF50;
}

.btn-delete {
    background-color: #f44336;
}

#editForm {
    display: flex;
    flex-direction: column;
}

.button-container {
    display: flex;
    justify-content: flex-end; /* Align the button container to the right */
    align-content: center;
    align-items: center;
    margin-top: 10px; /* Add some space from the top */
}

.modal-button {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    border: none; /* Remove border */
}

/* Style for select element */
#role {
    border: none; /* Remove border */
    padding: 10px; /* Add padding for better appearance */
    background-color: #f9f9f9; /* Light grey background */
    font-size: 16px; /* Font size */
}

/* Optional: Add styling for focus state */
#role:focus {
    outline: none; /* Remove outline on focus */
    border-color: #4CAF50; /* Add border color on focus */
}

/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px; /* Maximum width */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    color: #aaa;
    text-align-last: end;
    float: inherit;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-button {
    padding: 7px 14px;
    margin: 6px 3px;
    cursor: pointer;
    border-radius: 4px;
}

.modal-button-cancel {
    background-color: #ccc;
    color: black;
}

.modal-button-delete {
    background-color: #f44336;
    color: white;
}

@media (max-width: 1300px) {
    .modal-content {
        width: 80%;
        max-width: 500px;
    }
}

/* STYLES CSS */

.section-top {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300vh;
    background-color: var(--tertiary-color);
    flex-direction: column;
    margin: auto;
}

.section {
    display: flex;
    min-height: 90vh;
    justify-content: center;
    align-items: center;
    background-color: var(--tertiary-color);
    flex-direction: column;
    margin: auto;
}

.section-admin {
    display: flex;
    min-height: 70vh;
    background-color: var(--tertiary-color);
    flex-direction: column;
    margin: auto;
}

.section-dashboard {
    display: flex;
    min-height: 90vh;
    background-color: var(--tertiary-color);
    flex-direction: column;
    margin: auto;
}

.about-pictures {
    object-fit: cover;
    height: 100%;
}

.rivkahFont {
    color: var(--primary-color) !important;
    font-family: "American Typewriter", serif;
    font-size: 40px;
    font-weight: 300;
    position: relative;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.rivkahFont-outer-main {
    color: var(--primary-color) !important;
    font-family: "American Typewriter", serif;
    font-size: 40px;
    font-weight: 300;
    position: relative;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.carousel-item {
    height: 100vh; /* Full height minus navbar height */
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.navbar {
    position: relative;
    width: 100%;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.0); /* Transparent background */
    z-index: 7;
}

.navbar-dashboard {
    background: linear-gradient(40deg, var(--secondary-color),);
    position: relative;
    padding: 0;
    z-index: 7;
}

.navbarOuterMain {
    color: var(--tertiary-color);
    position: sticky;
    width: 100%;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.0); /* Transparent background */
}

.nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor; /* Use the color of the text */
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.nav-link:hover {
    color: #FF65C3FF; /* Change text color on hover (optional) */
}

.nav-link:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.nav-link-outer-main {
    text-decoration: none !important;
    color: white !important; /* White text */
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-link-outer-main::after {
    text-decoration: none !important;
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor; /* Use the color of the text */
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.nav-link-outer-main:hover::after {
    text-decoration: none !important;
    transform: scaleX(1);
    opacity: 1;
}

.carousel-indicators li {
    background-color: #000; /* Indicator color */
    width: 12px;
    height: 12px;
    border: 1px solid #FF65C3FF; /* Indicator border */
    border-radius: 50%; /* Make indicators round */
}

.carousel-indicators .active {
    background-color: #FF65C3FF; /* Active indicator color */
}

.rounded-image {
    width: 500px; /* Set the width of the circle */
    height: 500px;
    transform: translate3d(0%, 10%, 10px);
    /* Set the height of the circle */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.30);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50%;
    object-fit: cover; /* Ensure the image covers the entire circular area */
}

.rounded-image:hover {
    /*transform: translateX(-2px);*/
    /* Move image up when hovered */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.40); /* Add shadow effect */
}

.typewriter {
    font-family: "American Typewriter", serif;
}

.textColor {
    color: #FF65C3FF !important;
}

@media only screen and (max-width: 700px) {
    .carousel-inner {
        height: 75vh; /* Full height minus navbar height */
    }

    .rivkahFont {
        font-size: 25px;
        color: white !important;
    }

    .carousel-item img {
        transform: scale(0.95); /* Zoom out to 35% */
        object-fit: contain; /* Ensure it's properly contained */
        width: 100%; /* Reset width property */
        height: 95%; /* Maintain aspect ratio */
    }

    .rounded-image {
        width: 400px; /* Set the width of the circle */
        height: 400px;
    }

    .navbar-brand, .nav-link {
        text-decoration: none;
        color: white !important; /* White text */
    }

    .textColor {
        color: white !important;
    }

    .navbar-container {
        top: 5%; /* Adjust top position if needed */
    }

    .footerFrontpage {
        display: block;
    }
}

.heart {
    position: relative;
    width: 25px; /* 32px * 0.8 = 25.6px */
    height: 25px; /* 32px * 0.8 = 25.6px */
    background-color: #FF65C3FF;
    display: inline-block;
    transform: rotate(-45deg);

    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 25px; /* 32px * 0.8 = 25.6px */
    height: 25px; /* 32px * 0.8 = 25.6px */
    border-radius: 50%;
    background-color: #FF65C3FF;
}

.heart::before {
    top: -12px; /* 16px * 0.8 = 12.8px */
    left: 0; /* No change needed */
}

.heart::after {
    top: 0; /* No change needed */
    left: 12px; /* 16px * 0.8 = 12.8px */
}

.profile-container {
    width: 97vw;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    overflow: auto;
}

.profile-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.profile-item {
    margin-bottom: 0.5rem;
}

.profile-item label {
    font-weight: bold;
}

.profile-item span {
    display: block;
}

.container-profile {
    max-width: 900px;
    margin-top: 2rem;
}

/* Heartbeat animation */
@keyframes beat {
    0%, 20%, 40%, 60%, 80%, 100% {
        transform: scale(1) rotate(-45deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: scale(1.05) rotate(-45deg); /* Beat grows */
    }
}

.heart {
    animation: beat 9s infinite;
}

#music {
    display: none;
}

.floating-text {
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 100px;
    position: relative;
    animation: breath 18s infinite; /* Applying floating animation */

    /* Adding text shadow to enhance floating effect */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.info-login {
    font-size: 16px !important;
    font-style: normal !important;
    color: black !important;
    text-align: left !important;
}

#checkedMessage {
    display: none; /* Hidden by default */
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(210, 160, 11, 0.1) !important;
    border: 1px solid #d0d7dc;
    border-radius: 5px;
    font-size: 14px;
}

.male-match {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(210, 160, 11, 0.1) !important;
    border: 1px solid #d0d7dc;
    border-radius: 5px;
}

.female-match {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(210, 53, 151, 0.1) !important;
    border: 1px solid #d0d7dc;
    border-radius: 5px;
}

@keyframes breath {
    0%, 20%, 40%, 60%, 80%, 100% {
        transform: scale(1);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: scale(1.05); /* Beat grows */
    }
}

/*dashboard css*/

/*.body-dashboard {*/
/*    height: 100% !important;*/
/*    background: linear-gradient(0deg, var(--primary-color), var(--secondary-color));*/
/*}*/

.parent {
    display: grid !important;
    grid-template-columns: minmax(150px, 20%) 1fr !important;
}

.avatar-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 5px 5px 0 0;
}

.card {
    padding: 0px 0 10px 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
}

.responsive-image {
    width: 100%; /* Ensure responsive width */
    max-width: 400px; /* Maximum width */
    height: auto; /* Maintain aspect ratio */
    max-height: 400px; /* Maximum height */
    border-radius: 15px; /* Border radius */
}

@media (max-width: 500px) {
    .responsive-image {
        width: 100%; /* Make sure the image scales down for smaller screens */
        height: 100%; /* Maintains aspect ratio */
    }
}

#filters-section.hidden {
    display: none;
}

#filters {
    font-size: 14px;
}

@media (max-width: 768px) {
    .parent {
        display: block !important;
    }

}

.add-admin-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    max-width: 300px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
}

.text-black {
    color: black;
}

.notes {
    list-style: none; /* Remove default bullet points */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes:before {
    content: ' ➤ '; /* Custom bullet – can be replaced with any symbol/icon */
    margin-right: 0.5rem;
    color: #fdb4b4; /* Bullet color */
    font-size: 0.4rem;
}

.text-blue {
    color: #0077ff;
}

.text-red {
    color: red;
}
.text-small {
    font-size: 12px;
    color: #999;
}
.text-26 {
    font-size: 26px;
}

.text-22 {
    font-size: 22px;
}

.text-14 {
    font-size: 14px;
}

.hidden {
    display: none !important;
}

.closeInfo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.display-error {
    background-color: #fce4e4;
    border: 1px solid #fcc2c3;
    float: none;
    padding: 20px 30px;
    color: #cc0033;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    line-height: 20px;
    text-shadow: 1px 1px rgba(250,250,250,.3);
}

.toggle-password {
    float: right;
    cursor: pointer;
    margin-left: 5px;
}
.tooltip {
    position: relative;
}

.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%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px; /* Adjust the size as needed */
    border-radius: 4px;
    line-height: 1.5;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.match-btn {
    width: 100%;
    border: 1px solid #198253;
}

.matchers {
    height: 90vh; /* Fixed height on larger screens */
    overflow-y: auto; /* Enable vertical scrolling */
}

@media (max-width: 768px) { /* For small devices (e.g., tablets, phones) */
    .matchers {
        height: auto; /* Let it adjust to content */
        max-height: 100vh; /* Take all available vertical space */
        overflow-y: visible; /* No scrolling */
    }
}

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050; /* Ensure it appears above other elements */
    text-align: center;
    background-color: transparent; /* Optional: semi-transparent background */
    padding: 20px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.d-none {
    display: none !important;
}

#profile_data span, .profile-item span, #profile_generic_data span {
    margin-left: 15px;
}

#profile_data label, .profile-item label, #profile_generic_data label {
    color: var(--primary-color);
}
