html {
    font-family: "Crimson Text", serif;
    font-weight: 400;
    font-style: normal;
}
body {
    margin: 0;
    padding: 0;
    background-color: #f5f5dc;
}

h3 {
    font-family: "Crushed", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h2 {
    font-family: "Crushed", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25pt;
    color: #f5f5dc;
    margin-bottom: 0;
}

.history-content h2 {
    color: black;
    text-decoration: underline;
    text-decoration-color: rgb(222, 31, 14);
}
.history-content p {
    margin-bottom: 1.5em; /* Better paragraph spacing */
}


.ingredients-content h2 {
    color: black;
    text-decoration: underline;
    text-decoration-color: rgb(222, 31, 14);
}

.noodles {
    float: right;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    max-height: 400px;
    width: auto;
    object-fit: cover;
    shape-outside: circle();
    transform: rotate(20deg);
    transition: transform 0.3s ease;
}

.ingredients-sml{
    float: right;
    margin: 0 0 0 20px;
    border-radius: 50%;
    overflow: hidden;
    width: 150px;
    height: 150px;
    object-fit: cover;
    shape-outside: circle();
    transition: transform 0.5s ease;
}

.ingredients-sml2{
    float: right;
    margin: 20px 0 0 20px;
    border-radius: 50%;
    overflow: hidden;
    width: 150px;
    height: 150px;
    object-fit: cover;
    shape-outside: circle();
    transition: transform 0.5s ease;
}

.ingredients-lg{
    float: right;
    margin: 0 0 0 20px;
    border-radius: 50%;
    overflow: hidden;
    width: 250px;
    height: 250px;
    object-fit: cover;
    shape-outside: circle();
    transition: transform 0.3s ease;
}


.ingredients-content img:hover {
    transform: rotate(-10deg);
}

.illustration {
    width: 100%;
    height: auto;
    max-height: 300px;

    object-fit: cover;
    min-height: 100%; /* Ensure it covers full height */
    object-position: center center;
}


.illustration:hover {
    pointer-events: none;
    transform: none !important;
}

.ramen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 split */
    gap: 5px; /* Space between columns */
    align-items: start; /* Align items at the top */
  }

  /*display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative; */
  
  @media (max-width: 867px) {
    .ramen-grid {
        display: block;
        position: relative;
        overflow: visible; /* Allow image to bleed out */
        padding: 0 ; /* Remove any padding that might constrain */
        margin: 20px 0;
        height:auto;
    }
    
    .illustration {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: 500px;
        object-fit: cover;
        object-position: center;
        opacity: 0.2;
        z-index: -1;
        max-height: max-content;
        border-radius: 0;
        margin: 0;
        min-height: max-content;
    }
    
    .list {
        position: relative;
        z-index: 1;

        padding: 30px;

        border-radius: 8px;
    }
}
    



    
 @media (max-width: 768px) {
    
    .list {
        position: relative; /* This ensures the text stays above the image */
        z-index: 1;
    }
    ul {
      padding: 20px;

    }

    .large {
        height: 150px;
        width: 150px;
    }

    .ingredients-lg {
        height: 150px;
        width: 150px;
    }
}

.sources-content h2 {
    color: black;
    text-decoration: underline;
    text-decoration-color: rgb(222, 31, 14);
}

.sources-content a{
    text-decoration: none;
}

.history-content img{
    float: right;
    margin: 0 0 20px 20px;
    border-radius: 50%;
    overflow: hidden;
    width: 500px;
    height: 500px;
    object-fit: cover;
    shape-outside: circle();
    transition: transform 0.3s ease;
}

.history-content img:hover {
        transform: rotate(2deg);
    }


.regional-contet img {
    float: right;
    margin: 0 0 20px 20px;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
}

hr {
    color:rgb(222, 31, 14);
    border-style: solid;
}

/* Small image: Left margin for text, slight overlap */
ul.regional-content {
    list-style-type: none;
    padding-left: 0;
  }

  /* List item styling */
  ul.regional-content li {
    position: relative;
    margin-bottom: 30px;
    clear: both; /* Prevent float collisions */
  }

  /* Small image styling */
  .small {
    float: right;
    margin: 0 0 0 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    shape-outside: circle();
    transition: transform 0.3s ease;
}
.small:hover {
    transform: rotate(-3deg);
  }

  /* Large image styling */
  .large {
    float: right;
    margin: 0 0 0 20px;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    object-fit: cover;
    shape-outside: circle();
    transition: transform 0.3s ease;
}
.large:hover {
    transform: rotate(5deg);
}
  


  /* Clearfix for floated images */
  .clearfix::after {
    content: "";
    display: table;
    clear: both;
  }



