html{
    font-size: 18px;
    font-family:'hoss-round', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    margin-bottom: 25px;
    letter-spacing: 0.15px;
    scroll-behavior: smooth;
}

body{
    background-color: white;
    margin: 0;
    display: flex;
    justify-content: center; 
    flex-direction: column; 
}

header{
    height: 400px;
    padding: 166px 0 188px 0;
    background-color: #ffeaf1;
    background-size: cover;
    background-position:bottom;
    position: relative;
    z-index: 1;
    scroll-margin-top: 120px;
}

.headerimage{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0px;
    z-index: 0;
}

.navbuttons {
    position: absolute;
    top: 180px;
    right: 30px;
    display: flex;
    flex-direction: column; 
    z-index: 2; 
    background-color: transparent;
  }
  
.navbuttons li {
    margin-top: 20px;
    margin-bottom: 50px;
    margin-right: 50px;
    padding: 10px 20px;
    display: block;
}

li a{
    color: #b28c72;
    cursor: pointer;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    text-decoration: none;
    display: inline-block;
    height: 40px;
    box-sizing: border-box;
    border-radius: 30px;
    margin: auto;
    margin-top: 2px;
    padding: 10px 20px;    
    font-size: 20px;
    transition: all 0.5s;
    width: 170px;
}

.navbuttons a:hover {
    border-radius: 20px;
    transform: scale(1.2);
    background-color: #b28c72;
    color: white;

}

@keyframes shake {
    from { transform: scale(1.2) rotate(-8deg); }
    33% { transform: scale(1.2) rotate(5deg); }
    66% { transform: scale(1.2) rotate(-5deg); }
    to { transform: scale(1.2) rotate(8deg); }
  }

.navbuttons a:active {
    background-color: #b28c72;
    color: white;
    border-radius: 30px;
    transform-origin: center bottom;
    animation-name: shake;
    animation-duration:0.3s;
    animation-iteration-count:unset;
    animation-direction: alternate;
}

h1{
    font-size: 60px;
    margin-top: -800px;
    margin-bottom: -12px;
    position: sticky;
    top: 0;
    background-color: white;
    text-align: center;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    color: #b28c72;
}

.toplink {
    text-decoration: none;
    color: #b28c72;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.7s ease, color 0.2s ease;
}

.toplink:hover {
    color: #b28c72;
    transform: scale(1.1);
}

.toplink:active{
    color: #ffeaf1;
    transform: scale(1.1);
}

.container{
    padding-top: 30px;
    padding-left: 100px;
    padding-right: 100px;
}

#summary {
    padding-left: 20%;
    padding-right: 20%;
    text-align: center;
    margin-top: 725px; 
}

#both{
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: #ffeaf1;
    margin-top: 50px;
}

.left{
    padding-right: 50px;
    padding-left: 100px;
    margin-left: -100px;
    text-align: left;
    border-top-right-radius: 5rem;
    border-bottom-right-radius: 5rem;
}

.right{
    padding-left: 50px;
    padding-right: 100px;
    margin-right: -100px;
    text-align: right;
    border-top-left-radius: 5rem;
    border-bottom-left-radius: 5rem;
}

h2{
    font-size: 30px;
    margin-top: 55px;
    color: #b28c72;
}

h3{
    font-size: 25px;
    position:absolute;
    bottom: 20px;
    left: 40px;
    color: white;
}

h4{
    font-size: 18px;
    margin-top: 40px;
    color: #b28c72;
}

h5{
    font-size: 15px;
    font-style: italic;
    color: #b28c72;
}

p{
    line-height: 30px;
    color: #b28c72;
}

.nutritionfacts p {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 8px;
    margin-right: 40%;
}
  
.nutritionfacts p::after {
    content: '';
    border-bottom: 2px dotted #b28c72;
    flex: 1;
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
}
  
.nutritionfacts p span {
    background-color: #ffeaf1; 
    position: relative;
    z-index: 1;
    padding: 0 4px; 
}

.dessert img{
    width: 250px;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 3rem;
}

ul.dessert {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 50px;
    gap: 2rem;
}

.dessert li {
    list-style: none;
    margin-bottom: 1rem;
}

.image-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 3rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3rem;
    display: block;
}

.image-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.image-wrapper:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4); 
    cursor: pointer;
}

.image-wrapper:hover .image-label {
    opacity: 0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
}

.image-wrapper:active .image-label {
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
  }

.dessert li{
    position: relative;
    display: block;
    flex: 0 1 300px;
    width: auto;
    margin-bottom: 1rem;
}

footer{
    color: lightgray;
    text-align: center;
    margin-top: 100px;
    margin-bottom: 50px;
}

@media (max-width: 990px){
    .dessert li {
        flex: 0 1 220px;
      }
      
      .image-wrapper,
      .dessert img {
        width: 220px;
        height: 220px;
      }
    .image-label {
    font-size: 22px;
    }

}

