:root {
    --primary-color: #4a90e2;
    --secondary-color: #28a745;
    --background-color: #111;
    --text-color: #ffffff;
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 39px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    padding: var(--spacing-md);
    padding-top: 150.3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1176px; /* 70% of 1680px */
    background-color: var(--background-color);
    margin: 0 auto;
    position: relative;
    opacity: 1;
    transition: opacity 0.5s ease;
    color: var(--text-color);
}

/* Hide body during page load for fade-in effect */
body.fade-out {
    opacity: 0;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #030303;
    z-index: 1000;
}

header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #0b2234;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo {
    width: 40px;
    height: 40px;
    background: #0b2234;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    border-radius: 50%;
}

.site-name {
    font-family: 'Impact', serif;
    font-size: 20px;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-button {
    border-radius: 5px;
    background: rgba(11, 34, 52, 0.5);
    padding: 12px 20px;
    text-decoration: none;
    color: white;
    transition: 0.3s ease;
    font-family: 'Impact', serif;
}

.nav-button:hover {
    background: rgba(11, 34, 52, 0.8);
}

.nav-button.active {
    background: rgba(11, 34, 52, 0.9);
    border-bottom: 3px solid #24678d;
}

/* Media container and game content */
.media-container {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: 49px; /* 70% of 70px */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.main-image-container {
    width: 100%;
    max-width: 706px; /* 70% of 1008px */
    height: auto;
    aspect-ratio: 16/9; /* Maintain aspect ratio */
    border: 2px solid var(--primary-color); /* Reduced from 3px */
    background: #222;
    border-radius: var(--border-radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
    position: relative;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius-md);
}

.placeholder-text {
    font-weight: bold;
    font-size: clamp(14px, 5vw, 24px); /* Reduced from 20px, 34px */
}

.info-panel {
    width: 100%;
    max-width: 196px; /* 70% of 280px */
    height: auto;
    border: 2px solid var(--primary-color); /* Reduced from 3px */
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    box-sizing: border-box;
}

.info-label {
    font-size: clamp(15px, 4vw, 21px); /* Reduced from 22px, 30px */
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.info-label-info {
    font-size: clamp(11px, 3vw, 14px); /* Reduced from 16px, 20px */
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: rgb(197, 197, 197);
}

.title {
    font-size: clamp(17px, 5vw, 39px); /* Reduced from 24px, 56px */
    font-weight: bold;
    margin-bottom: var(--spacing-md);
    text-align: center;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
    border: 2px solid var(--primary-color); /* Reduced from 3px */
    border-radius: var(--border-radius-lg);
    color: rgb(0, 141, 211);
    padding: 14px; /* 70% of 20px */
    width: 100%;
}

.email {
    font-size: clamp(11px, 3vw, 14px); /* Reduced from 16px, 20px */
    font-weight: bold;
    margin-bottom: 1px;
    margin-top: 14px; /* 70% of 20px */
    text-align: center;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
    border: 2px solid #0dfe00; /* Reduced from 3px */
    border-radius: var(--border-radius-lg);
    color: rgb(0, 141, 211);
    padding: 7px; /* 70% of 10px */
    width: 100%;
    max-width: 90%;
}

.download-button {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: clamp(11px, 3vw, 15px) clamp(21px, 5vw, 39px); /* Reduced from 15px/21px, 30px/56px */
    background-color: var(--secondary-color);
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: clamp(13px, 3vw, 18px); /* Reduced from 18px, 25px */
    font-weight: bold;
    border-radius: var(--border-radius-sm);
    transition: 0.3s;
    text-align: center;
}

.download-button:hover {
    background-color: #218838;
    transform: translateY(-2px); /* Reduced from -3px */
}

/* Games button styling */
.games-button {
    position: fixed;
    bottom: calc(var(--spacing-md) + 40px); /* Moved higher up from the bottom */
    left: var(--spacing-md);
    padding: clamp(8px, 2vw, 12px) clamp(14px, 3vw, 24px);
    background-color: #222;
    color: #2980b9;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: clamp(11px, 2.5vw, 15px);
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    transform: translateY(40px); /* Reduced from -3px */
}

.games-button:hover {
    background-color: #013355;
    transform: translateY(34px); /* Reduced from -3px */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Video arrow styles */
.video-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(49px, 10vw, 78px); /* Reduced from 70px, 112px */
    height: clamp(49px, 10vw, 78px); /* Reduced from 70px, 112px */
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.video-arrow:hover {
    background-color: rgba(255, 0, 0, 0.8);
}

.video-arrow::after {
    content: '';
    border-style: solid;
    border-width: clamp(14px, 3vw, 20px) 0 clamp(14px, 3vw, 20px) clamp(21px, 5vw, 39px); /* Reduced from 20px, 28px, 30px, 56px */
    border-color: transparent transparent transparent white;
    margin-left: 5px; /* Reduced from 7px */
}

.footer {
    background-color: #000;
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    color: #666;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

/* Page transition overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 9999;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* YouTube iframe responsive */
#youtube-player {
    width: 100% !important;
    height: 100% !important;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .media-container {
        flex-direction: column;
        align-items: center;
    }

    .info-panel {
        max-width: 100%;
        margin-top: var(--spacing-md);
    }

    .games-button {
        position: static;
        margin-top: var(--spacing-md);
        width: 100%;
        max-width: 210px; /* 70% of 300px */
        text-align: center;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .nav-button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 11px; /* 70% of 15px */
    }

    .title {
        padding: 11px; /* 70% of 15px */
    }

    .video-arrow {
        width: 56px; /* 70% of 80px */
        height: 56px; /* 70% of 80px */
    }
}