:root {
    --space-dark: #0a0e17;
    --space-blue: #1a2a4a;
    --space-light: #3d5a80;
    --neon-blue: #4cc9f0;
    --neon-purple: #7209b7;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--space-dark);
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="0.5" fill="white"/><circle cx="50" cy="30" r="0.7" fill="white"/><circle cx="80" cy="10" r="0.3" fill="white"/><circle cx="10" cy="70" r="0.4" fill="white"/><circle cx="90" cy="60" r="0.6" fill="white"/></svg>') repeat;
    z-index: -1;
    animation: twinkle 10s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.settings-card {
    background: rgba(26, 42, 74, 0.8);
    border: 1px solid var(--space-light);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.2);
    backdrop-filter: blur(5px);
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--neon-blue);
    font-weight: 300;
}

input, select {
    width: 100%;
    padding: 12px;
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid var(--space-light);
    border-radius: 5px;
    color: white;
    font-size: 1rem;
}

select[multiple] {
    height: auto;
    min-height: 100px;
}

option {
    padding: 8px;
    background: var(--space-dark);
}

.glow-button {
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(114, 9, 183, 0.5);
    letter-spacing: 1px;
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(114, 9, 183, 0.8);
}

.hidden {
    display: none;
}

.code-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(10, 14, 23, 0.6);
    border-radius: 10px;
    border: 1px dashed var(--neon-blue);
}

.game-code {
    font-size: 2.5rem;
    letter-spacing: 5px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    font-family: 'Orbitron', monospace;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.7);
    border: 1px solid var(--space-light);
}

#gameCodeScreen p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}




/* Общие стили для обоих файлов */
.link-container {
  display: flex;
  gap: 10px;
  margin: 1.5rem 0;
  width: 100%;
}

/* Новые стили для textarea с кодом игры */
.game-link {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--space-light);
  border-radius: 5px;
  color: var(--neon-blue);
  font-family: 'Roboto', monospace;
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 10px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* Контейнер для кнопки копирования */
.copy-btn-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.copy-btn {
  background: rgba(114, 9, 183, 0.3);
  color: white;
  border: 1px solid var(--neon-purple);
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.copy-btn:hover {
  background: rgba(114, 9, 183, 0.5);
}

.copy-btn:hover {
  background: rgba(114, 9, 183, 0.5);
}

.copy-icon {
  font-size: 1.2rem;
}

/* Только для index.html */
#gameCodeScreen .link-container {
  margin: 20px 0;
}

.rules-btn-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem; /* Увеличенный отступ снизу */
}
        
.rules-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 12px 24px;
            background: linear-gradient(45deg, #3d5a80, #4cc9f0);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-family: 'Orbitron', sans-serif;
            letter-spacing: 1px;
            transition: all 0.3s;
            width: auto;
            min-width: 220px;
            text-align: center;
}
        
.rules-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(76, 201, 240, 0.4);
}
        
.btn-icon {
            font-size: 1.2rem;
}







        /* Стили для анимированных ракет */
        .rocket {
            position: absolute;
            width: 40px;
            height: 80px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 48"><path fill="%23ffffff" d="M12 0L8 8h8l-4-8zm0 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm-8 8l4 4H4l-4-4zm16 0l-4 4h4l4-4zm-12 4l2 6-2 6h4l-2-6 2-6h-4zm4 0l2 6-2 6h4l-2-6 2-6h-4z"/></svg>') no-repeat;
            background-size: contain;
            opacity: 0.3;
            z-index: -1;
            animation: fly linear infinite;
        }

        @keyframes fly {
            0% {
                transform: translateX(-100px) translateY(100px) scale(0.5);
                opacity: 0;
            }
            10% {
                opacity: 0.3;
            }
            90% {
                opacity: 0.3;
            }
            100% {
                transform: translateX(calc(100vw + 100px)) translateY(-100px) scale(0.8);
                opacity: 0;
            }
        }

        /* Контейнер для ракет */
        .rockets-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -1;
        }




/* Основные кнопки выбора действия */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 2rem 0;
}

.action-buttons .glow-button {
    width: 100%;
}

/* Поле ввода кода */
.code-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
}

.code-char {
    width: 60px;
    height: 80px;
    font-size: 3rem;
    text-align: center;
    text-transform: uppercase;
    background: rgba(10, 14, 23, 0.7);
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
}

.code-char:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.5);
}

/* Стили для кнопки Назад */
#backBtn {
    width: 100%;
    background: linear-gradient(45deg, #3d5a80, #4cc9f0);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#backBtn .btn-icon {
    font-size: 1.2rem;
}

.hidden {
    display: none;
}