:root {
    --bg: rgb(34, 34, 34);
    --nav-bg: rgb(0, 80, 100);
    --li-active: rgb(100, 0, 100);
    --primary: rgb(220, 220, 220);
    --secondary: rgb(158, 54, 2);
    --link: rgb(79, 174, 198);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: system-ui;
    background: var(--bg);
    color: var(--primary);
}

body {
    min-height: 100dvh;
    margin: 0;
    font-size: 1.5rem;
    display: grid;
    grid-template-columns: 20rem 1fr;
    gap: 4rem;
}

nav {
    position: sticky;
    top: 0;
    max-height: 100dvh;
    background-color: var(--nav-bg);
    overflow: scroll;
}

.nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1.5rem;
    padding-block: 4rem;
    font-size: 1.5rem;
}

.nav-list li {
    padding: 1rem 0 1rem 2rem;
    margin-left: 2rem;
    /* border: 2px solid red; */
    border-radius: 100vw 0 0 100vw;
}

.nav-list li.active {
    background: var(--bg);
    position: relative;
}

.nav-list li.active::before,
.nav-list li.active::after {
    --border-radius: 3rem;

    content: '';
    position: absolute;
    width: var(--border-radius);
    height: var(--border-radius);
    right: 0;
    /* background: red; */
    border-radius: 100vw;
}

.nav-list li.active::before {
    top: calc(var(--border-radius) * -1);
    border-radius: 0 0 100vw 0;
    box-shadow: 10px 10px 0 10px var(--bg);
}

.nav-list li.active::after {
    bottom: calc(var(--border-radius) * -1);
    border-radius: 0 100vw 0 0;
    box-shadow: 10px -10px 0 10px var(--bg);
}

.nav-list a {
    color: var(--primary);
    text-decoration: none;
}

.nav-list a:hover {
    cursor: pointer;
}

main {
    padding-block: 2rem;
}

h1>a,
h1>a:hover,
h1>a:active {
    text-decoration: none;
    color: var(--primary);
}

iframe {
    width: 60vw;
    height: 50vh;
    border: none;
}

.link-section {
    margin-bottom: 40px;
}

.link-section a {
    color: var(--link, #4faec6);
    text-decoration: none;
}

.myself {
    display: flex;
    flex-direction: column;
    column-count: 2;
    column-gap: 2rem;
}

.myself img {
    max-width: 20rem;
    height: auto;
    padding: .2rem;
    padding-top: .4rem;
}

.myself p {
    margin: 0;
    padding: 0;
    margin-top: 2rem;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 300;
    max-width: 27rem;
    text-wrap: balance;
}

p {
    margin: 0;
    padding: 0;
    margin-top: 2rem;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 300;
    max-width: 50rem;
}

.polaroid {
    background-color: white;
    margin: 1.4rem;
    padding: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
    max-width: 22rem;
    color: darkred;
    text-align: center;
    border-radius: 4px;
    transform: rotate(2deg); /* valgfri for at give det lidt skæv attitude */
}

.img-example {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 4px;
}


/* Hide the checkbox */
.menu-toggle {
    display: none;
}

.nav-links {
    display: none;
}
  
/* Style the hamburger icon */
.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 2;
}

.menu-text {
    display: none;
}

.menu-icon span {
    background: #fff;
    display: block;
    height: 3px;
    margin: 5px 0;
    transition: 0.4s;
}
  
/* Responsive styles */
@media (max-width: 550px) {
    body {
        /* grid-template-columns: 1fr;
        gap: 0; */
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 20px;
    }

    .menu-text {
        display: flex;
        position: absolute;
        align-items: left;
        padding: 0;
        margin: 50px 0;
    }

    img {
        width: 100%;
        height: auto;
    }

    .menu-icon {
        display: block;
    }

    .nav-list,
    nav {
        display: none;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 60px; /* Adjust based on your header height */
        right: 0;
        width: 100%;
        z-index: 1;
    }

    .nav-links a {
        padding: 15px;
        text-align: center;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid #444;
    }

    /* Show menu when checkbox is checked */
    .menu-toggle:checked + .menu-icon + .nav-links {
        display: flex;
    }
}