header {
    background-color: rgb(222, 31, 14);

    font-family: "Crushed", sans-serif;
    font-weight: 400;
    font-style: normal;
    display: flex;
    justify-content: left;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    color: white;
    height: 100px;
}

header h5 {
    font-size: 20pt;
    padding: 0;
    margin-top: 0;
}

header a {
    text-align: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 25px;
    padding-bottom: 5px;
}

header h1{
    text-align: center;

    font-size: 60pt;
    line-height: 1;
    font-family: "Crushed", sans-serif;
    font-weight: 400;
    font-style: normal;
}

header h2 {
    text-align: center;
    margin: 0;
    font-size: 30px;
    line-height: 1;
}

  
  .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  
  .logo img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
    margin-left: -20px;
  }
  

  .logo-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    flex-wrap: wrap;
}

nav a {
    color: #f5f5dc;
  }

nav {
    display: flex;
    gap: 30px;
}


section div.column {
    max-width: 960px;
    margin: auto;
    padding: 0 50px;
}

section {
    padding: 48px 0px 50px 0px;
}

section#intro {
    background-color: rgb(222, 31, 14);
}

section#intro img {
    width: 50%;
    float: right;
    margin: 25px 0 20px 43px;
    min-width: 200px;
} 

section#intro p{
    margin-bottom: 10px;
    line-height: 1.56rem;
    color: rgb(247, 240, 226);
}

section#intro h3{
    color: rgb(247, 240, 226);
}

h3 {
    margin: 0 0 38px 0;
    text-align: center;
    font-size: 50px;
    line-height: 1;
}





p {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 15pt;
    font-weight: 300;
    letter-spacing:1px;
}

h5 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 16pt;
    font-weight: 400;
    line-height: 1.5;
}

li {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 12pt;
    font-weight: 200;
    letter-spacing: .5px;
}

.sources-content a {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 14pt;  
}


.hamburger {
    display: none;
    font-size: 2em;
    cursor: pointer;
}

/* Hide Checkbox */
#menu-toggle {
    display: none;
}

/* RESPONSIVE MENU (≤600px) (MOBILE) */
@media (max-width: 600px) {
    .hamburger {
        display: block; /* Show hamburger icon */
        color: rgb(0, 0, 0);
    }

    .nav-links {
        display: none; /* Hide menu by default */
        flex-direction: column;

        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 0;
        transition: max-height 0.3s ease-out; /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
    }

    .nav-links li {
        padding: 15px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* When checkbox is checked, show menu */
    #menu-toggle:checked + .nav-links {
        display: flex;
        transition: max-height 0.3s ease-in; /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
    }
    
    nav {
        padding: 10px 20px;
    }
}



/*RESPONSIVE HERO*/
@media (max-width: 710px) {
    .hero {
        flex-direction: row; /* Keep items side-by-side */
        align-items: center; /* Vertically center align */

        padding: 20px;
        flex-wrap: nowrap;
    }

    .hero-text {
        font-family: "Crushed", Helvetica, sans-serif;
        text-align: left;
        padding-left: 0px;
        margin-bottom: 0; 
        flex: 1; /* Take up available space */
        min-width: 200px; /* Prevent text from getting too narrow */
        padding-right: 20px; /* Space for image overlap */
        margin-bottom: 0;
        z-index: 2;
    }

    .hero-text h1 {
        font-family: "Crushed", Helvetica, sans-serif;
        font-size: clamp(3.5rem, 18vw, 5rem);
        margin: 10px 0 0 0;
        line-height: 0.9;
    }

    .hero-text p {
        font-family: "Crushed", Helvetica, sans-serif;
        font-size: clamp(0.5rem, 3vw, 1rem);
        margin: 10px 0 0 0;
    }

    .hero-image {


        margin-left: 0;
        flex: 1;
        position: relative;
        max-width: 50%;
        margin-left: -100px; /* Pulls image into text area */
        margin-right: -30px;

        height: auto;
        
    }

    .hero-image img {
        position: relative;
    width: 100%;
    max-width: 400px;
    z-index: 2;
    transition: all 0.3s ease;
        display: block;
        z-index: 3;
    }
    section#intro {
        padding: 20px 0;
    }
    
    p {
        font-size: 12pt;
    }
    section#intro h3 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 0;
    }

    .hero-image .circle {
        position: absolute;
        width: 80%;
        height: 80%;
        background-color: rgb(222, 31, 14);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }

    

}

