@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Montserrat:wght@500&family=Nunito:ital@0;1&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Nunito", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    background-color: #1F1F1F;
    color: #fff;
    line-height: 1.5;
}

.wrapper {
    max-width: 400px;
    margin: 0 auto;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

img, picture, iframe {
    display: block;
    width: 100%;
}


/* TEXT */

h1 {
    font-family: "IBM Plex Mono", monospace;
    font-size: 36px;
    color: #fff;
    font-weight: 400; 
    padding: 10px 6.25%;
}

h2 {
    font-family: "IBM Plex Mono", monospace;
    font-size: 24px;
    color: #C686C1;
    font-weight: 600; /*semibold  ifølge google*/
    padding-bottom: 5px;
}

h3 {
    font-family: "IBM Plex Mono", monospace;
    font-size: 18px;
    color: #CE9178;
    font-weight: 600; /*semibold  ifølge google*/
    padding-bottom: 5px;
}

p {
    padding-bottom: 1em;
}
p:last-of-type {
    padding-bottom: 0;
}

.bold {
    font-weight: 700;
    padding-bottom: 0;
}

.small {
    font-size: 13px;
    font-weight: 300;
}


/* NAV / MENU */

header {
    margin-top: 50px;
}

nav {
    width: 100%;
    height: 50px;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;

    background-color: #1F1F1F;
    box-shadow: 0 2px 10px 0 #000;
}

.menu {
    width: 100%;
    height: 50px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: relative;
    z-index: 9999;

    padding: 0 6.25%;
    margin: 0 auto;
}

.menu__links {
    width: 100%;
    height: 0;
    overflow: hidden;
    opacity: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    position: fixed;
    z-index: 99;

    background-color: #1F1F1F;
    /* padding: 9em 8.75%; */
    transition: height 0.5s, gap 0.5s, opacity 0.2s;
}
.menu__links.active {
    height: 100vh;
    gap: 50px;
    opacity: 1;
}

.logo {
    height: 26px;
    width: auto;
}

.burger {
    display: block;
    font-size: 22px;
    cursor: pointer;
}

.dropdown {
    display: none;
}


/* MAIN + FOOTER */

main {
    display: grid;
    row-gap: 35px;
    margin-top: 20px;
}

footer {
    background-color: #1F1F1F;
    text-align: center;
    box-shadow: 0 -2px 10px 0 #000;
    padding: 1.3em 0;
    margin-top: 60px;
}


/* ANDRE TING */

.hero {
    width: 100%;
}

section, .introduction p {
    margin: 0 6.25%;
}




/* ---------- COMPONENTS ---------- */

/* FAKTABOKS */

.fakta {
    color: #1F1F1F;
    border-radius: 15px;
    padding: 1em 2em 1.5em;
}

.fakta__1 {
    background-color: #9ADDFF;
}

.fakta__2 {
    background-color: #569DD6;
}

.fakta__3 {
    background-color: #CE9178;
}

.fakta h2 {
    text-align: center;
    color:#1F1F1F;
}

.fakta__moduler h2 {
    text-align: left;
}


/* BUTTONS */

.button {
    font-family:"Montserrat", serif;
    font-weight: 600;
    color: #000;

    position: relative;
    cursor: pointer;
    transition: hover 0.1s;
}
.button:hover {
    opacity: 0.75;
}

.button__arrow {
    font-size: 20px;
    position: absolute;
    right: 20px;
    padding-top: 2px;
}


/* menu buttons */

.button__menu {
    width: 90%;
    display: block;   
    font-size: 16px;
    text-align: center;

    background-color: #C686C1;
    color: #1F1F1F;
    border: none;
    border-radius: 30px;
    box-shadow: 0 0 10px #000a;

    padding: 0.8em 1em;
    margin: 0 auto;
}

.button__dropdown {
    width: 200px;

    font-size: 16px;
    text-align: center;

    background-color: #1F1F1F;
    color: #C686C1;
    border: solid 2px #C686C1;
    border-radius: 30px;
    box-shadow: 0 0 10px #000a;

    padding: 0.5em;
}


/* link buttons */

.button__link {
    display: block;
    width: 100%;
    
    background-color: #D7BA7D;
    border: none;
    border-radius: 30px;
    box-shadow: 0 0 10px #000a;

    font-size: 16px;
    text-align: center;

    padding: 0.5em 1.5em;
    margin-top: 20px;
}


/* fakta buttons */

.button__fakta {
    display: block;
    width: 100%;

    background-color: #569DD6;
    border: none;
    border-radius: 30px;

    font-size: 16px;
    text-align: center;

    padding: 0.5em 0;
    margin-top: 10px;
}

.button__fakta .fa-angle-right{
    font-size: 1.2em;
    position: absolute;
    right: 20px;
}


/* read more / read less */

.button__readmore {
    max-width: 200px;
    width: 100%;
    height: 30px;
    display: block;
    
    font-size: 16px;
    text-align: center;

    color: #000;
    background-color: #6A9A56;
    border: none;
    border-radius: 25px;
    box-shadow: 0 0 10px #000a;

    margin: 10px auto 0;
}

.button__readmore.active {
    color: #6A9A56;
    background-color: #1F1F1F;
    border: 2px solid #6A9A56;
}

.arrow__readmore {
    font-size: 20px;
    position: absolute;
    right: 20px;
}

.arrow__dropdown {
    font-size: 20px;
    position: absolute;
    right: 20px;
    transition: transform 0.4s;
}
.arrow__dropdown.active {
    transform: rotate(-180deg);
}