:root{
    --bgColor: #f8f4ea;
    --bgSecondaryColor: #e1d7c6;
    --color3: #367a92;
    --formColor: lightgray;
    --textColor: rgb(255, 248, 248);
    --darkTextColor: #2b2b2b;
    --buttonColor: black;
    --itemBgColor: rgb(181, 135, 61);
    --navBgColor: lightgray;
    --circleSize: 60rem;
}


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

body {
    background-color: var(--bgColor);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: nunito;
    scrollbar-color: var(--color3) transparent;
}

/* #bgCircle {
    background-color: var(--bgSecondaryColor);
    width: var(--circleSize);
    height: var(--circleSize);
    position: absolute;
    border-radius: 100%;
    left: 50%;
    top: 12%;
    margin: 0;
    padding: 0;
    transform: translate(-50%);
    z-index: -1;
} */


#scoreText {
    position: absolute;
    top: 0rem;
    left: 1.5rem;
    text-align: left;
    margin: 0;
    color: var(--textColor);
    font-size: 5rem;
}

nav {
    margin: 3rem;
}

nav ol {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    font-size: 1.5rem;
    list-style-type: none;
    padding: 0; 
    margin: 0; 
}

nav ol li a {
    text-decoration: none;
    background-color: var(--navBgColor);
    padding: 1rem;
    border-radius: 2rem;
}

#left {
    background-color: var(--bgSecondaryColor);
    flex: 1;
    height: 100%;
    border-radius: 2rem;
}

#leftContent {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#right {
    flex: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#rightleft {
    background-color: var(--color3);
    flex: 1;
    height: 100%;
    border-radius: 2rem;
    position: relative;
}
#rightright {
    background-color: var(--bgSecondaryColor);
    flex: 1;
    height: 100%;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#righttop {
    display: flex;
    flex: 1;
    width: 100%;
    gap: 1rem;
    min-height: 0;
}

#rightbottom {
    background-color: var(--bgSecondaryColor);
    width: 100%;
    flex: 1;
    min-height: 0;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero{
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

h2{
    text-align: center;
}

.formDiv {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    padding: 1rem 0;
}

#backpackcontainer {
    width: 100%;
    height: 90%;
    justify-content: center;
    align-items: center;
    display: flex;
    position: relative;
}
.backpackBack, .backpackFront {
    width: 50%;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.backpackBack {
    z-index: 0;
}

.backpackFront {
    z-index: 10;
}

#sekkForm{
    background-color: var(--color3);
    padding: 25px 35px;
    /* border: 1px solid black; */
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}   

#sekkForm label{
    color: var(--textColor);
    font-size: 1.3rem;
}

#sekkForm select{
    border: none;
    color: var(--textColor);
    border-bottom: 1px solid var(--textColor);
    background-color: transparent;
    font-size: 1.3rem;
    cursor: pointer;
}

#sekkForm select option{
    font-size: 1.3rem;
    color: var(--darkTextColor);
}

/* #sekkForm button{
    width: 100px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background-color: var(--buttonColor);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: ease-in-out 20ms;
} */

#sekkForm button:hover{
    transform: scale(1.04);
}

.sekkMedTingDiv {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

.sekkMedTingDiv div {
    background-color: var(--color3);
    color: var(--textColor);
    width: 14rem;
    height: 14rem;
    margin: 1rem;
    position: relative;
    border-radius: 2rem;
    padding: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sekkMedTingDiv div button {
    background-color: var(--bgSecondaryColor);
    width: 2rem;
    height: 2rem;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border-radius: 50%;
    border: none;
}

.sekkMedTingDiv p {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    max-width: 10rem;
    overflow-wrap: break-word;
    position: absolute;
}

.sekkMedTingDiv div img {
    width: 100%;
    min-height: 140px;
    max-height: 140px;
    object-fit: cover;
    margin-top: auto;
    display: block;
    border-radius: 1rem;
}

.dropDownElement{
    position: absolute;
    top: -100px;
    left: var(--dropLeft, 50%);
    transform: translateX(-50%);
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    object-fit: cover;

animation: drop 2s ease forwards, spin 1s 1 linear forwards;
}

.removeElement { 
    position: fixed; 
    width: 5rem; 
    height: 5rem; 
    left: var(--removeLeft, 50%); 
    top: var(--removeTop, 340px); 
    border-radius: 1rem; 
    offset-path: path("M 0 0 C -100 -250, 400 -1000, 650 2000"); 
    offset-distance: 0%; 

    animation: remove 3s ease-in-out forwards; 

}

#stressinnholdHeader {
    text-align: left;
    font-size: 2.5rem;
    padding: 1rem;
    padding-left: 2rem;
    padding-bottom: 0;
}

@keyframes drop{
    0%{
        top: -100px;
    }
    
    100%{
        top: var(--dropTop, 280px);
    }
}

@keyframes spin{
    0%{
        transform: translateX(-50%) rotate(0deg);
    }
    100%{
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes remove{
    0%{
        offset-distance: 0%;
        opacity: 1;
    }
    25%{
        opacity: 1;
    }

    45%{
        opacity: 0;
    }
    100%{
        offset-distance: 100%;
    }
}
@font-face {
    font-family: "nunito";
    src: url(/fonts/Nunito-VariableFont_wght.ttf);
}

#lefth1 {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#lefth1 h2 {
    width: 40rem;
    height: 7.5rem;
    border-radius: 2rem;
    font-size: 4rem;
    color: var(--darkTextColor);
    
    display: flex;
    justify-content: center;
    align-items: center;
}

#lefth1 h3 {
    font-size: 2rem;
    margin-top: -2rem;
    color: var(--darkTextColor);
}

#liste ol{
    padding: 2rem;
    font-size: 2rem;
    list-style-type: none;
}

