/* imports for meyer's css reset, and google font */
@import url(https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css);
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');


/* nexus of colors i use through the website */
:root {
    --paper: beige;
    --darkPaper: rgb(216, 216, 194);
    --green: green;
    --bright: rgba(255, 255, 255, 0.1);
    --dark: rgba(0, 0, 0, 0.05);
    --darker: rgba(0, 0, 0, 0.4);
    
    /* setting default fontsize on whole site, and denying sidescroll, as something caused it and i have NO IDEA WHAT DOES IT, ITS EMPTY ON THE SIDE BUT THERES OVERFLOW SOMEHOW */
    font-size: 18px;
    overflow-x: hidden;
}
/* for any functional elements i dont want visible, though this time its only used for the nav icon checkbox */
.hide {display: none;}


h1, h2, h3, a, p {
    font-family: Open Sans;
}
/* i always display images as blocks, cause theyre displayed as inline by default, that makes them have some white space underneath due to line-spacing which exists in inline elements, why isnt this default tho? */
img {
    display: block;
    max-width: 100%;
}

/* this is what constraints everything to remain at a max width of 1080px */
.wrapper {
    display: flex;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 1080px;
    margin: auto;
}
.button {
    background-color: var(--green);
    color: white;
    border: none;
    text-decoration: none;
    height: 100%;
    display: block;
}
/* needed higher specificity here, kinda cursed */
ul:has(li) li .button:hover {
    filter: brightness(125%);
    color: white;
}

header {
    height: 54px;
    position: sticky;
    top: 0;
    background-color: white;
}

header .wrapper {
    padding: 0 1rem 0 1rem;
    justify-content: space-between;
    height: inherit;
}
.socials {
    display: flex;
    height: inherit;
    align-items: center;
    gap: .5rem;
}

nav {
    height: inherit;
}
nav ul {
    display: flex;   
    height: inherit;
}
nav li {
    height: inherit;
}

nav .button {
    display: flex;
    align-items: center;
    padding: 0 1rem 0 1rem;
}
/* this is a silly way of making a checked button, but since this assignment didnt require multiple pages, this does the job of showing which page the user is on. */
nav li:not(:first-child) .button {
    background-color: inherit;
    color: inherit;
}
nav li:not(:first-child) .button:hover {background-color: var(--green);}



.hero {
    background-image: url(/v2-eksamen/Materiale/img-01.jpg);
    background-position: 100%;
    background-size: 100%;
}

.hero .wrapper {
    justify-content: space-between;
    align-items: center;
    min-height: 25vw;
}

.logo {
    margin: auto;
    max-width: fit-content;
}

hero {
    max-width: 50%;
}

hero p {
    line-height: 1.2em;
}

hero .buttons {
    margin-top: .5rem;
    display: flex;
    gap: 1rem;
}
hero .button {
    padding: .5rem;
    border-radius: 1rem;
}

.content .wrapper {
    gap: 1rem;
    overflow: hidden;
}

h1 {
    font-size: 2em;
}


h3::before {
    content: "";
    background-image: url(/v2-eksamen/Materiale/bullet-point.png);
    height: 24px;
    margin-right: 5px;
    aspect-ratio: 1;
    display: inline-block;
}
h3 {
    padding: .5rem;
    font-size: 30px;
    color: var(--green);
    background-color: beige;
}

main ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

main .card:first-child { width: 100%; }
main .card {
    width: calc(50% - .5rem);
}

main .card p {
    margin: 1rem 0 1rem 0;
}

aside {
    min-width: 23%;
    height: inherit;
}
aside > ul, form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

aside .card {
    background-color: var(--dark);
}
aside .card li, 
aside .card form {
    padding: .5rem;
}
aside .card li:nth-child(2n - 1) {
    background-color: var(--dark);
}

form {
    gap: .5rem;
}

form input, form button {
    width: 95%;
    margin: auto;
    box-sizing: border-box;
    font-size: inherit;
}

aside .card li {
    display: flex;
}
.dates p:first-child {
    width: 30%;
}

h2 {
    font-size: 1.5em;
    color: var(--darker);
}

footer {
    background-color: var(--darkPaper);
}
footer .wrapper {
    justify-content: space-between;
}
.toe {
    max-width: 30%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.toe p {
    line-height: 1.5em;
    color: white;
}