/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

a {
    color: #00d4ff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffeb3b;
    text-decoration: underline;
}

hr {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

/* Landing Page Styles */
.landing-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.action-button {
    display: inline-block;
    width: 100%;
    max-width: 250px;
    padding: 15px;
    background: linear-gradient(135deg, #ff6f61 0%, #ff3d00 100%);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease, background 0.3s ease;
}

.action-button:hover {
    background: linear-gradient(135deg, #ff3d00 0%, #ff6f61 100%);
    transform: translateY(-2px);
}

.action-button:active {
    transform: translateY(1px);
}

.github-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.github-icon {
    font-size: 3rem; /* Increased size */
    color: #ffffff;
    transition: color 0.3s ease;
}

.github-link a:hover .github-icon {
    color: #ffeb3b;
}

/* Game Page Styles */
.container {
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.grid {
    background-color: #ffffff;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.controls-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.info-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.score-container, .next-container {
    color: #ffeb3b;
    font-size: 1.5rem;
    font-weight: 600;
}

.score-container::before, .next-container::before {
    content: attr(data-label);
    display: block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.score-container::before {
    content: "Lines Cleared";
}

.next-container::before {
    content: "Next Piece";
}

.next-canvas {
    border-radius: 5px;
}

.start-ai-button, .reset-button {
    margin-top: 0;
}

.footer {
    font-size: 0.9rem;
    text-align: center;
    color: #ffffff;
    opacity: 0.8;
}

.footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (min-width: 600px) {
    .game-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .grid {
        margin-right: 20px;
    }

    .controls-container {
        width: 150px;
    }

    .header-logo {
        max-width: 300px;
    }

    .container {
        max-width: 600px;
    }

    .landing-container {
        max-width: 600px;
    }

    .header-logo {
        max-width: 300px;
    }
}
