.anchor {
    display: block;
    position: relative;
    top: -30vh;
    visibility: hidden;
}

.screenTop {
    position: fixed;
    background-color: #3a84ef;
    width: 100%;
    justify-content: center;
    z-index: 100;
}

.header-stuff {
    height: 27vh;
}

#siteHeader {
    height: 16vh;
}

#headerPic {
    margin-left: auto;
    margin-right: auto;
    height: 100%;
}

.headers {
    height: 15vh;
    display: flex;
    align-items: center;

}

.navbar {
    height: 12vh;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    width: 100vw;
}

.patreon {
    float: right;
    padding-top: 2vh;
    padding-bottom: 2vh;
    padding-right: 15px;
    height: 7vh;
}

/* Reset navbar menu width and padding */
.navbar-menu {
    margin: 0;
    padding: 0;
    width: 100vw;
    display: flex;
    justify-content: space-between;
}

/* Adjust nav item widths */
.navbar-menu>div,
.navbar-menu>div>a,
#evidence,
#nt,
#modern,
.nav-item {
    flex: 1;
    /* Use flex instead of fixed widths */
    min-width: 0;
    /* Allow items to shrink if needed */
}

.navbar-menu>div {
    height: 12vh;
    position: relative;
    color: white;
    font-size: medium;
    text-decoration: none;
    -webkit-text-stroke: none;
    font-weight: normal;
}

.navbar-menu>div>a {
    display: block;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    font-size: medium;
    text-decoration: none;
    -webkit-text-stroke: none;
    font-weight: normal;
    background-size: 100% 100%;
    height: 12vh;
}

.navbar a {
    float: top;
    width: 25vw;
    height: auto;
    float: left;
    text-align: center;
    vertical-align: middle;
    height: 99%;
    color: white;
    font-size: medium;
    text-decoration: none;
    -webkit-text-stroke: none;
    font-weight: normal;
    font-family: 'Segoe UI', Tahoma, 'Geneva', Verdana, sans-serif;
}

.nav-item {
    float: left;
    height: 99%;
}

.cosmo:hover {
    font-weight: bold;
    font-size: 15px;
    color: white;
    -webkit-text-stroke: .35px black;
    background-image: url('./background_images/cosmolink.gif');
    background-size: 100% 100%;
}

.cosmo a:hover {
    font-weight: bold;
    font-size: 15px;
    color: white;
    -webkit-text-stroke: .35px black;
    background-image: url('./background_images/cosmolink.gif');
    background-size: 100% 100%;
}

.intdes a:hover {
    font-weight: bold;
    font-size: 15px;
    color: white;
    -webkit-text-stroke: .35px black;
    background-image: url('./background_images/idlink.gif');
    background-size: 100% 100%;
}

.morallaw a:hover {
    font-weight: bold;
    font-size: 15px;
    color: white;
    -webkit-text-stroke: .35px black;
    background-image: url('./background_images/morallink.png');
    background-size: 100% 100%;
}

.reliability a:hover {
    font-weight: bold;
    font-size: 15px;
    color: black;
    -webkit-text-stroke: .35px white;
    background-image: url('./background_images/nttrue.jpg');
    background-size: 100% 100%;
}

.truth a:hover {
    font-weight: bold;
    font-size: 15px;
    color: black;
    -webkit-text-stroke: .35px white;
    vertical-align: top;
    background-image: url('./background_images/truthlink.gif');
    background-size: 100% 100%;
}

.rise a:hover {
    font-weight: bold;
    font-size: 15px;
    color: black;
    -webkit-text-stroke: .35px white;
    background-image: url('./background_images/riselink.gif');
    background-size: 100% 100%;
}

.evolution a:hover {
    font-weight: bold;
    font-size: 15px;
    color: black;
    -webkit-text-stroke: .35px white;
    background-image: url('./background_images/evolution_background.jpg');
    background-size: 100% 100%;
}

.abortion a:hover {
    font-weight: bold;
    font-size: 15px;
    color: black;
    -webkit-text-stroke: .35px white;
    background-image: url('./background_images/fetus_background.jpg');
    background-size: 100% 100%;
}

.homosexuality a:hover {
    font-weight: bold;
    font-size: 15px;
    color: black;
    -webkit-text-stroke: .35px white;
    background-image: url('./background_images/homosexuality_background.jpg');
    background-size: 100% 100%;
}

.pornography a:hover {
    font-weight: bold;
    font-size: 15px;
    color: black;
    -webkit-text-stroke: .35px white;
    background-image: url('./background_images/pornography.jpg');
    background-size: 100% 100%;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

#evidence {
    cursor: pointer;
    position: relative;
    width: 25vw;
    height: 15vh;
    float: left;
    text-align: center;
    color: white;
    font-size: medium;
    line-height: 120px;
    vertical-align: middle;
}

#evidence:hover {
    font-size: 15px;
    background-image: none;
}

#evidence>a {
    float: top;
    color: white;
    font-size: medium;
    width: 100%;
    height: 99%;
    float: left;
    text-align: center;
    line-height: 120px;
    text-decoration: none;
    display: block;
}

#evidence>a:hover {
    font-weight: bold;
    font-size: 15px;
    color: white;
    -webkit-text-stroke: .35px black;
    background-image: url('./background_images/landscape.jpg');
    background-size: 100% 100%;
}

