@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0f4c81;
    --light-gray: #6d6d6d;
    --text-gray: #363845;
    --medium-gray: #555;
    --primary-yellow: #fa9805;
    --my-white: #f5f5f5;
    --cards-bg: #d9d9d952;
    --border-color: #e0e0e0;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.logo-container {
    display: flex;
    justify-content: space-between;
}

#logo {
    font-family: 'Nunito', sans-serif;
    font-size: 25px;
    font-weight: 600;
    color: var(--primary-color);
}

.navbar {
    width: 100%;
}

.navbar-links {
    display: flex;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    transition: .3s linear all;
}


.navbar-links.active {
    opacity: 1;
    visibility: visible;
    padding: 2rem 0;
    max-height: 100rem;
}

.navbar-links a,
.navbar-links a:link,
.navbar-links a:visited,
.navbar-links a:hover,
.navbar-links a:active {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: var(--text-gray);
}

#review-link-add {
    color: var(--primary-yellow);
    font-weight: 600;
}

#logout-link {
    font-weight: 600;
}

.hamburger {
    display: none;
    background-color: transparent;
    color: var(--medium-gray);
    width: 2.8rem;
    height: 2.8rem;
}

.hamburger.active {
    display: block;
}

/* @media (max-width: 768px) {
    .hamburger-menu {}

    .navbar {
        display: none;
    }
} */

.footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--light-gray);
}

.footer-header {
    margin-top: 2rem;
}

.footer-header p {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--medium-gray);
}

#footer-header-text {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    color: var(--text-gray);
}

.footer-socials {
    font-family: 'Nunito';
    padding-bottom: 2rem;
}

.footer-socials p {
    margin-bottom: .2rem;
}

.footer-social-links {
    display: flex;
    gap: .4rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    font-family: 'Nunito';
    font-size: 16px;
}

.footer-cr {
    font-family: 'Nunito', sans-serif;
}

.socials-link img {
    width: 1.8rem;
    height: 1.8rem;
}

.star-rating {
    display: flex;
    align-items: center;
    justify-content: center;
}

.star {
    color: gray;
    font-size: 20px;
    /* Adjust font size as needed */
    cursor: pointer;
}

.star.highlighted {
    color: var(--primary-yellow);
}

.navbar-auth,
.nav-links {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    align-items: center;
}

/***** MODAL DIALOG ****/
#modal-form {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 2rem;
}

#modal {
    font-family: 'Nunito', sans-serif;
    /* Underlay covers entire screen. */
    position: fixed;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;

    /* Flexbox centers the .modal-content vertically and horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;

    /* Animate when opening */
    animation-name: fadeIn;
    animation-duration: 150ms;
    animation-timing-function: ease;
}

#modal>.modal-underlay {
    /* underlay takes up the entire viewport. This is only
	required if you want to click to dismiss the popup */
    position: absolute;
    z-index: -1;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

#modal>.modal-content {
    /* Position visible dialog near the top of the window */
    margin-top: 10vh;

    /* Sizing for visible dialog */
    width: 80%;
    max-width: 600px;

    /* Display properties for visible dialog*/
    border: solid 1px #999;
    border-radius: 8px;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
    background-color: white;
    padding: 3rem 20px 20px 20px;

    /* Animate when opening */
    animation-name: zoomIn;
    animation-duration: 150ms;
    animation-timing-function: ease;
}

#modal.closing {
    /* Animate when closing */
    animation-name: fadeOut;
    animation-duration: 150ms;
    animation-timing-function: ease;
}

#modal.closing>.modal-content {
    /* Animate when closing */
    animation-name: zoomOut;
    animation-duration: 150ms;
    animation-timing-function: ease;
}

#modal .btn {
    font-family: 'Nunito', sans-serif;
    padding: .2rem .5rem;
    border-radius: 5%;
}

#modal .btn-primary {
    background-color: #fa9805;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.9);
    }
}

@media screen and (max-width:648px) {
    #modal h1 {
        font-size: 26px;
    }

    #modal-form {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media screen and (min-width:992px) {
    button.hamburger {
        display: none;
        visibility: hidden;
    }

    .hamburger.active {
        display: none;
    }

    .navbar {
        display: flex;
        align-items: center;
    }

    .navbar-links {
        flex-direction: row;
        opacity: 1;
        visibility: visible;
        max-height: 10rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
        transition: none;
        gap: 1rem;
    }

    .navbar-links a,
    .navbar-links a:link,
    .navbar-links a:visited,
    .navbar-links a:hover,
    .navbar-links a:active {
        font-family: 'Nunito', sans-serif;
        font-size: 20px;
        font-weight: 400;
        color: var(--primary-color);
    }

    .nav-links {
        margin-left: 16%;
        flex-direction: row;
        gap: 5rem;
    }

    #logo {
        font-size: 42px;
    }

    #review-link-add,
    #logout-link {
        display: none;
        visibility: hidden;
        opacity: 0;
    }

    #auth-link,
    #profile-link {
        color: var(--my-white);
        background-color: var(--primary-yellow);
        padding: .2rem 1.5rem;
        border-radius: 100px;
    }
}
