﻿/* Reset básico y configuración global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #74ABE2, #5563DE);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
}

/* Estilos para el título */
h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Sección de instrucciones */
.instructions {
    margin-bottom: 20px;
}

    .instructions img {
        width: 50px;
        height: auto;
        margin-bottom: 10px;
    }

    .instructions p {
        font-size: 1.2rem;
    }

/* Canvas responsive con borde redondeado */
canvas {
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 20px 0;
    display: block;
}

/* Botones */
#startBtn,
#restartBtn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
    margin-top: 20px;
}

#startBtn {
    background: #3d49c1;
    color: #fff;
}

    #startBtn:hover {
        background: #2a3271;
    }

#restartBtn {
    background: #5563DE;
    color: #fff;
}

    #restartBtn:hover {
        background: #3d49c1;
    }

/* Sección de donación */
.donation {
    margin-top: 30px;
    font-size: 1rem;
}

    .donation a {
        color: #FFD700;
        text-decoration: none;
        font-weight: bold;
    }

        .donation a:hover {
            text-decoration: underline;
        }

/* Créditos del desarrollador */
.developer {
    margin-top: 10px;
    font-size: 0.9rem;
}

    .developer a {
        color: #FFD700;
        text-decoration: none;
        font-weight: bold;
    }

        .developer a:hover {
            text-decoration: underline;
        }

@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .instructions p {
        font-size: 1.5rem;
    }
}
