* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.topnav {
    overflow: hidden;
    background-color: #333;
    position: relative;
}

#myLinks {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #444;
    display: none;
    background-color: #444;
}

#myLinks.show {
    max-height: 300px;
}

#myLinks a {
    border-top: 1px solid #555;
}

.quiz {
    text-align: center;
}

.quiz button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #3e3e3e;
    color: white;
    border: none;
    cursor: pointer;
}

.quiz button:hover {
    background-color: #a89a6a
}

.topnav a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
}


.topnav a.icon {
    background: black;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    font-size: 22px;
    padding: 10px;
}

.topnav a.icon {
    cursor: pointer;
    font-size: 20px;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f1ea;
    color: #333;
}

header {
    background-color: #3e3e3e;
    color: white;
    padding: 15px;
    text-align: center;
}

header h1 {
    margin: 10px 0;
}

.login-btn {
    z-index: 10;
    position: absolute;
    top: 15px;
    padding: 8px 12px;
    border: none;
    background-color: #c2b280;
    cursor: pointer;
}

.login-btn:hover {
    background-color: #a89a6a
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    margin-top: 10px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
}

.menu-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.option {
    background-color: #c2b280;
    padding: 10px 20px;
    text-decoration: none;
    color: black;
    border-radius: 5px;
}

.option:hover {
    background-color: #a89a6a;
}

section {
    margin-bottom: 40px;
}

img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}

.intro,
.image-section,
.events-intro,
.major-battles,
.war-end,
.consequences,
.political,
.economic,
.organization,
.intro-cause,
.image-text,
.important-causes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}


article {
    max-width: 600px;
}

h2 {
    margin-bottom: 15px;
    text-align: center;
}

h3 {
    margin-bottom: 10px;
    text-align: center;
}

ul {
    margin-left: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #999;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #ddd;
}

form {
    max-width: 500px;
}

input,
textarea,
select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

button {
    padding: 10px 15px;
    background-color: #3e3e3e;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #222;
}

footer {
    background-color: #3e3e3e;
    color: white;
    text-align: center;
    padding: 20px;
}

header {
    position: relative;
}

#myLinks a {
    padding: 12px;
    text-align: center;
}


#myLinks a:hover {
    background-color: #666;
    color: white;
}

section {
    transition: transform 0.2s ease;
}

section:hover {
    transform: scale(1.01);
}


/*Surfplatta*/
@media (min-width: 768px) {

    .intro,
    .image-section,
    .events-intro,
    .major-battles,
    .war-end,
    .consequences,
    .political,
    .economic,
    .organization,
    .intro-cause,
    .image-text,
    .important-causes {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    article {
        max-width: 500px;
    }

}

/*Dator*/
@media (min-width: 1024px) {
    main {
        max-width: 1100px;
        margin: auto;
    }

    .menu-options {
        gap: 40px;
    }

    nav ul {
        gap: 40px;
    }
}