* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: url('images/desktop-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    text-align: center;
    padding: 20px;
    max-width: 1000px;
    width: 95%;
}

.logo-container {
    margin-bottom: 15px;
    margin-top: 10px;
}

.logo {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.video-container {
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    max-width: 1000px;
    margin: 0 auto;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.button-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: 40px;
    position: relative;
    z-index: 10;
}

.btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

/* Remove transition for image buttons to prevent scaling */
.btn.btn-image {
    transition: none;
    padding: 0;
    border-radius: 0;
    min-width: auto;
    background: none;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
    letter-spacing: normal;
}



.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.6);
}

/* Image button styles */
.btn-image {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: visible;
    width: 200px;
    height: auto;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
    z-index: 1;
}

/* Ensure buttons don't overlap */
.btn-image:first-child {
    z-index: 2;
}

.btn-image:last-child {
    z-index: 1;
}

.button-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
}

/* Button state management */
.button-hover {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: auto;
}

.btn-image:hover .button-normal {
    display: none;
}

.btn-image:hover .button-hover {
    display: block;
}

/* Prevent button growth on mobile touch */
.btn-image:active {
    transform: none !important;
    scale: 1 !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
}

.btn-image:active .button-image {
    transform: none !important;
    scale: 1 !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
}

/* Additional mobile touch prevention */
.btn-image {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    -ms-perspective: 1000;
    perspective: 1000;
}

/* Prevent any scaling on touch */
.btn-image *,
.btn-play-now *,
.btn-build-character * {
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
    scale: 1 !important;
}

/* Disable all touch feedback and scaling */
.btn-image,
.btn-image *,
.btn-image:active,
.btn-image:active *,
.btn-image:focus,
.btn-image:focus *,
.btn-image:hover,
.btn-image:hover *,
.btn-play-now,
.btn-play-now *,
.btn-play-now:active,
.btn-play-now:active *,
.btn-play-now:focus,
.btn-play-now:focus *,
.btn-play-now:hover,
.btn-play-now:hover *,
.btn-build-character,
.btn-build-character *,
.btn-build-character:active,
.btn-build-character:active *,
.btn-build-character:focus,
.btn-build-character:focus *,
.btn-build-character:hover,
.btn-build-character:hover * {
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
    scale: 1 !important;
    -webkit-scale: 1 !important;
    -moz-scale: 1 !important;
    -ms-scale: 1 !important;
}

/* Prevent any transition effects that might cause scaling */
.btn-image,
.btn-image *,
.btn-play-now,
.btn-play-now *,
.btn-build-character,
.btn-build-character * {
    transition: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
}

/* Ensure proper button positioning and prevent overlap */
.btn-image,
.btn-play-now,
.btn-build-character {
    position: relative !important;
    display: inline-block !important;
    vertical-align: top !important;
    will-change: auto !important;
}

.btn-image:active,
.btn-play-now:active,
.btn-build-character:active {
    position: relative !important;
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
}

/* Prevent any layout shifts on mobile */
.btn-image {
    contain: layout style paint !important;
    -webkit-contain: layout style paint !important;
}

/* Prevent layout shifts for all buttons */
.btn-image,
.btn-play-now,
.btn-build-character {
    contain: layout style paint !important;
    -webkit-contain: layout style paint !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    will-change: auto !important;
}

/* Additional mobile-specific prevention */
@media (hover: none) and (pointer: coarse) {
    .btn-image,
    .btn-play-now,
    .btn-build-character {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        touch-action: manipulation !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        transform: none !important;
        scale: 1 !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        contain: layout style paint !important;
        -webkit-contain: layout style paint !important;
    }
    
    .btn-image *,
    .btn-play-now *,
    .btn-build-character * {
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        transform: none !important;
        scale: 1 !important;
    }
    
    /* Prevent any layout shifts during touch */
    .btn-image:active,
    .btn-image:focus,
    .btn-play-now:active,
    .btn-play-now:focus,
    .btn-build-character:active,
    .btn-build-character:focus {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
    }
}



/* Fallback styles if images don't load */
.btn-image:not(:has(img)) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    min-width: 180px;
}

.btn-image:not(:has(img))::before {
    content: 'Play Now';
}

.btn-build-character:not(:has(img))::before {
    content: 'Build Character';
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        width: 98%;
        max-width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .logo-container {
        margin-bottom: 50px;
        margin-top: 0;
    }
    
    .logo {
        max-width: 300px;
        width: 80vw;
        max-height: 15vh;
    }
    
    .video-container {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .video-wrapper {
        max-width: 100%;
        padding-bottom: 75%; /* 4:3 aspect ratio for mobile */
    }
    
    .video-wrapper iframe {
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-top: 45px;
        margin-bottom: 25px;
        position: relative;
        z-index: 10;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .btn-image,
    .btn-play-now,
    .btn-build-character {
        width: 280px;
        max-width: 80vw;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        touch-action: manipulation;
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -ms-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .btn-image:active,
    .btn-play-now:active,
    .btn-build-character:active {
        transform: none !important;
        scale: 1 !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
    }
    
    .btn-image:active *,
    .btn-play-now:active *,
    .btn-build-character:active * {
        transform: none !important;
        scale: 1 !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
    }
    
    .button-image {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .logo-container {
        margin-bottom: 50px;
        margin-top: 0;
    }
    
    .logo {
        max-width: 250px;
        width: 75vw;
        max-height: 12vh;
    }
    
    .video-container {
        margin-bottom: 12px;
        width: 100%;
    }
    
    .video-wrapper {
        padding-bottom: 75%; /* 4:3 aspect ratio for small mobile */
    }
    
    .video-wrapper iframe {
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .button-container {
        gap: 6px;
        margin-top: 45px;
        margin-bottom: 20px;
        position: relative;
        z-index: 10;
    }
    
    .btn-image,
    .btn-play-now,
    .btn-build-character {
        width: 240px;
        max-width: 75vw;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        touch-action: manipulation;
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -ms-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .btn-image:active,
    .btn-play-now:active,
    .btn-build-character:active {
        transform: none !important;
        scale: 1 !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
    }
    
    .btn-image:active *,
    .btn-play-now:active *,
    .btn-build-character:active * {
        transform: none !important;
        scale: 1 !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 16px;
    }
}
