/* =====================
   ÜLDISED SEADED
   ===================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fff;
}

/* =====================
   NAVIGATSIOON
   ===================== */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #5C2D6E;
    color: white;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
}

nav ul a:hover {
    color: #E896B8;
}

/* =====================
   PEAJAOTIS (HERO)
   ===================== */

.hero {
    background-color: #EDE0F5;
    text-align: center;
    padding: 100px 40px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
    color: #2c2c2c;
}

.hero h2 {
    font-size: 22px;
    font-weight: normal;
    margin-bottom: 20px;
    color: #555;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #666;
}

/* NUPP */
.nupp {
    background-color: #D4638A;
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 4px;
}

.nupp:hover {
    background-color: #B84D74;
}

/* =====================
   TUTVUSTUS
   ===================== */

.tutvustus {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 40px;
    text-align: center;
}

.tutvustus h2 {
    font-size: 32px;
    margin-bottom: 24px;
    color: #2c2c2c;
}

.tutvustus p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

/* =====================
   KÜKIKULOENDUR
   ===================== */

.loendur-sektsioon {
    text-align: center;
    padding: 50px 40px;
    background-color: #f9f4fc;
}

.mang-pealkiri {
    font-size: 28px;
    color: #5C2D6E;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}

.loendur-kast {
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.kyki-nupp {
    background-color: #D4638A;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    border-radius: 4px;
    cursor: pointer;
}

.kyki-nupp:hover {
    background-color: #B84D74;
}

.loendur-arv {
    font-size: 22px;
    font-weight: 600;
    color: #5C2D6E;
}

.mang-paigutus {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.mang-pool {
    min-width: 280px;
}

.edetabel-pool {
    min-width: 240px;
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(92, 45, 110, 0.1);
}

.edetabel-pealkiri {
    font-size: 18px;
    color: #5C2D6E;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.edetabel-nimekiri {
    padding-left: 20px;
    margin: 0;
}

.edetabel-rida {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #EDE0F5;
    font-size: 15px;
    color: #333;
}

.edetabel-nimi {
    font-weight: 600;
    color: #5C2D6E;
}

.edetabel-skoor {
    color: #D4638A;
}

.edetabel-tühi {
    list-style: none;
    color: #aaa;
    font-size: 14px;
}

.nimi-kast {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.nimi-sisend {
    padding: 12px 16px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    border: 2px solid #D4638A;
    border-radius: 4px;
    outline: none;
    width: 180px;
}

.uuesti-nupp {
    background: none;
    border: 2px solid #5C2D6E;
    color: #5C2D6E;
    padding: 10px 24px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
}

.uuesti-nupp:hover {
    background-color: #EDE0F5;
}

.alusta-nupp {
    background-color: #5C2D6E;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
}

.alusta-nupp:hover {
    background-color: #7A3D8E;
}

.mang-ekraan, .tulemus-ekraan {
    text-align: center;
}

.mang-aktiivne {
    text-align: center;
}

.mang-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 24px;
}

.countdown-kast {
    font-size: 28px;
    font-weight: 700;
    color: #D4638A;
}

.tulemus-tekst {
    font-size: 26px;
    font-weight: 600;
    color: #5C2D6E;
    margin-bottom: 24px;
}

.inimene {
    font-size: 48px;
    display: inline-block;
    transform-origin: bottom center;
}

@keyframes kykk {
    0%   { transform: scaleY(1) translateY(0); }
    30%  { transform: scaleY(0.55) translateY(10px); }
    60%  { transform: scaleY(0.55) translateY(10px); }
    100% { transform: scaleY(1) translateY(0); }
}

.kykk-animatsioon {
    animation: kykk 0.6s ease;
}

/* =====================
   JALUS (FOOTER)
   ===================== */

footer {
    text-align: center;
    padding: 30px;
    background-color: #5C2D6E;
    color: #E8D5F0;
    font-size: 14px;
}
