* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Segoe UI, Arial, sans-serif;
    background-image: url("../images/tech-hatter_2.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #333;
}

header {
    background: #0f4c81;
    color: white;
    text-align: center;
    padding: 40px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
}

header h1 {
    font-size: 40px;
}

header p {
    margin-top: 10px;
    font-size: 20px;
}

main {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.info {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

.info h2 {
    color: #0f4c81;
    margin-bottom: 15px;
}

.grades h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0f4c81;
}


/* FŐOLDALI KÁRTYÁK */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.cards .card {
    background: rgba(235,245,255,0.95);
    text-decoration: none;
    color: #0f4c81;
    font-size: 20px;
    font-weight: bold;
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    transition: .3s;
    box-shadow: 0 6px 20px rgba(15,76,129,0.22);
    border: 1px solid rgba(255,255,255,0.8);
}

.cards .card:hover {
    background: #0f4c81;
    color: rgb(255, 255, 255) !important;
    transform: translateY(-6px);
}


/* 9. ÉVFOLYAM LAPJA */

.menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.menu .card {
    background: rgba(235, 245, 252, 0.9);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(15, 76, 129, 0.2);
}

.menu .card:first-child {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
}

.menu .card h2 {
    color: #0f4c81;
    margin-bottom: 15px;
}

.menu .card p {
    margin-bottom: 20px;
}

.menu .card > a {
    display: inline-block;
    background: #0f4c81;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
}


/* GOMBOK */

.buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.buttons a {
    background: #1976d2;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
}

.buttons a:hover {
    background: #0f4c81;
}


/* FOOTER */

footer {
    margin-top: 50px;
    background: #0f4c81;
    color: white;
    text-align: center;
    padding: 20px;
}

footer a {
    color: white;
    text-decoration: none;
}


/* FELADATOK FELUGRÓ ABLAK */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;

    padding: 30px;
    border-radius: 15px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: #0f4c81;
    margin-bottom: 25px;
}

.feladat {
    background: #eef2f7;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.feladat h3 {
    margin-bottom: 15px;
}

.feladat a {
    display: inline-block;
    background: #0f4c81;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
}

.feladat a:hover {
    background: #1976d2;
}

.modal-content button {
    border: none;
    background: #777;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.modal-content button:hover {
    background: #555;
}


/* TELEFONOS NÉZET */

@media screen and (max-width: 700px) {

    .cards {
        grid-template-columns: 1fr;
    }

    .menu {
        grid-template-columns: 1fr;
    }

    .menu .card {
        width: 100%;
    }

}
