@font-face {
    font-family: comfortaa;
    src: url(/frontend/global/fonts/Comfortaa/Comfortaa-VariableFont_wght.ttf);
}

* {
    font-family: comfortaa;
}

a:link, a:visited {
    color: inherit;
    text-decoration: none;
 }

.pageGrid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: max-content;
    display: grid;
    grid-template-columns: 80vw;
    grid-template-rows: minmax(auto, auto) minmax(100vh, auto);
    transition: grid-template-columns 0.3s;
    background-size: cover;
    background-color: rgb(34, 64, 92);
    background-image: url("/frontend/global/img/dreamsBlue.png");
    background-blend-mode: luminosity;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.homepageTitle {
    width: 100%;
    height: max-content;
    background-color: rgb(11, 20, 29);
}

.nameTitleGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-left: auto;
    margin-right: auto;
    width: 60vw;
}

.nameTitleGrid h1 {
    font-size: xxx-large;
    color: white;
}

.nameTitleGrid p {
    font-size: x-large;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    color: lightgrey;
}

.rightNav {
    position: fixed;
    top: 0;
    right: 0;
    width: 20vw;
    height: 100vh;
    background-color: white;
    overflow: overlay;
    transition: width 0.3s;
}

.contactInfo {
    position: fixed;
    margin-top: 10vh;
    margin-left: 2vw;
    margin-right: 2vw;
    width: 16vw;
    list-style-type: none;
}

.contactGrid {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 5px 0;
}

.contactInfoLabel {
    text-align: left;
    font-weight: bold;
    color: black;
    line-height: 2;
}

.contactInfoValue {
    text-align: right;
    font-weight: bold;
    color: blue;
    text-decoration: underline;
    line-height: 2;
}

.hyperlinkValue {
    color: rgb(0, 119, 255);
    text-decoration: underline;
}

.navList {
    position: fixed;
    bottom: 0px;
    margin-left: 2vw;
    margin-right: 2vw;
    width: 16vw;
    padding-left: 0;
    list-style-type: none;
}

.navList li {
    font-weight: bold;
    padding-left: 1vw;
    line-height: 4;
    border-bottom: 1px solid black;
}

.navList li:hover {
    text-decoration: underline;
    background-color: rgb(11, 20, 29);
    color: rgb(241, 194, 50);
}

.selectedNav {
    background-color: rgb(11, 20, 29);
    color: rgb(241, 194, 50);
}

@media (min-width: 769px) {
    .navToggle {
        display: none; /* Hide toggle button on desktop */
        z-index: 1;
    }
}

/* Mobile device settings */
@media (max-width: 768px) {
    .pageGrid {
        grid-template-columns: 100vw;
        grid-template-rows: minmax(auto, auto) minmax(100vh, auto);
    }

    .rightNav {
        width: 0px; /* Hide navbar by default on mobile */
    }

    .contactInfo {
        margin-top: 3vh;
    }

    .navToggle {
        display: block; /* Show toggle button on mobile */
        z-index: 9999;
        position: fixed;
        top: 10px;
        right: 10px;
        background-color: rgb(85, 85, 85);
        color: white;
        padding: 10px;
        border: none;
        cursor: pointer;
    }

    .nameTitleGrid h1 {
        font-size: xx-large;
        margin-top: 12px;
        margin-bottom: 6px;
    }
    
    .nameTitleGrid p {
        font-size: large;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        margin-top: 6px;
        margin-bottom: 12px;
    }
}
