@font-face {
    font-family: 'LanaPixel';
    src: url('./image/LanaPixel.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    font-family: 'LanaPixel', Arial, sans-serif;
    /* Force mobile aspect ratio for all devices */
    width: 414px;
    height: 896px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.audio-control {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.wallet-control {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    transition: all 0.3s ease;
}

.wallet-control.connected {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    padding: 5px;
}

.audio-button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.audio-button:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.audio-button:active {
    transform: scale(0.9);
}

#audio-icon {
    width: 60px;
    height: 50px;
    display: block;
}

.wallet-button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.wallet-control.connected .wallet-button {
    background-color: transparent;
}

.wallet-button:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.wallet-button:active {
    transform: scale(0.9);
}

#wallet-icon {
    width: 60px;
    height: 50px;
    display: block;
}

.wallet-address {
    background-color: transparent;
    color: #f1ca5c;
    padding: 8px 12px;
    border-radius: 0;
    font-family: 'LanaPixel', Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
    display: none;
    height: 40px;
    align-items: center;
    margin-left: -10px;
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.logo-container {
    margin-bottom: 200px;
}

.logo {
    max-width: 370px;
    height: auto;
    display: block;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.nav-button {
    background-image: url('./image/btn.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    padding: 15px 40px;
    color: #f1ca5c;
    font-family: 'LanaPixel', Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    min-width: 200px;
    text-align: center;
}

.nav-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav-button:active {
    transform: scale(0.95);
}

/* Mobile device adjustments */
@media (max-width: 414px) {
    html {
        align-items: flex-start;
    }

    body {
        width: 100vw;
        height: 100vh;
        box-shadow: none;
    }
}

/* Ensure consistent mobile layout */
.logo {
    max-width: 370px;
}

.nav-button {
    min-width: 200px;
    font-size: 20px;
    padding: 12px 30px;
}

.buttons-container {
    gap: 15px;
}

.disclaimer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    font-family: 'LanaPixel', Arial, sans-serif;
    font-size: 10px;
    text-align: center;
    line-height: 1.4;
    z-index: 5;
    opacity: 0.8;
}