* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body{
  display: none;
} */

#container {
    width: 100vw;
    background-color: #f3ede1;
    max-width: 100vw;
}


#top_image {
    width: 100vw;
    height: 20vh;
    background-image: url(../src/top_image.png);
    background-size: cover;
    background-position: center;
    background-color: aqua;
}



@font-face {
      font-family: 'storemedtegn'; /*a name to be used later*/
      src: url(fonts/StoreBokstaverMedTallOgTegn40ls-Regular.otf) ; /*URL to font*/
    }

@font-face {
      font-family: 'storemedtegn2'; /*a name to be used later*/
      src: url(fonts/StoreBokstaverMedTegnTekstUnder-Regular.woff2) ; /*URL to font*/
    }

@font-face {
    font-family: 'handskrift'; /*a name to be used later*/
    src: url(fonts/SmaBokstaverFerd-Regular.otf) ; /*URL to font*/
}

@font-face {
    font-family: 'overskrifter_ekstra'; /*a name to be used later*/
    src: url(fonts/FineschmekkaFontFerdy-Regular.otf) ; /*URL to font*/
}
@font-face {
    font-family: 'plussOgMinus'; /*a name to be used later*/
    src: url(fonts/ComicRelief-Regular.ttf) ; /*URL to font*/
}

#top_stripe {
    width: 100vw;
    height: 3vh;
    background-color: #4f5b52;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'storemedtegn2', 'storemedtegn', sans-serif;
    font-weight: 500;
    font-size: 4rem;
}

/* Keyframes for fading */
@keyframes fadeQuotes {
  0% { opacity: 0; }
  10% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

/* Animation for top stripe quotes */
#top_stripe span {
  position: absolute;
  opacity: 0;
  animation: fadeQuotes 9s infinite;
  transform: translateY(-20%);
}

/* Delay each quote so they appear in sequence */
#top_stripe span:nth-child(1) {
  animation-delay: 0s;
}
#top_stripe span:nth-child(2) {
  animation-delay: 3s;
}
#top_stripe span:nth-child(3) {
  animation-delay: 6s;
}

#top_picture {
    width: 100vw;
    height: 80vh;
    overflow: hidden;
    
}

#top_picture img {
    width: 100vw;
    height: auto;
    object-fit: cover;
    transform: translateY(-15%);
}

#navbar {
    position: sticky;   /* sticks when scrolling */
    top: 0;             /* stick to top */
    z-index: 1000;      /* make sure it’s above other content */
    background: #6d746e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 10px 40px;

    display: flex;
    justify-content: center; /* center items horizontally */
    align-items: center;
    font-family: 'overskrifter_ekstra', 'sans-serif';
    font-weight: 100;
    height: 12vh;
    
}

#navbar img {
    height: 14vh; /* Adjust based on your design */
    transform: translateY(11%);
}

#cart{
    position: absolute;
    right: 5vw;
}

#cart img {
    height: 10vh;
}

#cart_items {
    padding-bottom: 5vh;
}

#cart_counter {
    position: absolute;
    top: 8vh;
    right: 0vw;
    background-color: white;
    color: black;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-family: 'handskrift', sans-serif;
    font-weight: 500;
}

#cart_counter p {
    transform: translateY(-15%);
}

#userdiv{
    padding-left: 2vw;
}

#userdiv button {
    background-color: #4f5b52;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 4rem;
    cursor: pointer;
    font-family: 'storemedtegn', sans-serif;
    font-weight: 500;
    border-radius: 10px;
    height: 4vh;
}

#userdiv button p{
    transform: translateY(-50%);
}

/* Shop container */
.shop {
    display: flex;
    justify-content: space-evenly; /* even spacing */
    align-items: center;
    flex-wrap: wrap; /* wrap on smaller screens */
    cursor: pointer;
    background-color: #f3ede1;
    min-height: 100vh;
}

#authForm {
    padding-top: 2vh;
    display: grid;
    grid-template-columns: 1fr 1fr ;
    grid-template-rows: 1fr 1fr;
    gap: 1vw;
    margin-right: 5vw;
    min-height: 18vh;
}
#address{
    grid-column: span 2;
}

#status {
    font-family: 'plussOgMinus', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #f3ede1;
    padding-top: 15vh;
}

#logoutBtn p{
    transform: translateY(-50%);
}
#logoutBtn {
    margin-top: 2vh;
}


.shoptext {
    font-family: 'overskrifter_ekstra','sans-serif';
    font-weight: 100;
    font-size: 5rem;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background-color: #f3ede1;
    text-align: left;
    padding-left: 5vw;
    padding-top: 10vh;
    color: #363f39;
}

.shoptext_2 {
    font-family: 'handskrift','sans-serif';
    font-size: 3rem;
    text-align: left;
    font-weight: 500;
    padding-left: 5vw;
    color: #363f39;
    margin-top: -2vh;
    margin-bottom: 3vh;
    line-height: 4vh;
}

