* {
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    background-color: #FDDA0D;
}

button {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: normal;
    line-height: 30px;
}
.topbox {
    display: flex;           /* Makes the container a flex container */ /* Vertically align the text with the image */
    margin: 8.5% auto;
}

.midbox {
    display: flex;           /* Makes the container a flex container */ /* Vertically align the text with the image */
    margin: 2% auto;
}
.sidenav {
    background-color: #ffe479;
    width: 10%;
    height: 100%;
    position: fixed; top: 0; left: 0;
    margin: auto;
    padding: 0;
  }
  
  /* The navigation menu links */
.sidenav a {
    padding-top: 15%; padding-bottom: 15%;
    text-decoration: none; color: black;
    font-size: 20px;
    display: block;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    position: relative; top: 27%;
    margin-top: 15px;
    margin-left: 2px;
    font-weight: 800;
}

a:hover {
    background-color: #FDDA0D; /* #ffca06 */
    outline: 2px solid black;
}

.infobox {
    display: flex;           /* Makes the container a flex container */
    align-items: center;     /* Vertically align the text with the image */
    margin: 0 auto 19% 19%;
    margin-bottom: 0;
    width: 70%
}

.infobox img {
    margin-right: 20px; /* Adds space between the image and text */
    border-radius: 10px;
    width: 350px; height: auto; object-fit: cover;
}

.infobox p {
    margin: 0; /* Removes default margins for a cleaner look */
    font-family: "Roboto", sans-serif;
    position: relative;
    font-weight: 500;
    font-style: normal;
    line-height: 30px
}

.infobox h1 {
    margin: 0;
}

.text {
    margin-left: 20px;
    margin-right: 20px;
    flex: 1;
}

.shaddow {
    filter: drop-shadow(3px 3px 1px #222);
}
/*Tidslinje*/

/* The actual timeline (the vertical ruler) */
.timeline {
    position: absolute; left: 150px; top: 0; bottom: 0; right: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: white;
    top: 0;
    bottom: -600px;
    left: 50%;
    margin-left: -3px;
}

/* Container around content */
.container {
    padding: 10px 40px; top: 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circles on the timeline */
.container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid #FF9F55;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left {
    left: 0;
}

/* Place the container to the right */
.right {
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
    left: -16px;
}

/* The actual content */
.content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.github-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 5px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.github-button:hover {
    background-color: #555;
}

.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 5px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: normal;
    line-height: 30px;
}

.dropdown-content {
    display: none;
    position: relative;
    background-color: #f9f9f9;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content pre {
    margin: 0;
    border-radius: 10px;
    padding: 10px;
    background-color: #ffe479;
}

.dropdown button {
    background-color: rgb(255, 221, 62);
    color: black;
    outline: 1px solid black;
    border-radius: 10px;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 100%; /* Make the button take the full width */
    text-align: left; /* Align text to the left */
    position: relative; /* Required for positioning the triangle */
}

.dropdown button:after {
    content: ' ▼';
    font-size: 12px;
    position: absolute;
    right: 16px; /* Position the triangle on the right side */
    top: 50%;
    transform: translateY(-50%);
}

.dropdown button.active:after {
    content: ' ▲';
    font-size: 12px;
    position: absolute;
    right: 16px; /* Position the triangle on the right side */
    top: 50%;
    transform: translateY(-50%);
}