#liste ol li {
    margin-top: 1.2rem;
}

#liste ol li .itemButton {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--color3);
    color: var(--textColor);
    border: none;
    border-radius: 4rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    text-align: left;
    transition: 200ms ease-in-out;
}

#liste ol li .itemButton:hover,
#liste ol li .itemButton:focus-visible{
    transform: scale(1.05);
    box-shadow: 4px 4px 10px 1px rgba(0, 0, 0, 0.394);
    transition: 0.1s;
}

#liste ol li .itemButton span {
    color: var(--textColor);
    margin-left: 1rem;
}

.bulletPoint {
    margin-left: 0.3rem;
    width: 2rem;
    height: 2rem;
    background-color: rgb(255, 16, 63);
    border-radius: 100%;
}

#bulletPoint1 {background-color: red;}
#bulletPoint2 {background-color: orange;}
#bulletPoint3 {background-color: yellow;}
#bulletPoint4 {background-color: rgb(31, 230, 31);}
#bulletPoint5 {background-color: lightblue;}
#bulletPoint6 {background-color: darkblue;}
#bulletPoint7 {background-color: purple;}
#bulletPoint8 {background-color: pink;}


#sekkForm {
    display: none;
}

#resetButton {
    width: 8rem;
    height: 4rem;
    position: absolute;
    z-index: 10;
    bottom: 3rem;
    margin-left: 3rem;
    font-size: 2rem;
    background-color: #37829b;
    color: var(--textColor);
    border-radius: 1rem;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    border: none;
    transition: 0.15s;
    cursor: pointer;
}

#resetButton:hover {
    transform: scale(1.05);
    background-color: #32758b;
}

#infoBox {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    color: var(--darkTextColor);
    font-size: 1.15rem;
    line-height: 1.6;
}

#infoBox h1 {
    font-size: 3.1rem;
    margin-bottom: 0.5rem;
    text-decoration: underline;
}

#infoBox h2 {
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.3rem;
    text-align: left;
}

#infoBox p {
    margin-bottom: 0.5rem;
}

#infoBox hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid var(--darkTextColor);
    opacity: 0.3;
}

#helpList {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#helpList a {
    display: block;
    background-color: var(--color3);
    color: var(--textColor);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    transition: 0.15s;
}

#helpList a:hover,
#helpList a:focus-visible {
    transform: scale(1.02);
}

#healthMessage {
    color: var(--textColor);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    font-size: 1.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0;
}


@media (max-width: 1024px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .hero {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        gap: 1.5rem;
        padding: 1rem;
    }

    #healthMessage {
        font-size: 1rem;
        text-align: center;
    }

    #right, #righttop { display: contents; }

    #left, #rightleft, #rightright, #rightbottom {
        flex: none;
        width: 100%;
        height: auto;
        overflow: visible;
        border-radius: 1.5rem;
    }

    #rightleft {
        order: 1;
        height: 35vh;
        min-height: 280px;
    }

    .backpackBack, .backpackFront {
        width: auto;
        height: 85%;
        max-width: 90%;
        object-fit: contain;
    }

    #scoreText { font-size: 3rem; top: 1rem; left: 1rem; }

    #left { order: 2; }
    
    #lefth1 { margin-top: 1rem; padding: 0.5rem; }
    
    #lefth1 h2 { 
        width: 90%; 
        font-size: 2.2rem; 
        height: auto; 
    }
    
    #lefth1 h3 {
        font-size: 1.2rem;
        margin-top: 0.5rem;
    }
    
    #liste ol {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    #liste ol li { margin-top: 0; }
    
    #liste ol li .itemButton {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0.5rem;
        border-radius: 1rem;
    }
    
    .bulletPoint { flex-shrink: 0; }
    
    #liste ol li .itemButton span { 
        margin-left: 0.5rem; 
        font-size: 0.95rem; 
        text-align: left; 
    }

    #rightbottom {
        order: 3;
        min-height: 150px;
        padding: 1.5rem 1rem;
    }

    .sekkMedTingDiv {
        flex: none;
        height: auto;
        overflow: visible;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 1rem;
    }

    .sekkMedTingDiv div {
        width: 9rem;
        height: 12rem;
        margin: 0; 
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0.75rem;
        border-radius: 1rem;
    }

    .sekkMedTingDiv p {
        position: relative; 
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        text-align: center;
        max-width: 100%;
        line-height: 1.2;
    }

    .sekkMedTingDiv div img {
        flex: 1;
        min-height: 0; 
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 0.5rem;
        margin-top: 0;
    }

    .sekkMedTingDiv div button {
        top: -0.4rem;
        right: -0.4rem;
    }

    #resetButton {
        position: relative;
        bottom: auto;
        margin: 1.5rem auto 0 auto;
        display: block;
        width: 80%;
        max-width: 15rem;
        height: 4rem;
        order: 999;
    }

    #rightright {
        order: 4;
        padding: 1.5rem;
    }

    #infoBox {
        padding: 0;
        height: auto;
        overflow: visible;
    }
}