.shop h3 {
    font-family: 'storemedtegn', sans-serif;
    font-weight: 500;
    font-size: 8rem;
    width: 100%;
    text-align: center;
    padding: 10px 0 30px 0;
    text-align: left;
    transform: translateY(-40%);
}

.price{
    font-size: 6rem;
    font-family: 'storemedtegn', sans-serif;
    font-weight: 500;
        color: #47524b;
}

/* Product card */
.product {
    width: 20vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    text-align: center;
    min-height: 90vh;
    gap: 2vh;
}

.product img {
    width: auto;
    height: 60vh;
    
}

.product-details {   
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 40vh;
    justify-content: center;
    transform: translateY(-20%);
}

.product_title{
    height: 5vh;
    line-height: 4vh;
}

.product-details p {
    font-family: 'handskrift', sans-serif;
    font-size: 3rem;
    margin: 0;
    
    line-height: 50%;
    color: #363f39;
    transform: translateY(50%);
    padding-bottom: 50px;
}

.product-details h4 {
    margin: 0;
}

#dropdown {
    position: absolute;
    right: 0;
    top: 12vh;
    height: 100vh;
    width: 100vw;
    background-color: rgba(10, 10, 10, 0.7);
    color: whitesmoke;

    font-size: 3rem;
    padding-left: 5vw;
    overflow-y: scroll;
    display: none;
      /* Hidden by default */
}

#dropdown_return {
    position: absolute;
    width: 70vw;
    height: 100vh;
    left: 0;
    top: 0;
}

#dropdown_content {
    position: absolute;
    width: 30vw;
    right: 0;
    top: 0;
    height: 100vh;
    padding: 20px;
    background-color: rgba(10,10,10,0.9);
}

#dropdown_content h3 {
    font-weight: 500;
    width: 100%;
    text-align: center;
}

#checkout_button {
    background-color: #4f5b52;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 5rem;
    cursor: pointer;
    font-family: 'storemedtegn', sans-serif;
    font-weight: 500;
    margin-top: 20px;
    border-radius: 10px;
    width: 15vw;
    height: 5vh;
    margin-top: 5vh;
    transform: translateX(50%);
}

#checkout_button p {
    transform: translateY(-50%);
    
}

.cart-item {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    font-family: 'storemedtegn', sans-serif;
    font-weight: 500;
    font-size: 6rem;
    margin-left: 1vw;
    display: grid;
    grid-template-columns: 7fr  1fr 1fr 1fr 1fr 1fr 1fr;
}

.item-name {
    grid-column: 1/8;
}

.amount_button {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    text-align: center;
    cursor: pointer;
    font-size: 2rem;
    user-select: none; /* Prevent text selection */  
    font-family: 'plussOgMinus', sans-serif ;
    margin-top: 3vh;
}

.amount_button p {
    transform: translateY(-5%);
}


.item-details {
    font-size: 5rem;
    padding-left: 5vw;
    line-height: 0.3;
    padding-right: 3vw;
}




#about_us {
    width: 100vw;
    height: auto;
    overflow: hidden;
    background-color: #f3ede1;
    display: flex;
    padding-bottom: 0;
}

#about_image {
    width: 45vw;
    height: auto;
    object-fit: cover;
    transform: translateY(-10%);
}

#about_image img {
    width: 45vw;
    height: auto;
    object-fit: cover;
}

#about_text {
    height: 100%;
    width: 55vw;
    padding-top: 0vh;
    padding: 5vw;
    font-family: 'handskrift', sans-serif;
    font-size: 3rem;
    line-height: 0.7;
    color: #363f39;
    transform: translateY(-10%);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

#about_text h2{
    font-family:  'overskrifter_ekstra', 'sans-serif';
    font-weight: 100;
    font-size: 10rem;
    width: 45vw;
    text-align: center;
    padding-bottom: 3vh;
    padding-top: 9vh;
    color: #363f39;
}

#process {
    width: 100vw;
    height: auto;
    background-color: #f3ede1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5vw;
}
#process h3 {
    font-family: 'overskrifter_ekstra', 'sans-serif';
    font-weight: 100;
    font-size: 10rem;
    width: 100%;
    text-align: center;
    padding-bottom: 3vh;
    color: #363f39;
}
#process p {
    font-family: 'handskrift', sans-serif;
    font-size: 4rem;
    line-height: 0.7;
    color: #363f39;
    width: 80vw;
    text-align: center;
}
#gallery2 {
    width: 100vw;
    height: auto;
    background-color: #f3ede1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    align-items: center;
    padding: 5vw;
}
#gallery2 img {
    width: 30vw;
    height: auto;
    object-fit: cover;
    padding: 2vw;
}

