
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #6D6D6D;
    --transition-time: 2s;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #f0f0f0;
        --accent-color: #9E9E9E;
    }
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    transition: background-color var(--transition-time) ease, color var(--transition-time) ease;
}

.game-active body {
    background-color: rgba(0, 0, 0, 0.95);
}

.game-active .mainContent {
    opacity: 0.3;
    transition: opacity var(--transition-time) ease;
}

.mainContent {
    margin-top: -10%;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    position: relative;
    z-index: 10;
    opacity: 1;
    transition: opacity var(--transition-time) ease;
}

h1 {
    font-size: 2.3rem;
    margin-bottom: 0;
    padding-bottom: 0;
}

p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
    padding: 0;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.social-link-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: transform 0.2s ease;
}

.social-link-item:hover {
    transform: translateX(5px);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.social-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.social-username {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.social-description {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .social-links {
        /*gap: 0.1rem;*/
    }

    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .social-icon {
        width: 3rem;
        height: 3rem;
        font-size: 2rem;
        margin-right: 0.75rem;
    }
}

.startBtn {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.7;
    cursor: pointer;
    font-size: 2rem;
    z-index: 20;
    transition: all var(--transition-time) ease;
}

.startBtn:hover {
    opacity: 1;
}

.startBtn.launched {
    font-size: 4rem;
    transform: translateX(-50%) rotate(-45deg);
}

.halloween-theme .startBtn i::before {
    content: "\f6e2";
    color: #ff6600;
    font-weight: 900;
}

.halloween-theme .startBtn {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
}

.halloween-theme .startBtn {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
}

@keyframes swayAndScale {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg) scale(1);
    }
    25% {
        transform: translateX(-50%) rotate(-5deg) scale(1.5);
    }
    50% {
        transform: translateX(-50%) rotate(0deg) scale(2);
    }
    75% {
        transform: translateX(-50%) rotate(5deg) scale(1.5);
    }
}

.startBtn.animate {
    animation: swayAndScale 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5px, -5px) rotate(0.5deg); }
    50% { transform: translate(-5px, 5px) rotate(-0.5deg); }
    75% { transform: translate(-5px, -5px) rotate(1deg); }
}

.float {
    animation: float 10s infinite ease-in-out;
}

.spaceBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    z-index: 5;
    overflow: hidden;
    transition: opacity var(--transition-time) ease;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

#gameInfo {
    position: fixed;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 24px;
    z-index: 20;
    display: none;
}

#gameOverPanel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    z-index: 30;
}

#gameOverPanel.hidden {
    display: none;
}

#gameOverPanel h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 0.5s ease-out;
}

#finalScore {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

#gameOverPanel button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border: none;
    border-radius: 5px;
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

#gameOverPanel button:hover {
    background-color: #3a7bbf;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#endGameBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 20;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

#endGameBtn:hover {
    transform: scale(1.1);
}

#endGameBtn.hidden {
    display: none;
}

#endGameBtn svg {
    width: 100%;
    height: 100%;
}

.startBtn::after {
    content: "Launch!";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    white-space: nowrap;
    pointer-events: none;
}

.startBtn:hover::after {
    opacity: 0.7;
}