@media (min-width: 710px) {
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 50px;
    border-top: 3px solid red;
    border-bottom: 3px solid red;
    position: relative;

  }
  
  .hero-text {
    max-width: 40%;
    align-content: center;
  }
  
  .hero-text h1 {
    font-size: 8em;
    font-family: "Crushed", Helvetica, sans-serif;
    font-weight: bold;
    margin: 0;
    padding: 0;
  }
  
  .hero-text p {
    font-size: 1.2em;
    font-family: "Crushed", Helvetica, sans-serif;
    letter-spacing: 2px;
    margin-top: 10px;
  }
  
  .hero-image { 
    position: relative;
    width: 50%;
  }
  
  .hero-image .circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgb(222, 31, 14);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }
  
  .hero-image img {
    position: relative;
    width: 100%;
    max-width: 400px;
    z-index: 2;
  }
}

  /*Navigation stuff*/
  #menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size:  3em;
    cursor: pointer;
}

@media (max-width: 770px) {
    .hamburger {
        display: block;
        color: #f5f5dc;
        position: absolute;
        top: 15px;
        right: 20px;
        
    }
    header {
        height: 90px;
    }

    .logo img{
        width: 80px;
        padding-top: 8px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        right: 0;
        width: 100%;
        background-color: rgb(222, 31, 14); /* match header background */
        text-align: center;
    }

    #menu-toggle:checked + .hamburger + .nav-links {
        display: flex;
    }

    nav a {
        padding: 10px 0;
        font-size: 20px;
    }
}

nav {
    position: relative; /* or fixed if you want it sticky */
    z-index: 10;
  }
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    position: relative;
    border-top: 3px solid red;
    border-bottom: 3px solid red;
    overflow: visible;

    z-index: 1;
}

footer {
    background-color: #f5f5dc;
    height: 50px;
}




/* HISTORY */

  
  /* Decorative circle */
  .history-page::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-70%, 150%);
    width: 90vw;
    height: 90vw;
    background-color: #ffffc9;
    border-radius: 50%;
    z-index: -1;
}

.ingredients-page::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-70%, 100%);
    width: 90vw;
    height: 90vw;
    background-color: #ffffc9;
    border-radius: 50%;
    z-index: -1;
}
  
  /*.history-page, .ingredients-page, .regional-page, .sources-page  h1 */

  .history-content, .ingredients-content, .regional-content, .sources-content {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #222;
  }
  
  @media (max-width: 768px) {
    .history-content {
      column-count: 1;
      padding: 1rem;
    }
  }
  .history-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #000;
    display: block;
    margin: 2rem auto;
  }
  
  


#btn {
    display: inline-block;
    position: relative;
    text-decoration: none; /* Remove default underline */
  }
  
a#btn::after {
    content: '';
    position: absolute;
    width: 0; /* Start with no width */
    height: 2px; /* Underline thickness */
    bottom: 0;
    left: 0; /* Start from the left */
    background-color: currentColor; /* Uses text color (or replace with hex, e.g., #000) */
    transition: width 0.5s ease; /* Animation speed */
  }
  
a#btn:hover::after {
    width: 100%; /* Full width on hover */
  }

  .logo {
    transition: transform 0.3s ease; /* Smooth scaling animation */
    /* Add other logo styles here (e.g., width, height) */
  }
  
  .logo:hover {
    transform: scale(1.12) rotate(-4deg); /* Scales up by 5% */
    /* For a stronger effect, use 1.1 (10%) */
  }

  section:last-child {
    padding-bottom: 0 !important; /* Overrides any existing padding */
  }


@media (max-width: 768px) {
    .noodles {
      max-width: 200px;
      transform: rotate(20deg);
      margin: 0 0 0 5px ;
    }

}

  footer {
    margin-top: -20px; /* Pulls footer up */
    background-color: #f5f5dc;
  }

  footer p {
    padding-top: 20px;
    height: 50px;
    background-color: #f5f5dc;
    max-width: 1000px;
    margin: 0 auto;
    padding-left:50px
  }

  .footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    margin-bottom: 20px;
  }
.sources-content a{
    text-decoration: none;
    line-height: 1em;
    color: black;
    font-weight: 400;
    font-size: 16pt;
}