* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    word-break: break-word;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Poppins", 'Courier New', Courier, monospace;
    color: black;
    background-color: #9C89B8;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.namn {
    height: 150px;
    padding: 50px;
    background-image: linear-gradient(to right, #9C89B8, #EFC3E6 );
    background-size: 100%;
    }

h1, .logo {
    font-family: "Allura";
    font-size: 48px;
    font-weight: 600;
}

h2 {
    margin: 30px;
}

p {
    margin: 15px;
}

header {
    top: 0;
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
}

#burger, .menu, .top-nav, #menu-toggle, .namn-mobilmeny {
    display: none;
}

.container {
    width: 100%;
    align-items: center;
    margin: 0 auto;
    justify-content: space-between;
}

.topnav {
    background-image: linear-gradient(to right, #9C89B8, #EFC3E6 );
    width: 100%;
}

.topnav a {
    display: inline-block;
    color: black;
    padding: 14px 16px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    overflow: hidden;
    position: relative;
}

.topnav a:hover {
    color: white;
}

main {
    width: 90%;
    display: inline-block;
}

.mainsection {
    margin: 50px 200px 50px 200px;
    padding: 50px;
    background-color: #B8BEDD;
    box-shadow: 0 0 30px 10px #B8BEDD;
    border-radius: 5px;
    color: black;
}

.mainsection a {
    text-decoration: none;
    color: black;
}

.profile-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.profile-container p {
    width: 40%;
}

.profile-img {
    width: 20%;
}

footer {
    position: static;
    bottom: 0;
    left: 0;
    width: 100%;
}

.footer {
    background-image: linear-gradient(to right, #9C89B8, #EFC3E6 );
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.linkedin {
    display: flex;
    flex-direction: row;
    margin: auto;
}

.img-linkedin {
    width: 50px;
    margin-right: 10px;
}

.envelope {
    width: 60px;
    margin-top: 5px;
    margin-right: 10px;
}

.img-github {
    width: 50px;
}

.copyright {
    font-size: 12px;
}

@media screen and (max-width: 980px) {
    .topnav {
        display: none;
    }

    .container {
        display: none;
    }

    .namn-mobilmeny {
        display: flex;
        align-items: center;
        height: 48px;
        color: black;
    }

    .namn-mobilmeny p {
        font-size: 36px;
    }

    #burger {
        position: absolute;
        cursor: pointer;
        width: 2rem;
        height: 2rem;
        right: 1rem;
        top: 1rem;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }

    .top-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        background-image: linear-gradient(to right, #9C89B8, #EFC3E6 );;
        color: black;
        height: 50px;
        padding: 1em;
        width: 100%;
    }
    
    .menu-button-container {
        display: none;
        height: 100%;
        width: 30px;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /*Gör checkboxen osynlig.*/
    #menu-toggle {
        display: none;
    }
    
    .menu-button, .menu-button::before, .menu-button::after {
        display: block;
        background-color: black;
        position: absolute;
        height: 4px;
        width: 30px;
        transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
        border-radius: 2px;
    }
    
    .menu-button::before {
        content: '';
        margin-top: -8px;
    }
    
    .menu-button::after {
        content: '';
        margin-top: 8px;
    }
    
    #menu-toggle:checked + .menu-button-container 
    .menu-button::before {
        margin-top: 0px;
        transform: rotate(405deg);
    }
    
    #menu-toggle:checked + .menu-button-container 
    .menu-button {
        background: rgba(255, 255, 255, 0);
    }
    
    #menu-toggle:checked + .menu-button-container 
    .menu-button::after {
        margin-top: 0px;
        transform: rotate(-405deg);
    }
    
    .menu {
        display: flex;
        flex-direction: row;
        list-style-type: none;
        margin: 0;
        padding: 0;
    }
    
    .menu > li {
        margin: 0 1rem;
        overflow: hidden;
    }
    
    .menu a {
        text-decoration: none;
        color: black;
    }
    
    .menu-button-container {
        display: flex;
    }
    
    .menu {
        position: absolute;
        top: 0;
        left: 0;
        margin-top: 50px;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    
    #menu-toggle ~ .menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23 , 1, 0.32, 1);
    }
    
    /*Får menyn att visa när man trycker på hamburgermenyn.*/
    #menu-toggle:checked ~ .menu li {
        height: 2.5em;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    /*Stilar menylistan när man tryckt på hamburgermenyn.*/
    .menu > li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0 0;
        width: 100%;
        color: #fff;
        background-image: linear-gradient(to right, #9C89B8, #EFC3E6 );
    }
    
    /*Lägger till en border under varje element i listmenyn förutom den sista.*/
    .menu > li:not(:last-child){
        border-bottom: 1px solid black;
    }

    main {
        width: 100%;
    }

    .mainsection {
    margin: 50px;
    }

    .profile-container {
    flex-direction: column;
    }

    .profile-container p {
        width: 100%;
    }

    .profile-img {
        width: 65%;
    }
}

@media screen and (max-width: 375px) {
    .namn-mobilmeny {
        display: flex;
        height: 48px;
        color: white;
    }

    .namn-mobilmeny p {
        font-size: 32px;
    }

    .profile-img {
        width: 80%;
    }
}