* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

header {
    background-color: #BBC7A4;
    display: flex;
    justify-content: space-between;
}

nav {
    background-color: #BBC7A4;
    font-size: 1.2em;
    position: absolute;
    right: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    display: none;
}

nav ul {
    width: 100%;
    list-style-type: none;
    text-align: center;
    margin: 0 auto;
    padding: 0;
}

nav li {
    padding: 0.8em 0;
    width: 100%;
}

nav a { 
    color: black;
    text-decoration: none;
    padding: 0 1em;
}

nav li:hover {
    background-color: white;
    color: black;
    cursor: pointer;
}

.menu-btn {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #BBC7A4;
    color: white;
    cursor: pointer;
}

.open {
    margin: 0 1em;
}

.menu-btn:hover {
    background-color: grey;
    color: black;
}

.menu-icon {
    margin-right: 10px;
}

.bars {
    display: block;
    width: 20px;
    height: 3px;
    background-color: black;
    margin: 5px 0;
}

.menu-text {
    font-size: 1.2em;
    color: black;
}

.close {
    margin: 1em 1.5em;
    padding: 10px 15px;
}

.cross1 {
    width: 25px;
    transform: rotate(45deg);
    position: relative;
    top: 5px;
}

.cross2 {
    width: 25px;
    transform: rotate(135deg);
    position: relative;
    top: -3px;
}

a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

picture img{
    width: 100%;
    height: auto;
}

section h1 {
    font-size: 42px;
    color: #E75A7C;
    font-weight: bold;
    text-align: center;
    margin: 10px;
}


.image-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: 10px;
}

.image-container img {
    height: auto;
    width: 30%;
    padding: 20px;
}

#fargstick {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    position: relative;
    color: white;
    margin-top: 70px;
    margin-bottom: 30%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 32px;
}

#fargstick img {
    height: 300px;
    width: 100vw;
}


#fargstick h3:first-of-type {
    position: absolute;
    top: 5%;
}

#fargstick h3:last-child {
    position: absolute;
    top: 75%
}

#searchbox {
    padding: 0.5em;
    border: 2px white solid;
}

#searchbox:hover {
    background-color: #BBC7A4;
    cursor: pointer;
}

.gif-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.gif-container img {
    max-width: 70%;
}

.footer-container {
    margin-top: 10%;
}

footer {
    background-color: #BBC7A4;
    width: 100vw;
    text-align: center;
    font-size: 3vw;
}



/*media queries för startsidan och navigering för tablet*/
@media screen and (min-width: 801px) and (max-width: 1520px) {

    picture img {
        height: auto;
    }

    .image-container {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        margin: 10px;
    }

    .image-container img {
        width: 30%;
    }

    #fargstick {
        font-size: 32px;
        margin-bottom: 20%;
    }

    #fargstick h3:first-of-type {
        position: absolute;
        top: 20%;
    }
    
    #fargstick h3:last-child {
        position: absolute;
        top: 80%
    }

    #fargstick img{
        height: 70vh;
    }

    .gif-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .gif-container img {
        width: 50%;
    }
}

/*media querie för startsidan och navigering för skärmar över 1512px i bredd*/
@media screen and (min-width: 1521px) {

    picture img {
        height: auto;
    }
    .image-container {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        margin: 10px;
    }

    .menu-btn {
        display: none;
    }

    #open-menu {
        display: none !important;
    }

    header {
        position: static;
    }

    nav {
        display: block !important;
        position: static;
        right: 0;
        top: 0;
        height: auto;
        font-size: 1.4em;
        width: auto;
    }

    nav ul {
        height: 100%;
        margin-top: 25px;
        margin-right: 5%;
    }

    nav li {
        display: inline;
        padding: 0.5em;
        font-size: 16px;
    }

    header img {
        width: 200px;
        padding: 1em;
    }
    
    .menu-btn-close {
        display: none;
    }
    
    
    a {
        text-decoration: none;
        color: black;
        font-weight: bold;
        font-size: 1vw;
    }

    .logo {
        margin-left: 10%
    }

    .frilaggning h1 {
        font-size: 2vw;
    }


    .gif-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .gif-container img {
        width: 50%;
    }

    footer {
        font-size: 2vw;
    }
}

/*Om mig css kod*/
h1 {
    font-size: 42px;
    color:#E75A7C;
    text-align: center;
}

.about-container {
    width: 80%;
    margin-inline: auto;
}

.profile-container {
    text-align: center;
    width: 80%;
    margin-inline: auto;
}

.profile-container img {
    border-radius: 50%;
    max-width: 90%;
}

.info-container {
    padding: 10px;
}

.info-container h2 {
    text-align: center;
    color:#E75A7C;
    padding: 10px;
}

p {
    margin: 10px;
}

@media screen and (min-width: 1521px) {
    .about-container {
        display: flex;
        margin: 5%;
        width: 90%;
    }

    #about-me-header {
        font-size: 2vw;
    }

    .info-container {
        align-items: center;
        justify-content: center;
        margin: 2%;
    }

    .info-container p {
        font-size: 1vw;
    }

    .info-container h2 {
        font-size: 2vw;
    }

    .profile-container {
        margin: 2%; 
    }

    .profile-container img{
        width: 100%;
    }
}

/*Bildhantering css kod*/
article h2 {
    color:#E75A7C;
    text-align: center;
    margin-top: 20%;
}

article {
    width: 80%;
    margin-inline: auto;
}

@media screen and (min-width: 801px) and (max-width: 1520px) {
    article {
        width: 50%;
        margin-inline: auto;
    }
}

@media screen and (min-width: 1521px) {

    .hero-image{
        width: 100%;        /* Täck hela bredden av sin container */
        height: auto;       /* Behåll aspect ratio, undvik att bilden blir utdragen */
        display: block;     /* För att centrera bilden i dess container */
        margin: 0 auto;  
    }
    .section-container {
        display: grid;
        grid-template-columns: auto;
    }

    .section-container h1{
        font-size: 3vw;
    }

    .article-container {
        display: grid;
        grid-template-columns: 50% 50%;
        grid-gap: 30px;
    }

    .article-container h2 {
        grid-column: span 2;
        font-size: 3vw;
    }

    .item1 {
        grid-column: 1;
        height: 50px;
    }

    .item2 {
        grid-column: 2;
    }

    .item1 img,
    .item2 img {
    width: 100%;
    height: auto; 
    }

    #fargstick {
        margin-top: 20%;
        width: 100%;
        font-size: 2vw;
    }

    #fargstick img {
        width: 100vw;        /* Täck hela bredden av sin container */
        height: auto;       /* Behåll aspect ratio, undvik att bilden blir utdragen */
        margin: 0 auto;  
        display: block;
    }
}