/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Katibeh&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Karla&family=Katibeh&display=swap');

/* Define global colors */
:root {
    --color-front: #FFD077;
    --color-accent: #803414;
    --color-footer: #ffe18f;
    --nav-color: #E5838F;

    --section-1-main: #026F76;
    --section-1-accent: #01CBD8;
    --section-1-secondary: #014f55;
    --section-1-tertiary: #2A4F54;

    --section-2-main: #E27683;
    --section-2-accent: #8E2140;
    --section-2-secondary: #F5ABB4;
    --section-2-tertiary: #D77B82;

    --section-3-main: #EB914E;
    --section-3-accent: #FFCB69;
    --section-3-secondary: #DA5822;
    --section-3-tertiary: #CE5F42;

    --section-4-main: #7A7D62;
    --section-4-accent: #D8DCB7;
    --section-4-secondary: #B1B594;
    --section-4-tertiary: #919474;
}

/* General */
* {
    box-sizing: border-box;
}

.img-fluid {
    max-width: 100%
}

.ad-container {
    background: var(--color-footer);
    width: 100%;
    text-align: center;
    padding: 100px;
}

body {
    scroll-behavior: smooth;
    margin: 0;
}

/* Footer */
.footer {
    font-family: 'Katibeh', cursive;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 8vh 0;
}

.footer-front {
    background-color: var(--color-footer);
    color: black;
}

.footer-spacer {
    height: 3vh;
}

.footer-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.footer-link>a {
    color: black;
    text-decoration: none;
    font-size: 2rem;
    text-transform: uppercase;
}

/* Navigation */
.navbar {
    position: relative;
    font-family: 'Katibeh', cursive;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 2vh 0;
    height: 8vh;
    background-color: var(--nav-color);
}

.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.navbar-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2vw;
    padding-left: 1vw;
    padding-right: 1vw;
    width: 100%;
}

.navbar-icon {
    height: auto;
    width: 4rem;
    cursor: pointer;
}

.navbar-logo {
    margin: 0;
    padding: 0;
}

.navbar-dropdown {
    position: absolute;
    top: 8vh;
    left: 0;
    min-width: 20vw;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    --webkit-backdrop-filter: blur(10px);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.2s ease-in-out;
    min-height: 10vh;
}

.navbar-dropdown-show {
    transform: scaleY(1);
    transition: transform 0.2s ease-in-out;
}

.navbar-dropdown-item {
    font-size: 1.5rem;
    color: var(--color-front);
    text-decoration: none;
    padding: 1rem;
    display: block;
    transition: background-color 0.2s ease-in-out;
}

.navbar-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.2s ease-in-out;
}

.navbar-dropdown-item > a {
    color: black;
    text-decoration: none;
    font-family: 'Karla', sans-serif;
}

.navbar-dropdown-input {
    width: 100%;
    height: 3vh;
    border: none;
    background-color: transparent;
    color: var(--color-accent);
}

.navbar-dropdown-input::placeholder {
    color: var(--color-accent);
}

.navbar-dropdown-input:focus {
    outline: none;
    border-bottom: 2px solid var(--color-accent);
}

.navbar-dropdown-item.active > a {
    text-decoration: underline;
}

.navbar-search-input {
    width: 0px;
    display: none;
    height: 3vh;
    border: none;
    background-color: transparent;
    color: var(--color-accent);
    transition: width 0.2s ease-in-out;
    border-bottom: 1px solid var(--color-accent);
}

.navbar-search-input::placeholder {
    color: var(--color-accent);
}

.navbar-search-input-show {
    display: block;
    visibility: visible;
    width: 10vw;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: width 0.2s ease-in-out;
}

.navbar-search-input:focus {
    outline: none;
    border-bottom: 2px solid var(--color-accent);
}

.navbar-search {
    position: relative;
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.navbar-search-results {
    position: absolute;
    /* Position the results below the navbar and to the right */
    top: 8vh;
    right: 4vw;
    width: 20vw;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    --webkit-backdrop-filter: blur(10px);
    z-index: 10;
    border-radius: 10px;
    overflow: hidden;
}

.navbar-search-result {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    color: var(--color-front);
    display: block;
    transition: background-color 0.2s ease-in-out;
    border-bottom: 1px solid var(--color-accent);
}

.navbar-search-result:last-child {
    border-bottom: none;
}

.navbar-search-result > a {
    text-decoration: none;
}

.navbar-search-result:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.2s ease-in-out;
}

#navbar-mobile-search {
    display: none;
}

.navbar-dropdown-result {
    font-size: 1rem;
    border-bottom: 1px solid var(--color-accent);
}

.navbar-dropdown-result:last-child {
    border-bottom: none;
}

/* Section-specific styles */
.navbar-section-1 {
    background-color: var(--section-1-accent);
    color: white;
}

.navbar-section-1-search-input {
    color: white;
    border-bottom: 1px solid white;
}

.navbar-section-1-search-input:focus {
    border-bottom: 2px solid white;
}

.footer-section-1 {
    background-color: var(--section-1-secondary);
}

.navbar-section-2 {
    background-color: var(--section-2-secondary);
    color: white;
}

.navbar-section-2-search-input {
    color: white;
    border-bottom: 1px solid white;
}

.navbar-section-2-search-input:focus {
    border-bottom: 2px solid white;
}

.footer-section-2 {
    background-color: var(--section-2-secondary);
}

.navbar-section-3 {
    background-color: var(--section-3-secondary);
    color: white;
}

.navbar-section-3-search-input {
    color: white;
    border-bottom: 1px solid white;
}

.navbar-section-3-search-input:focus {
    border-bottom: 2px solid white;
}

.footer-section-3 {
    background-color: var(--section-3-secondary);
}

.navbar-section-4 {
    background-color: var(--section-4-secondary);
    color: white;
}

.navbar-section-4-search-input {
    color: white;
    border-bottom: 1px solid white;
}

.navbar-section-4-search-input:focus {
    border-bottom: 2px solid white;
}

.footer-section-4 {
    background-color: var(--section-4-secondary);
}

@media screen and (max-width: 768px) {
    .navbar-search {
        display: none;
    }

    #navbar-mobile-search {
        display: block;
    }

    .navbar-dropdown {
        min-width: 100vw;
    }

    .ad-container {
        padding: 20px;
    }
}