@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

body {
    background: #000000;
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    font-family: 'IBM Plex Mono', monospace;
    overflow: hidden;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    object-fit: cover;
    z-index: 1;
}

.ui-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    box-sizing: border-box;
    overflow: hidden;
}

.ui-container.show {
    opacity: 1;
}

.art-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    background: transparent;
}

.art-overlay.show {
    opacity: 1;
}

.art-overlay img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.art-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 120px;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
}

.art-container img {
    max-width: 290px;
    max-height: 190px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: none;
}

.button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 200px;
    flex-shrink: 0;
}

/* Reset all link styles */
a {
    color: inherit;
    text-decoration: none;
}

.button {
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    font-weight: normal;
    border: 1px solid #ffffff !important;
    outline: none !important;
    background: none !important;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: inline-block;
    margin: 0;
    padding: 8px 16px;
}

.button:link,
.button:visited,
.button:hover,
.button:active,
.button:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    border: 1px solid #ffffff !important;
    outline: none !important;
    background: none !important;
}

.button:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

.copyright {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #666666;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    text-align: center;
    pointer-events: none;
}

/* Responsive design for all screen sizes */

/* Extra small devices (phones, 320px and up) */
@media screen and (max-width: 480px) {
    .ui-container {
        min-height: 100vh;
        min-height: 100dvh;
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
    
    .art-container {
        margin-bottom: 40px;
    }
    
    .art-container img {
        max-width: 230px;
        max-height: 150px;
    }
    
    .button-container {
        margin-bottom: 80px;
    }
    
    .button {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .copyright {
        font-size: 10px;
        bottom: 15px;
    }
}

/* Small devices (phones, 481px to 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .ui-container {
        min-height: 100vh;
        min-height: 100dvh;
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
    
    .art-container {
        margin-bottom: 60px;
    }
    
    .art-container img {
        max-width: 250px;
        max-height: 160px;
    }
    
    .button-container {
        margin-bottom: 100px;
    }
    
    .button {
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* Medium devices (tablets, 769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .art-container {
        margin-bottom: 80px;
    }
    
    .art-container img {
        max-width: 280px;
        max-height: 180px;
    }
    
    .button-container {
        margin-bottom: 120px;
    }
    
    .button {
        font-size: 18px;
        padding: 10px 18px;
    }
}

/* Large devices (desktops, 1025px to 1440px) */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .art-container {
        margin-bottom: 100px;
    }
    
    .art-container img {
        max-width: 295px;
        max-height: 195px;
    }
    
    .button-container {
        margin-bottom: 150px;
    }
    
    .button {
        font-size: 20px;
        padding: 8px 16px;
    }
}

/* Extra large devices (large desktops, 1441px and up) */
@media screen and (min-width: 1441px) {
    .art-container {
        margin-bottom: 120px;
    }
    
    .art-container img {
        max-width: 300px;
        max-height: 205px;
    }
    
    .button-container {
        margin-bottom: 180px;
    }
    
    .button {
        font-size: 22px;
        padding: 10px 20px;
    }
}

/* Landscape orientation adjustments - keep vertical stacking */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .ui-container {
        flex-direction: column; /* Always keep vertical stacking */
    }
    
    .art-container {
        margin-bottom: 30px; /* Reduced but still maintaining vertical flow */
    }
    
    .art-container img {
        max-width: 220px;
        max-height: 140px;
    }
    
    .button-container {
        margin-bottom: 60px; /* Reduced but still maintaining vertical flow */
    }
    
    .button {
        font-size: 14px;
        padding: 8px 14px;
    }
    
    .copyright {
        bottom: 10px;
        font-size: 10px;
    }
}

/* Ultra-wide screens */
@media screen and (min-width: 1920px) {
    .art-container img {
        max-width: 330px;
        max-height: 220px;
    }
    
    .button {
        font-size: 24px;
        padding: 12px 24px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #000000;
    }
}
