* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Layout med CSS Grid */
.container {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
}

/* Header */
header {
    background-color: rgb(41, 41, 41);
    color: white;
    padding: 10px 0;
    text-align: center;
    position: relative;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li.logo {
    display: flex;
    justify-content: center;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    padding: 10px 15px;
    transition: 0.3s;
    border-radius: 3px;
}

nav ul li a:hover {
    background-color: rgb(80, 84, 87);
    border-radius: 5px;
    transform: translateY(-3px);
}

nav ul li.logo img {
    width: 55px;
    border-radius: 5px;
}

/* Main Content */
main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Text-overlay */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 10px;
}

/* Dropdown meny (dold på stora skärmar) */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 10px;
    color: white;
    background: none;
    border: none;
}

/* Kod för att hemsidan ska vara responsiv */
@media (max-width: 768px) {
    header {
        display: block;
    }

    /* Visa dropdown hamburgermenyn */
    .menu-toggle {
        display: block;
        color: rgb(94, 94, 94);
        z-index: 1001;
    }

    /* Dölj menyn först */
    .nav-links {
        display: flex;
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 30px;
        left: -250px;
        width: 200px;
        height: 100vh;
        padding-top: 0px;
        transition: left 0.3s ease;
        z-index: 1000;
        transition: all 0.3s ease;
        box-shadow: 5px 0 10px rgba(0, 0, 0, 0.5);
        padding-bottom: 100px;
        border-radius: 12px;
    }

    /* När menyn är aktiv */
    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        padding: 0px;
        text-align: left;
    }

    /*Tar bort texten på sidan*/
    .overlay {
        display: block;
        z-index: 1;    
    }
}