* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
body {
    font-family: 'Arial', 'Tahoma', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
#image-display-area {
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden;
    position: relative;
}
#current-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
#note-played-area {
    position: absolute;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 10px;
}
.vertical-text {
    position: fixed;
    font-size: 1.2em;
    color: white;
    text-decoration: none;
    font-weight: bold;
    z-index: 9999;
    white-space: nowrap;
}


#right-text {
    writing-mode: vertical-rl;
    right: 0;
    top: 0;
    animation: scroll-rtl 8s linear infinite alternate;
}

#left-text {
    writing-mode: vertical-lr;
    left: 0;
    bottom: 0;
    animation: scroll-ltr-up 8s linear infinite alternate;
}

@keyframes scroll-rtl {
    from { top: 0; }
    to { top: 50vh; }
}


@keyframes scroll-ltr-up {
    from { bottom: 0; }
    to { bottom: 50vh; }
}


@media (max-width: 768px) {
    .vertical-text {
        font-size: 0.6em;
        line-height: 1.1;
    }

    #note-played-area {
        font-size: 1.2em;
        padding: 6px 14px;
    }

    @keyframes scroll-rtl {
        from { top: 0; }
        to { top: 35vh; }
    }

    @keyframes scroll-ltr-up {
        from { bottom: 0; }
        to { bottom: 35vh; }
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .vertical-text {
        font-size: 1em;
    }
    #note-played-area {
        font-size: 1.5em;
    }

    @keyframes scroll-rtl {
        from { top: 0; }
        to { top: 45vh; }
    }

    @keyframes scroll-ltr-up {
        from { bottom: 0; }
        to { bottom: 45vh; }
    }
}
