﻿* {
    box-sizing: border-box;
}

html {
    direction: rtl;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.45), transparent 34%),
        radial-gradient(circle at bottom left, rgba(187, 247, 208, 0.45), transparent 32%),
        #f7fbff;
    color: #243b53;
    margin: 0;
}

.body1 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.game-container {
    width: min(100%, 720px);
    padding: 34px 24px 38px;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.header-container {
    text-align: center;
    margin-bottom: 32px;
}

.main-title {
    color: #2563eb;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 10px;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.platform-logo {
    width: 150px;
    height: auto;
    border: 4px solid white;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

.platform-logo:hover {
    transform: rotate(10deg);
    transition: transform 0.3s ease;
}

h1,
h4 {
    margin: 0 0 18px;
}

h1 {
    color: #102a43;
    text-shadow: none;
}

h4 {
    display: inline-block;
    padding: 8px 16px;
    color: #8a5a16;
    background-color: #fff8e6;
    border: 1px solid #f5d58b;
    border-radius: 8px;
}

.level-selection {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

button {
    min-width: 110px;
    min-height: 44px;
    padding: 12px 22px;
    font-size: 1.1rem;
    font-weight: 700;
    background: #5ba976;
    color: white;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(50, 120, 80, 0.18);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

button:hover {
    background: #4d9868;
    transform: translateY(-1px);
}

.level-selection button:nth-child(2) {
    background: #4f83cc;
    box-shadow: 0 4px 12px rgba(79, 131, 204, 0.18);
}

.level-selection button:nth-child(2):hover {
    background: #426fb0;
}

.level-selection button:nth-child(3) {
    background: #d98282;
    box-shadow: 0 4px 12px rgba(217, 130, 130, 0.18);
}

.level-selection button:nth-child(3):hover {
    background: #c76f6f;
}

@media (max-width: 520px) {
    .main-title {
        font-size: 2.2rem;
    }

    .level-selection {
        flex-direction: column;
    }
}
