body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

button {
    display: block;
    margin: 0 auto 30px auto;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease; /*  See teeb sujuva ülemineku */
}

button:hover {
    background-color: #555;
    transform: scale(1.05); /*  suurendab button-it 5% iga */
}

#grupp {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /*  teeb nimodi et nimesildid on 3 ühel real, ja 1fr teeb nimodi et nad on sama laiusega */
    gap: 10px;
}

.poiss, .naine {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
    transition: all 0.4s ease; /*  See teeb sujuva ülemineku */
    border-radius: 8px;
}

.poiss:hover {
    background: linear-gradient(135deg, #eeeeff, #e0e0e0);
    transform: scale(1.01);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #e5e5ff;
}

.naine:hover {
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
    transform: scale(1.01);
    box-shadow: 0 4px 8px rgba(255,0,0,0.1);
    border-color: #ffcccc;
}

a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
    transition: color 0.3s ease; /*  See teeb sujuva ülemineku */
}

a:hover {
    color: #666;
}