* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    font-family: 'Roboto', sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-in-out;
}

header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideIn 0.5s ease-in-out;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.header-content p {
    font-size: 1.1rem;
    margin-top: 10px;
    color: #f0f0f0;
}

.content-container {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 20px;
    padding: 20px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: bounceIn 1s ease-out;
}

.result-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.result {
    flex: 1;
    background: rgba(75, 85, 99, 0.8);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: fadeIn 0.8s ease-in;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.result:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.result h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.result p {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 5px;
}

#speedGraph {
    margin-top: 20px;
}

#start-test {
    background: #4F46E5;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

#start-test:hover {
    background: #4338CA;
    transform: scale(1.1);
}

/* Estilos para autenticación */
#auth-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

#auth-container button {
    padding: 12px 30px;
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#auth-container button:hover {
    background-color: #3367D6;
}

/* Estilos de la tabla */
#history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #fff;
}

#history-table th, #history-table td {
    padding: 10px;
    border: 1px solid #444;
    text-align: center;
}

#history-table th {
    background-color: #333;
    font-weight: bold;
}

#ads {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    border-radius: 10px;
}

#ads p {
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

#ads a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}
