/* ===== RESET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY ===== */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */

header {
    background-color: #222;
    color: white;

    text-align: center;

    padding: 30px;
}

header i {
    font-size: 60px;
    margin-bottom: 10px;
}

header h1 {
    margin-bottom: 10px;
}

.header__student-name {
    font-size: 18px;
}

/* ===== GRID CONTAINER ===== */

.container {
    flex: 1;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    grid-template-rows: repeat(3, 150px);

    gap: 15px;

    padding: 20px;
}

/* ===== KORT ===== */

.main__course {
    text-decoration: none;

    color: white;

    border-radius: 12px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: 0.3s;

    font-size: 20px;
}

.main__course i {
    font-size: 40px;
    margin-bottom: 10px;
}

.main__course:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* ===== GRID POSITIONER ===== */

.item1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.item2 {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.item3 {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
}

.item4 {
    grid-column: 1 / 5;
    grid-row: 3 / 4;
}

/* ===== FÄRGER ===== */

.color_web1 {
    background-color: #3498db;
}

.color_web2 {
    background-color: #2ecc71;
}

.color_webbserverprogrammering {
    background-color: #e67e22;
}

.color_final {
    background-color: #9b59b6;
}

/* ===== FOOTER ===== */

footer {
    background-color: #222;
    color: white;

    text-align: center;

    padding: 15px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .item1,
    .item2,
    .item3,
    .item4 {
        grid-column: auto;
        grid-row: auto;

        min-height: 150px;
    }
}