html, body {
    height: 100%;
}
body {
    font-family: Arial, serif;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 50;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
}

.header-name {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 2rem;
    color: rgb(221, 117, 33);
    padding: 0px 30px;
}


.nav-main {
    position: relative;
    padding: 10px;
    width: 100vw;
    display: flex;
    flex-direction: row;
    background: transparent;
    z-index: 1001;
    justify-content: flex-start;
    align-items: center;
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
}

.header-name {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 2rem;
    color: rgb(255, 115, 0);
    padding: 0px 30px;
}

.nav-button, .nav-link {
    background-color: transparent;
    color: rgb(255, 115, 0);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: underline;
    font-style: italic;
    min-height: 44px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
}


.project-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    z-index: 100;
}

/* Position notification link at the bottom of the page */
.sonification-link {
    position: absolute;
    display: inline-block;
    min-width: 0;
    min-height: 0;
    max-width: 300px;
    border: 2px solid #222;
    background: rgba(255,255,255,0.85);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 18px;
    letter-spacing: 2px;
    word-spacing: 2px;
    line-height: 1.5;
}

.ddpm-link {
    position: absolute;
    display: inline-block;
    min-width: 0;
    min-height: 0;
    max-width: 300px;
    border: 2px solid #222;
    background: rgba(255,255,255,0.85);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /* left and top removed for JS placement */
    padding: 18px;
}

.bioluminesce-link {
    position: absolute;
    display: inline-block;
    min-width: 0;
    min-height: 0;
    max-width: 300px;
    border: 2px solid #222;
    background: rgba(255,255,255,0.85);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /* left and top removed for JS placement */
    padding: 18px;
}

.energy-link {
    position: absolute;
    display: inline-block;
    min-width: 0;
    min-height: 0;
    max-width: 200px;
    border: 2px solid #222;
    background: rgba(255,255,255,0.85);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /* left and top removed for JS placement */
    padding: 18px;
}

.temperature-link {
    position: absolute;
    display: inline-block;
    min-width: 0;
    min-height: 0;
    border: 2px solid #222;
    background: rgba(255,255,255,0.85);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /* left and top removed for JS placement */
    padding: 18px;
    line-height: 1.5;
}

/* Mobile responsive styles - navigation becomes vertical layout */
@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 60px;
        padding-bottom: 5px;
    }
    
    /* Mobile: nav-main becomes vertical container */
    .nav-main {
        flex-direction: column;
        gap: 8px;
        padding: 8px 15px;
        align-items: center;
    }
    
    /* Keep nav links horizontal within the vertical layout */
    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        order: 1;
    }
    
    .nav-button, .nav-link {
        font-size: 0.75rem;
        padding: 2px 8px;
        line-height: 1.3;
        min-height: 20px;
        white-space: nowrap;
    }
    
    /* Position header name after nav links */
    .header-name {
        position: relative;
        top: 0;
        right: auto;
        font-size: 1.2rem;
        padding: 5px 0;
        order: 2;
        width: 100%;
        text-align: center;
        margin: 0;
    }
    
    /* Adjust project link containers for mobile */
    .sonification-link,
    .ddpm-link,
    .bioluminesce-link,
    .energy-link,
    .temperature-link {
        max-width: 250px;
        padding: 12px;
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .header-name {
        font-size: 1.2rem;
    }
    
    .nav-button, .nav-link {
        font-size: 0.8rem;
    }
    
    .nav-main {
        gap: 10px;
        padding: 10px;
    }
    
    /* Smaller project links for very small screens */
    .sonification-link,
    .ddpm-link,
    .bioluminesce-link,
    .energy-link,
    .temperature-link {
        max-width: 200px;
        padding: 10px;
        font-size: 0.75rem;
        line-height: 1.2;
    }
}
