@font-face {
    font-family: 'Chewy';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./Chewy.ttf') format('truetype');
}

:root {
    --text-color: #4a8edb;
    --title-color: #4f6bb5;
    --warning-color: #ff6060;
    --bg-gradient-1: #1e3a8a;
    --bg-gradient-2: #1e1b4b;
    --bg-gradient-3: #312e81;
    --button-bg: rgba(74, 158, 255, 0.5);
    --button-border: #4a9eff;
    --button-hover-bg: rgba(91, 166, 255, 0.5);
    --button-hover-border: #5ba6ff;
    --contact-line-color: #1e40af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Chewy', cursive;
    background: linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3));
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 15px;
    line-height: 1.4;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.wave-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.wave-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.wave-pattern {
    position: absolute;
    width: 100%;
    height: 1280px;
    background-image: url('Pictures/Wave-Patern.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.wave-layer-1 .wave-pattern {
    animation: waveScroll1 30s linear infinite;
    opacity: 0.01;
    transform: translateY(0px) translateZ(0);
}

.wave-layer-2 .wave-pattern {
    animation: waveScroll2 30s linear infinite;
    opacity: 0.01;
    animation-delay: -15s;
    transform: translateZ(0);
}

@keyframes waveScroll1 {
    0% { transform: translate3d(0, -1280px, 0); }
    100% { transform: translate3d(0, 1280px, 0); }
}

@keyframes waveScroll2 {
    0% { transform: translate3d(0, -1280px, 0); }
    100% { transform: translate3d(0, 1280px, 0); }
}

.container {
    text-align: center;
    padding: 20px 15px;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header {
    margin-bottom: 5px;
}

.title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    color: var(--title-color);
    word-wrap: break-word;
}

.subtitle {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: var(--text-color);
    font-weight: normal;
    line-height: 1.5;
}

.presentation-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.presentation-title {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: 10px;
    color: var(--title-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: normal;
    letter-spacing: 1px;
}

.presentation-text {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    line-height: 1.6;
    color: var(--text-color);
    font-family: 'Chewy', cursive;
    text-align: center;
    font-weight: normal;
}

.preview-text {
    color: var(--text-color);
    font-weight: normal;
    display: block;
    margin-top: 8px;
}

.online-play-section {
    margin: 10px 0;
}

.middle-section {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.middle-text {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: var(--warning-color);
    text-align: center;
    font-family: 'Chewy', cursive;
    font-weight: normal;
    line-height: 1.4;
    display: block;
}

.additional-text {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: var(--warning-color);
    text-align: center;
    font-family: 'Chewy', cursive;
    font-weight: normal;
    line-height: 1.4;
    display: block;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .online-warning {
        display: none !important;
    }
    
    .middle-text, .additional-text {
        display: block;
        font-size: 1rem;
    }
}

.download-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-title {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--title-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: normal;
    letter-spacing: 1px;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.download-button {
    background: var(--button-bg);
    color: white;
    padding: 20px 30px;
    border: 5px solid var(--button-border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 220px;
    font-family: 'Chewy', cursive;
    text-decoration: none;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: var(--button-hover-bg);
    border-color: var(--button-hover-border);
}

.download-button:active {
    transform: translateY(-1px);
}

.download-button.linux-button {
    background: var(--button-bg);
    border-color: var(--button-border);
}

.download-button.linux-button:hover {
    background: var(--button-hover-bg);
    border-color: var(--button-hover-border);
}

.button-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    gap: 3px;
}

.button-title {
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    font-weight: normal;
    line-height: 1.2;
}

.button-title.windows { color: #93c5fd; }
.button-title.android { color: #86efac; }
.button-title.linux { color: #ffb366; }
.button-title.online { color: #fca5a5; }

.button-subtitle {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-family: Arial, sans-serif;
    line-height: 1.3;
}

.button-subtitle.windows { color: #bfdbfe; }
.button-subtitle.android { color: #bbf7d0; }
.button-subtitle.linux { color: #ffb366; }
.button-subtitle.online { color: #fecaca; }

.button-size {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-family: Arial, sans-serif;
    line-height: 1.3;
}

.button-size.windows { color: #bfdbfe; }
.button-size.android { color: #bbf7d0; }
.button-size.linux { color: #ffb366; }

.icon {
    width: clamp(24px, 6vw, 30px);
    height: clamp(24px, 6vw, 30px);
    flex-shrink: 0;
}

.windows-icon {
    filter: invert(24%) sepia(100%) saturate(2000%) hue-rotate(200deg) brightness(0.8);
}

.android-icon {
    filter: invert(35%) sepia(98%) saturate(1200%) hue-rotate(120deg) brightness(0.9);
}

.linux-icon {
    filter: invert(50%) sepia(75%) saturate(350%) hue-rotate(15deg) brightness(1.1);
}

.version {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--title-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.online-warning {
    font-size: clamp(0.75rem, 2vw, 0.8rem);
    color: var(--warning-color);
    text-align: center;
    font-family: 'Chewy', cursive;
    font-weight: normal;
    display: none;
    line-height: 1.4;
    padding: 0 10px;
    margin-top: 15px;
}

.file-info-section {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-info-title {
    color: var(--title-color);
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: normal;
    letter-spacing: 1px;
    text-align: center;
}

.file-info-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-info-item {
    text-align: center;
    font-family: 'Chewy', cursive;
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    line-height: 1.6;
}

.file-info-platform.windows-color, 
.file-info-platform.android-color, 
.file-info-platform.linux-color {
    color: var(--title-color);
    font-weight: normal;
}

.file-info-details {
    color: var(--text-color);
    margin-left: 0.5rem;
}

.version-spacing {
    height: 20px;
}

.contact-section {
    margin-top: 15px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-line {
    width: 100%;
    max-width: 100%;
    height: 3px;
    background-color: var(--contact-line-color);
    border-radius: 2px;
    display: block;
}

.privacy-section {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--text-color);
    text-align: center;
    font-family: Arial, sans-serif;
    font-weight: normal;
    line-height: 1.5;
    width: 100%;
    margin: 0;
    padding: 0;
}

.privacy-link {
    color: var(--text-color);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #93c5fd;
}

.contact-info {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--text-color);
    text-align: center;
    font-family: Arial, sans-serif;
    font-weight: normal;
    line-height: 1.5;
    width: 100%;
    margin: 0;
    padding: 0;
}

.contact-info p {
    margin: 0;
    padding: 0;
    text-align: center;
    display: block;
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        gap: 20px;
        padding: 30px 20px;
    }
    
    .buttons-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .download-button {
        max-width: 250px;
        padding: 20px 25px;
    }
    
    .online-play-section {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .online-warning {
        display: block;
    }
    
    .download-button {
        min-width: 180px;
        padding: 12px 18px;
    }
    
    .button-title { font-size: 0.9rem; }
    .button-subtitle, .button-size { font-size: 0.65rem; }
    .presentation-title, .download-title { font-size: 1.1rem; }
    .presentation-text { font-size: 0.95rem; }
    .icon { width: 25px; height: 25px; }
    .additional-text { font-size: 0.95rem; }
    .file-info-title { font-size: 1.1rem; }
    .file-info-item { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    body { padding: 8px; }
    .container { padding: 12px 8px; gap: 12px; }
    .download-button { padding: 10px 12px; gap: 8px; min-height: 60px; max-width: 100%; }
    .icon { width: 22px; height: 22px; }
    .contact-line { height: 2px; }
    .additional-text { font-size: 0.85rem; }
    .file-info-item { font-size: 0.8rem; line-height: 1.4; }
}

@media (min-width: 1200px) {
    .container { max-width: 900px; gap: 25px; }
    .download-button { max-width: 300px; padding: 25px 35px; }
}

@media (prefers-reduced-motion: reduce) {
    .download-button:hover, .download-button:active { transform: none; }
    body { animation: none; }
    .wave-pattern { animation: none; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --button-bg: rgba(74, 158, 255, 0.6);
        --button-hover-bg: rgba(91, 166, 255, 0.7);
    }
}