@media (max-width: 840px) {
    html {
      font-size: 16px;
    }
  
    h1 {
      font-size: 48px;
    }
  
    h2 {
      font-size: 26px;
    }
  
    h3 {
      font-size: 22px;
    }
  
    .navbuttons {
      top: 150px;
      right: 20px;
    }
  
    li a {
      font-size: 18px;
      width: 150px;
      padding: 10px 16px;
    }
  
    .nutritionfacts p {
      margin-right: 20%;
    }
    .image-label {
        font-size: 20px;
      }
  }
  
  @media (max-width: 640px) {
    html {
      font-size: 14px;
    }
  
    h1 {
      font-size: 36px;
    }
  
    h2 {
      font-size: 22px;
    }
  
    h3 {
      font-size: 18px;
    }

    
    .left{
        padding-right: 50px;
        padding-left: 120px;
        margin-left: -100px;
        text-align: left;
        border-top-right-radius: 5rem;
        border-bottom-right-radius: 5rem;
    }
    
    .right{
        padding-left: 50px;
        padding-right: 120px;
        margin-right: -100px;
        text-align: right;
        border-top-left-radius: 5rem;
        border-bottom-left-radius: 5rem;
    }

    .navbuttons {
      top: 130px;
      right: 15px;
      
    }
  
    li a {
      font-size: 16px;
      width: 130px;
      padding: 10px 12px;
    }

  
    ul.dessert {
      padding: 0 20px;
    }
  
    .dessert img {
      width: 180px;
      height: 180px;
    }
  
    .image-wrapper {
      width: 180px;
      height: 180px;
    }
  
    .image-label {
      font-size: 18px;
    }
    #summary {
        padding-left: 10%;
        padding-right: 10%;
        text-align: center;
        margin-top: 725px; 
    }
    .nutritionfacts p {
        margin-right: 10%;
      }
  }

  @media(max-width: 825px) {
    .dessert li {
        flex: 0 1 180px;
      }
      
      .image-wrapper,
      .dessert img {
        width: 180px;
        height: 180px;
      }
  }

  @media(max-width: 750px) {
    .dessert li {
        flex: 0 1 150px;
      }
      
      .image-wrapper,
      .dessert img {
        width: 150px;
        height: 150px;
      }
    .image-label {
    position: absolute;
    top: 40%;
    left: 40%;
    transform: translate(-32%, -35%);
    }
  }

  @media (max-width: 500px) {
    html {
      font-size: 14px;
    }
  
    h1 {
      font-size: 36px;
    }
  
    h2 {
      font-size: 22px;
    }
  
    h3 {
      font-size: 18px;
    }

    p{
        line-height: 1.5rem;
    }

    .left{
        padding-right: 50px;
        padding-left: 80px;
        margin-left: -100px;
        text-align: left;
        border-top-right-radius: 5rem;
        border-bottom-right-radius: 5rem;
    }
    
    .right{
        padding-left: 50px;
        padding-right: 80px;
        margin-right: -100px;
        text-align: right;
        border-top-left-radius: 5rem;
        border-bottom-left-radius: 5rem;
    }

    .navbuttons {
      top: 130px;
      right: 15px;
      
    }
  
    li a {
      font-size: 16px;
      width: 130px;
      padding: 10px 12px;
    }
  
    .nutritionfacts p {
        margin-right: 5%;
      }
  
    ul.dessert {
      padding: 0 20px;
    }
  
    .dessert img {
      width: 180px;
      height: 180px;
    }
  
    .image-wrapper {
      width: 180px;
      height: 180px;
    }
  
    .image-label {
        position: absolute;
        top: 40%;
        left: 40%;
        transform: translate(-25%, -30%);
    }

    #summary {
        padding-left: 0%;
        padding-right: 0%;
        text-align: center;
        margin-top: 725px; 
    }
    
  }

  @media (max-width: 350px) {
    html {
      font-size: 13px;
    }
  
    h1 {
      font-size: 30px;
    }
  
    h2 {
      font-size: 20px;
    }
  
    h3 {
      font-size: 15px;
    }

    p{
        line-height: 1.5rem;
    }

    .left{
        padding-right: 50px;
        padding-left: 30px;
        margin-left: -100px;
        text-align: left;
        border-top-right-radius: 5rem;
        border-bottom-right-radius: 5rem;
    }
    
    .right{
        padding-left: 50px;
        padding-right: 30px;
        margin-right: -100px;
        text-align: right;
        border-top-left-radius: 5rem;
        border-bottom-left-radius: 5rem;
    }

    .navbuttons {
      top: 130px;
      right: 15px;
      
    }
  
    li a {
      font-size: 16px;
      width: 130px;
      padding: 10px 12px;
    }
  
    .nutritionfacts p {
        margin-right: 5%;
      }
  
    ul.dessert {
      padding: 0 20px;
    }
  
    .image-label {
      font-size: 14px;
    }
    .dessert li {
        flex: 0 1 180px;
      }
      
      .image-wrapper,
      .dessert img {
        width: 180px;
        height: 180px;
      }
  
    #summary {
        padding-left: 0%;
        padding-right: 0%;
        text-align: center;
        margin-top: 725px; 
    }
    
  }
  .bottomnav {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    width: 100%;
  }
  
  .bottomnav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 1rem;
    padding: 0;
    margin: 0 auto;
    list-style: none;
    max-width: 100%;
  }

  .bottomnav li {
    flex: 0 1 auto; 
    display: flex;
    justify-content: center;
  }
  @media (max-width: 500px) {
    .bottomnav ul {
      flex-direction: column;
      align-items: center;
      padding: 0;
    }
  
    .bottomnav li {
      width: auto; 
      margin: 0.5rem 0; 
    }
  
    .bottomnav li a {
      margin: 0 auto; 
    }
  }