/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    overflow-y: scroll;
}

/* Body */
body {
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Header styles */
header {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    position: relative;
}

header h1, header h2 {
    margin-bottom: 10px;
    color: #fff;
}

/* Navigation menu styles */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropdown-toggle {
    cursor: pointer;
    padding: 8px 12px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    z-index: 1;
    top: 100%;
}

.dropdown-content li {
    padding: 5px;
}

.dropdown-content li a {
    color: white;
    display: block;
}

.dropdown-content li a:hover {
    background-color: #555;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Flexbox container for header */
.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Text container */
.centered-text {
    flex-grow: 1;
    max-width: 70%;
}

/* Image to the right */
.right-image {
    width: 10%;
    height: auto;
    padding-left: 10px;
    align-self: flex-start;
}

/* Main content */
main {
    padding: 20px;
}

section {
    margin-bottom: 20px;
}

.to-top-link {
    font-size: 12px;
    text-decoration: none;
    color: #555;
}

.to-top-link:hover {
    text-decoration: underline;
}

        /* Gör sidan längre genom att lägga till en tom sektion */
        .extra-space {
            height: 1400px; /* Justera denna höjd för att göra sidan längre eller kortare */
        }

/* Indented */
.indented {
    padding-left: 30px;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
    .content {
        flex-direction: column;
        align-items: center;
    }

    .centered-text {
        max-width: 100%;
        text-align: center;
    }

    .right-image {
        display: none;
    }


    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin-bottom: 10px;
    }
}

