body {
    font-family: "Times New Roman", Times, serif;
    background-image: url('https://web.archive.org/web/20091024225010/http://geocities.com/SouthBeach/Sands/2607/star_bg.gif');
    cursor: url('https://web.archive.org/web/20091027103551/http://geocities.com/EnchantedForest/Cottage/1183/cursor.cur'), auto;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

.video-container {
    border: 3px inset #ffffff;
    background: #000;
    margin: 10px;
    padding: 0;
}

video {
    width: 100%;
    max-width: 210px; /* Slightly wider to match 9:16 better */
    height: 373px;    /* 210 * 16 / 9 = 373.33 */
    object-fit: cover;
    display: block;
}

.landscape video {
    max-width: 400px;
    height: 225px;    /* 400 * 9 / 16 = 225 */
}

a {
    color: #00ffff;
}

a:hover {
    background-color: #ff00ff;
    color: #ffffff;
}

marquee {
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.retro-button {
    background: #c0c0c0;
    border: 3px outset #ffffff;
    padding: 10px 20px;
    font-family: "Comic Sans MS", cursive;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    color: #000;
    box-shadow: 2px 2px 0px #000;
}

.retro-button:active {
    border-style: inset;
    transform: translate(1px, 1px);
    box-shadow: none;
}

#sound-options {
    margin: 15px 0;
    padding: 10px;
    border: 3px double #00FF00;
    display: inline-block;
    background: #000;
}

.active-mode {
    background: #ffff00 !important;
    color: #ff0000 !important;
    border-style: inset !important;
    box-shadow: none !important;
}

/* Responsiveness */
@media (max-width: 800px) {
    table {
        width: 100%;
        max-width: 100%;
    }

    /* Stack the video cells */
    tr {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    td {
        width: 100% !important;
        display: block;
        box-sizing: border-box;
    }

    video {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 9/16;
    }

    .landscape video {
        aspect-ratio: 16/9;
    }

    marquee {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .retro-button {
        padding: 8px 15px;
        font-size: 14px;
    }

    font[size="6"] { font-size: 24px; }
    font[size="5"] { font-size: 20px; }
    font[size="4"] { font-size: 18px; }
}
