* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-size: cover;
}

.experience {
    position: fixed;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}
.experience-canvas {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1;
}

.text {
    position: fixed;
    z-index: 100;
    width: 80%;
    right: 10%;
    bottom: 20%;

    border-top: 3px solid rgba(255, 255, 255, 0.65);

    display: flex;
    text-align: center;
    justify-content: space-around;
    flex-direction: row;
}
.text div:hover {
    cursor: pointer;
}
.text div {
    font-family: "Baumans", system-ui;
    font-size: 1.6vw;
    color: rgba(140, 140, 140, 0.75);
}
.text div a {
    color: rgba(140, 140, 140, 0.75);
    text-decoration: none;
}
.text div a:hover {
    color: rgba(72, 72, 72, 0.75);
}

/* keep the canvas filling its fixed container regardless of renderer inline styles */
#experience-canvas {
    display: block;
    width: 100%;
    height: 100%;
}


/* ===== Mobile overrides (phones / small screens) — desktop styles untouched ===== */
@media (max-width: 768px)
{
    .text {
        flex-direction: column;
        align-items: center;
        gap: 4vh;
        width: 90%;
        right: 5%;
        bottom: 12%;
    }
    .text div { font-size: 7vw; }
}


/* ===== Portrait phones: this layout needs landscape, so prompt a rotate instead ===== */
#rotate-notice { display: none; }
@media (orientation: portrait) and (max-width: 900px)
{
    /* lock the page so nothing scrolls behind the prompt */
    html, body { overflow: hidden; height: 100%; }

    /* cover the page and ask the user to turn the device sideways */
    #rotate-notice {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 2000;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: #000000;
        color: #ffffff;
        font-family: 'Space Mono', monospace;
        padding: 10vw;
    }
    #rotate-notice p { font-size: 4vw; line-height: 1.6; }
}