.evidence-dropdown.show {
    display: flex;
    /* Changed from block to flex */
    justify-content: center;
}

.evidence-dropdown div {
    width: 33.33%;
}

#nt {
    cursor: pointer;
    position: relative;
    width: 25vw;
    height: 15vh;
    float: left;
    text-align: center;
    color: white;
    font-size: medium;
    line-height: 120px;
    vertical-align: middle;
}

#nt>a {
    float: top;
    color: white;
    font-size: medium;
    width: 25vw;
    height: 15vh;
    float: left;
    text-align: center;
    line-height: 120px;
    text-decoration: none;
    display: block;
}

#nt>a:hover {
    font-weight: bold;
    font-size: 15px;
    color: white;
    -webkit-text-stroke: .35px black;
    background-image: url('./background_images/nt.jpg');
    background-size: 100% 100%;
}

.nt-dropdown.show {
    display: flex;
    justify-content: center;
}

.nt-dropdown div {
    width: 33.33%;
}

#modern {
    cursor: pointer;
    position: relative;
    width: 25vw;
    height: 15vh;
    float: left;
    text-align: center;
    color: white;
    font-size: medium;
    line-height: 120px;
    vertical-align: middle;
}

#modern>a {
    float: top;
    color: white;
    font-size: medium;
    width: 25vw;
    height: 15vh;
    float: left;
    text-align: center;
    line-height: 120px;
    text-decoration: none;
    display: block;
}

#modern>a:hover {
    font-weight: bold;
    font-size: 15px;
    color: white;
    -webkit-text-stroke: .35px black;
    background-image: url('./background_images/modern_background.jpg');
    background-size: 100% 100%;
}

.modern-dropdown.show {
    display: flex;
    /* Changed from block to flex */
    justify-content: center;
}

/* Remove any conflicting background styles */
#evidence:hover,
#nt:hover,
#nt.active {
    background-image: none;
}

/* Update dropdown display logic to use hover */
#evidence:hover .evidence-dropdown,
#nt:hover .nt-dropdown,
#modern:hover .modern-dropdown {
    display: flex;
    justify-content: center;
}

.modern-dropdown>div {
    width: 33.33vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove .show classes as they're no longer needed */
.evidence-dropdown,
.nt-dropdown,
.modern-dropdown {
    display: none;
    position: fixed;
    top: 27vh;
    left: 0;
    height: 15vh;
    width: 100vw;
    background-color: #3a84ef;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Common styles for all dropdown items */
.evidence-dropdown a,
.nt-dropdown a,
.modern-dropdown a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: medium;
    text-decoration: none;
    padding: 0;
    margin: 0;
    line-height: normal;
}

/* Common hover styles for all dropdown items */
.evidence-dropdown a:hover,
.nt-dropdown a:hover,
.modern-dropdown a:hover {
    font-weight: bold;
    font-size: 15px;
    color: white;
    -webkit-text-stroke: .35px black;
}

/* Styles for mobile devices (e.g., phones) */
@media (max-width: 600px) {
    .navbar-toggle {
        display: flex;
        justify-content: center;
        width: 100vw;
        height: 5vh;
    }

    .navbar-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: white;
    }

    .navbar-menu {
        display: none;
        position: fixed;
        top: 27vh;
        /* Align with bottom of header */
        left: 0;
        width: 100vw;
        height: 73vh;
        /* Take up remaining viewport height */
        background-color: #3a84ef;
        z-index: 1001;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        padding: 20px 0;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .navbar-menu.show {
        display: flex;
        opacity: 1;
    }

    .navbar-menu.hidden {
        opacity: 0;
        visibility: hidden;
        display: flex !important;
        pointer-events: none;
    }

    #evidence,
    #nt,
    #modern {
        width: 100vw;
        height: 33.33%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #evidence>a,
    #nt>a,
    #modern>a {
        width: 100vw;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }

    /* Disable hover effects on mobile */
    #evidence:hover .evidence-dropdown,
    #nt:hover .nt-dropdown,
    #modern:hover .modern-dropdown {
        display: none;
    }

    .evidence-dropdown,
    .nt-dropdown,
    .modern-dropdown {
        position: fixed;
        top: 27vh;
        left: 0;
        width: 100vw;
        height: calc(100vh - 27vh);
        background-color: #3a84ef;
        z-index: 1002;
        display: none;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .evidence-dropdown.submenu-active,
    .nt-dropdown.submenu-active,
    .modern-dropdown.submenu-active {
        display: flex;
        opacity: 1;
        z-index: 100000000000;
    }

    .evidence-dropdown>div,
    .nt-dropdown>div,
    .modern-dropdown>div {
        width: 100vw;
        min-height: 50px;
        /* Ensure minimum touch target size */
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .back-button {
        background-color: #3a84ef;
        color: white;
        border: none;
        padding: 10px 20px;
        font-size: 1rem;
        z-index: 100000000001;
        /* Ensure it's above other elements */
    }

    .navbar-menu {
        flex-direction: column;
        height: auto;
    }

    #evidence,
    #nt,
    #modern {
        width: 100%;
        min-height: 50px;
        /* Ensure minimum touch target size */
        height: auto;
    }

    #evidence>a,
    #nt>a,
    #modern>a {
        width: 100%;
        padding: 10px;
        line-height: normal;
        height: auto;
    }
}