body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#rotate-device-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
}

.button-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.nav-button {
    width: 80px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.nav-button:hover {
    transform: scale(1.2);
}

.nav-button:active {
    transform: scale(0.9);
}

.error-message {
    color: red;
    font-size: 12px;
}

@media (orientation: portrait) {
    #rotate-device-message {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 20px;
        border-radius: 10px;
    }
}

@media only screen and (orientation: landscape) {
    #rotate-device-message {
        display: none;
    }

    .nav-button {
        width: 50px;
        height: auto;
        cursor: pointer;
        transition: transform 0.2s ease-in-out;
    }
}