@media all and (orientation: landscape) {

    #board {
        width: 100vh;
        height: 100vh;
        right: 0;
        top: 0;
        position: absolute;
        z-index: 1;
        /* background: rgb(145, 122, 81); */
    }

    #title {
        min-height: 35%;
        width: calc(100vw - 100vh);
        /* background: red; */
        left: 0;
        position: relative;
        padding-bottom: 20px; /* Reduced since FAQ is below board now */
        box-sizing: border-box;
    }

    .font-size-wrap {
        font-size: 4.5vh;
    }

    .small-font-size-wrap {
        font-size: 3vh;
    }

    .border-normal {
        width: 99vh;
        height: calc(99vh * 1.732050808 / 2);
    }

    /* Ensure footer is visible and properly positioned */
    footer {
        position: relative;
        width: 100%;
        padding: 20px 0;
        z-index: 10;
        margin-top: 40px;
        clear: both;
    }

    #faq-section {
        position: relative;
        width: 50%;
        margin-top: calc(100vh - 350px);
        padding: 0 20px;
        z-index: 10;
        box-sizing: border-box;
        clear: both;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #faq-section .faq-item {
        max-width: 600px;
        width: 100%;
    }
}

@media all and (orientation: portrait) {

    #board {
        width: 100vw;
        height: 100vw;
        left: 50%;
        transform: translate(-50%, 0);

        /* background: rgba(255, 166, 0, 0.582); */
        position: relative;
        z-index: 1;
    }

    #classic-options {
        position: relative;
        width: 100%;
        /* background: yellow; */
    }

    #title {
        min-height: 15%;
        /* background: rgba(123, 106, 139, 0.842); */
        position: relative;
    }

    .font-size-wrap {
        font-size: 4.5vw;
    }

    .small-font-size-wrap {
        font-size: 3vw;
    }

    .border-normal {
        width: 99vw;
        height: calc(99vw * 1.732050808 / 2);
    }

    /* Ensure footer has space below the board in portrait mode */
    footer {
        position: relative;
        margin-top: 40px;
        padding: 20px 0;
        z-index: 10;
    }

    #faq-section {
        margin-top: calc(100vw + 40px);
        padding: 0 20px;
        position: relative;
        z-index: 10;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #faq-section .faq-item {
        max-width: 600px;
        width: 100%;
    }
}