body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #0073e6;
    color: white;
    padding: 10px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 48px;
}

nav ul {
    list-style: none; /* Eemaldab punktid */
    padding: 0;
    display: flex; /* Reas kuvamine */
    justify-content: center; /* Tsentreerimine */
    gap: 15px; /* Vahe elementide vahel */
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: white; /* Teksti värv */
    text-decoration: none; /* Eemaldab alljoone */
    font-size: 18px;
    padding: 10px 20px; /* Klikitava ala suurus */
    border-radius: 5px; /* Ümarad nurgad */
    transition: background-color 0.3s ease; /* Sujuv taustavärvi muutus */
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Hoveril poolläbipaistev valge taust */
}

.hero-section {
    background-color: #0073e6;
    color: white;
    padding: 50px 0;
    text-align: center;
    position: relative;
}

.hero-section h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 30px;
}

.start-now {
    display: inline-block; /* Muudab lingi nupu moodi */
    text-decoration: none; /* Eemaldab alljoone */
    background-color: #ffc107; /* Algne kollane värv */
    color: #333; /* Teksti värv: tumehall */
    font-size: 18px; /* Suurus */
    padding: 12px 24px; /* Mugav suurus */
    border-radius: 8px; /* Ümarad nurgad */
    font-weight: bold; /* Rasvane tekst */
    transition: all 0.3s ease; /* Sujuv üleminek */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Kerge vari */
}

.start-now:hover {
    background-color: #e0a800; /* Hoveril tumedam kollane */
    transform: scale(1.1); /* Suureneb veidi */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Sügavam vari */
}

.start-now:active {
    transform: scale(1.05); /* Veidi väiksem klõpsamisel */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Väiksem vari */
}

.hero-section .img1 {
    position: absolute;
    top: -100px;
    left: 20px;
    width: 250px;
    height: 350px;
    border-radius: 125px;
    object-fit: cover;
    z-index: 2;
}

.hero-section .img2 {
    position: absolute;
    top: 50px;
    right: 20px;
    width: 250px;
    height: 350px;
    border-radius: 125px;
    object-fit: cover;
    z-index: 2;
}

.motivation-banner {
    background-image: url("images/everyone-can-code.jpg");
    background-size: cover;
    background-position: center;
    padding: 150px 20px;
    text-align: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    margin: 50px 0;
}

/* Motivatsioonibänneri animatsioon */
.motivation-banner {
    position: relative;
    transform: translateY(100px); /* Algne positsioon madalamal */
    opacity: 0; /* Nähtamatu alguses */
    transition: all 0.5s ease-out; /* Sujuv liikumine */
}

.motivation-banner.visible {
    transform: translateY(0); /* Algpositsioonile */
    opacity: 1; /* Muutub nähtavaks */
}

#why-us {
    background-color: #ffffff;
    padding: 50px 0;
    text-align: center;
}

#why-us h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #0073e6;
}

.reasons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.reason {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    width: 45%;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.reason h3 {
    font-size: 24px;
    color: #0073e6;
    margin-bottom: 10px;
}

.reason p {
    font-size: 16px;
    color: #555;
}

.reason {
    transform: translateY(50px); /* Alustavad allpool */
    opacity: 0.5; /* Madalam läbipaistvus */
    transition: transform 0.8s ease, opacity 0.8s ease;
}

#levels {
    background-color: #e6f7ff;
    padding: 50px 0;
    text-align: center;
}

#levels h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.levels {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.level {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 40%;
    margin: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.level h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.level p {
    font-size: 16px;
    color: #555;
}

.level {
    opacity: 0; /* Alustavad nähtamatult */
    transform: scale(0.8); /* Algne väiksem suurus */
    transition: transform 0.8s ease, opacity 0.8s ease;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
    font-size: 16px;
}


@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        width: 95%;
        padding: 10px;
    }

    header h1 {
        font-size: 36px;
    }

    nav ul {
        flex-direction: column; /* Menüü vertikaalseks */
        gap: 30px;
    }

    .hero-section .img1,
    .hero-section .img2 {
        display: none;
    }

    .hero-section {
        padding: 30px 0;
    }

    .hero-section h2 {
        font-size: 24px;
    }

    .motivation-banner {
        padding: 100px 20px; /* Muudab kõrguse väiksemaks */
    }

    .start-now {
        font-size: 16px;
        padding: 10px 20px;
    }

    .levels .level,
    .reasons .reason {
        width: 100%; /* Laius täissuuruses */
        margin: 10px 0;
    }
}