#big_logo {
    width: 100vw;
    height: auto;
    background-color: #f3ede1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5vw;
}

#big_logo img {
    width: 50vw;
    height: auto;
    object-fit: cover;
}

#bottom{
    border-top: 1px solid #6d746e;
    min-height: 50vh;
    width: 100vw;
    background-color: #f3ede1;
    font-family: 'plussOgMinus', sans-serif ;
    font-size: 1rem;
    padding-left: 5vw;

    display: flex;
    flex-direction: row;
}

#bottom_r {
    padding-left: 10vw;
}

#bottom_font {
    font-family: 'handskrift', sans-serif;
    font-size: 4rem;
    padding-bottom: 5vh;
}

#overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
    align-items: center;
    justify-items: center;
}

#informasjon_tekst {
    background-color: #f3ede1;
    height: 80vh;
    width: 60vw;
    margin-top: 15vh;
    padding-top: 5vh;
    padding-left: 5vw;
    padding-bottom: 10vh;
    overflow-y: scroll;
}

#info_overskrift {
    font-family:  'sans-serif';
    font-weight: 100;
    font-size: 4rem;
    padding-bottom: 3vh;
    color: #363f39;
}

#info_avsnitt {
    font-family:  'sans-serif';
    font-weight: 100;
    font-size: 2rem;
    padding-bottom: 3vh;
    color: #363f39;
}

#close_overlay {
    position: absolute;
    top: 15vh;
    right: 22vw;
    font-size: 5rem;
    font-family: 'sans-serif';
    font-weight: 100;
    color: #363f39;
    cursor: pointer;
}

.link_style {
    cursor: pointer;
    text-decoration: underline;
    color: blue;
}

#adress_info {
    font-family: 'handskrift', sans-serif;
    font-weight: 500;
    font-size: 2.4rem;
    padding-top: 2vh;
    padding-left: 2vw;
}

#info_vedlikehold{
    display: none;
}

#info_levering{
    display: none;
}

#info_storrelsesguide{
    display: none;
    display: flex;
    flex-direction: column;
}


#storrelsesguide_bunn {
    width: 50vw;
    height: auto;
    margin-top: 5vh;
    object-fit: cover;
}





/* for mobile */
@media (max-width: 1000px){
    .shop {
        overflow-x: scroll;
        padding: 20px;
        display: grid;
        grid-template-columns: repeat(5, 60vw);
        grid-template-rows: repeat(2, auto);
        width: 100vw;
        padding: 5vw;
        margin-bottom: -20vh;
    }

    .shoptext {
        grid-column: 1 span 5;
        font-size: 3rem;
    }

    .product {
        width: 50vw;
    }

    .product img {
        height: auto;
    }

    .product-details p {
        font-size: 2rem;
    }

    .product-details{
        transform: translateY(-50%);
    }

    #top_picture {
        height: auto;
        display: flex;
        justify-content: center;
        margin-bottom: -8vh;
    }
    #top_picture img {
        height: 50vh;
        width: auto;
    }

    #dropdown_content {
        width: 100vw;
    }

    #checkout_button {
        width: 90vw;
    }
    #dropdown_return {
        display: none;
    }


    #process p{
        font-size: 2rem;
    }

    .cart-item {
        grid-template-columns: 8fr  1fr 1fr 1fr 1fr 1fr 1fr;
    }

    .item-name {
        grid-column: 1/8;
    }

    #checkout_button  {
        transform: translateX(0%);
    }

    #about_image {
        width: 100vw;
    }

    #about_image img {
        width: 100vw;
    }

    #about_text {
        width: 100vw;
        padding-top: 13vh;
        flex-direction: column;
    }
    
    #about_us{
        flex-direction: column;
    }

    #about_text p{
        font-size: 2rem;
    }

    #about_text h2{
        width: 100vw;
        transform: translateX(-4%);
    }
    #gallery2{
        overflow-x: scroll;
        
    }
    #gallery2 img{
        height: 80vh;
        width: auto;
        margin: 0;
        padding: 0;
        transform: translateX(90%);
    }
    #bottom_font{
        font-size: 2rem;
    }

    #bottom{
        flex-direction: column;
        padding-bottom: 5vh;
    }

    #bottom_r {
        padding-left: 3vw;
        padding-top: 5vh;
    }
    #bottom_l {
        padding-top: 5vh;
        padding-left: 3vw;
    }

    #informasjon_tekst {
        margin-top: 10vh;
        width: 100vw;
        height: 90vh;
    }

    #close_overlay {
        top: 15vh;
        right: 5vw;  
    }

    #storrelsesguide_bunn {
        width: 100vw;
        margin-left: -5vw;
        
    }

   .shoptext_2 {
        font-size: 2rem;
    }
}

@media (max-height: 700px){
   .product_title{
        height: 3vh;
        line-height: 6vh;
        margin-top: 7vh;
    }
}