@media only screen and (max-width: 900px) {

    .sidenav {
        background-color: #ffe479;
        width: 100%;
        height: 10%;
        position: fixed; top: 90%; left: 0;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .sidenav a {
        text-decoration: none;
        background-color: #ffe479;
        color: black;
        font-size: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
        position: relative; top: 0;
        margin: 0;
        width: 100%;
        height: 100%;
        font-weight: 800;
        padding: 0;
        border-right: 2px solid black;
    }
    .sidenav a:last-child {
        border-right: none; /* Remove the border from the last item */
    }

    a:hover {
        background-color: #FDDA0D;
        outline: 2px solid black;
    }

    .infobox {
        display: revert;
        align-items: center;
        margin: 0;
        width: 100%;
    }

    .infobox img {
        display: block;
        margin: 0 auto 20px;
        border-radius: 10px;
        width: 350px;
        height: auto;
        object-fit: cover;
    }

    .infobox p {
        margin: 5px;
        font-family: "Roboto", sans-serif;
        display: flex;
        font-weight: 500;
        line-height: 30px;
    }

    .infobox h1 {
        margin-left: 10px;
    }

    .text {
        margin: 15px;
        flex: 0;
    }

    .shaddow {
        filter: drop-shadow(3px 3px 1px #222);
    }
    /*Tidslinje*/

    /* The actual timeline (the vertical ruler) */
    .timeline {
        position: relative; left: 0; top: 0; bottom: 0; right: 0;
        max-width: 1000px;
        margin: 0 auto;
    }

    /* The actual timeline (the vertical ruler) */
    .timeline::after {
        content: '';
        position: fixed;
        width: 6px;
        background-color: white;
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -3px;
    }

    /* Container around content */
    .container {
        padding: 0px 0px; top: 40px;
        position: relative;
        background-color: inherit;
        width: 50%;
    }

    /* The circles on the timeline */
    .container::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 25px;
        right: -17px;
        background-color: white;
        border: 4px solid #FF9F55;
        top: 15px;
        border-radius: 50%;
        z-index: 1;
    }

    /* Place the container to the left */
    .left {
        left: 0;
        padding-right: 20px;
    }

    /* Place the container to the right */
    .right {
        left: 50%;
        padding-left: 20px;
    }

    /* Add arrows to the left container (pointing right) */
    .left::before {
        content: " ";
        height: 0;
        position: absolute;
        top: 22px;
        width: 0;
        z-index: 1;
        right: 10px;
        border: medium solid white;
        border-width: 10px 0 10px 10px;
        border-color: transparent transparent transparent white;
    }

    /* Add arrows to the right container (pointing left) */
    .right::before {
        content: " ";
        height: 0;
        position: absolute;
        top: 22px;
        width: 0;
        z-index: 1;
        left: 10px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* Fix the circle for containers on the right side */
    .right::after {
        left: -16px;
    }

    /* The actual content */
    .content {
        padding: 20px 30px;
        background-color: white;
        position: relative;
        border-radius: 6px;
        font-family: "Roboto", sans-serif;
        font-weight: 500;
        font-style: normal;
    }

    .github-button {
        display: block;
        padding: 20px 20px;
        width: 80%;
        font-weight: bold;
        color: white;
        background-color: #333;
        border: none;
        border-radius: 5px;
        text-decoration: none;
        text-align: center;
        cursor: pointer;
        transition: background-color 0.3s ease;
        justify-content: center;
        align-items: center;
        margin: 20px auto;
    }

    .dropdown {
        position: relative;
        display: inline-block;
        width: 100%;
        margin: 5px;
        font-family: "Roboto", sans-serif;
        font-size: 8px;
        font-weight: 500;
        font-style: normal;
        line-height: 10px;
    }

    .dropdown-content {
        display: none;
        position: relative;
        background-color: #f9f9f9;
        border-radius: 10px;
        width: 100%;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
    }

    .dropdown-content pre {
        margin: 0;
        border-radius: 10px;
        padding: 10px;
        background-color: #ffe479;
    }

    .dropdown button {
        background-color: rgb(255, 221, 62);
        color: black;
        outline: 1px solid black;
        border-radius: 10px;
        padding: 16px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        width: 100%; /* Make the button take the full width */
        text-align: left; /* Align text to the left */
        position: relative; /* Required for positioning the triangle */
    }

    .dropdown button:after {
        content: ' ▼';
        font-size: 12px;
        position: absolute;
        right: 16px; /* Position the triangle on the right side */
        top: 50%;
        transform: translateY(-50%);
    }

    .dropdown button.active:after {
        content: ' ▲';
        font-size: 12px;
        position: absolute;
        right: 16px; /* Position the triangle on the right side */
        top: 50%;
        transform: translateY(-50%);
    }

    .topbox {
        display: flex;           /* Makes the container a flex container */ /* Vertically align the text with the image */
        margin: 4% auto;
    }

    .midbox {
        display: flex;           /* Makes the container a flex container */ /* Vertically align the text with the image */
        margin: 2% auto;
    }

    .bottomBox {
        display: flex;           /* Makes the container a flex container */
        margin: 20% auto;
    }
}

