html,
body {
    background-color: #FFF7F1;
    overflow-x: hidden;
    margin: 0;
    scroll-behavior: smooth;
}

html.no-scroll,
body.no-scroll {
    overflow-y: hidden;
}

.main-nav {
    padding: 40px 0 0 0;
    display: flex;
    justify-content: center;
    font-family: HiroMisake;
    font-size: 17px;
    font-weight: normal;
    font-style: normal;
}

.main-nav nav ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #253054;
    padding: 20px;
    border-radius: 200px;

}

.main-nav nav a {
    text-decoration: none;
    color: #CC2727;
    padding: 30px;
    margin: 0 30px;
}

.main-nav nav a.active {
    text-decoration: underline;
    color: #CC2727;
    padding: 30px;
}


.logo-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 50%;
    background-color: #253054;
}

.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.topPage {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 12vh auto 25vh;
    padding: 20px;

}

.main-header {
    align-items: flex-start;
    text-align: left;
    width: 100%;
    margin-left: 2vw;
    color: #253054;
    max-width: 33%;
    overflow-wrap: break-word;
}


.main-header h1 {
    font-family: HiroMisake;
    font-size: 44px;
    font-style: normal;
    font-weight: normal;


}

.main-header h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 23px;

}

.icon-header {
    align-items: center;
    justify-content: center;
    margin: 2% auto;
    text-align: center;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.icon-header .jap1 {
    position: absolute;
    top: -20%;
    left: 21%;
    transform: translate(-50%, -50%);
    font-size: 128px;
    font-style: normal;
    font-weight: 500;
    color: #CC2727;
}

.icon-header .jap2 {
    position: absolute;
    top: 36%;
    left: 17%;
    transform: translate(50%, -50%);
    font-size: 128px;
    font-style: normal;
    font-weight: 500;
    color: #CC2727;
}

.icon-header h2 {
    font-family: HiroMisake;
    font-size: 1.8vw;
    padding: 10% 0 0 0;
    font-weight: normal;
    font-style: normal;
    color: #CC2727;
}

.icon-header h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: normal;
    font-style: normal;
    color: #253054;
}


.icon-header h2 svg {
    width: 5vw;
}




.ramen-icon {
    width: 37vw;
    height: auto;
    max-width: 520px;
    max-height: 520px;
    position: absolute;
    right: -15vh;
    top: -8vh;


}

.ramen-icon img {
    max-width: 520px;
    max-height: 520px;
    left: -50%;
    top: 50%;
    transform: translate(40%, -50%);
    position: absolute;
}

.ramen-icon-mobile {
    display: none;
    width: 100%;
    max-width: 520px;
    height: auto;
    max-height: 520px;
    position: absolute;
    right: -5%;
    top: -18%;


}

.ramen-icon-mobile img {
    max-width: 520px;
    max-height: 520px;
    left: -50%;
    top: 50%;
    transform: translate(40%, -50%);
    position: absolute;
}


.circle-wrapper {
    position: relative;
    width: 200px;

    max-width: 80vw;

    aspect-ratio: 1/1;

    margin: 0 auto;

}

.icon-header circle {
    fill: #253054;
}

.icon-header line {
    stroke: #253054;
    stroke-width: 7;

}

/* mobile header */
/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 8vw;
    height: 8vw;
    cursor: pointer;
    z-index: 1002;
    position: absolute;
    right: 5%;
    top: 22%;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #CC2727;
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* Full-screen mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #253054;
    padding-top: 80px;
    text-align: center;
    gap: 35px;
    z-index: 1001;

    display: flex;
    flex-direction: column;

    /* Start hidden above screen */
    transform: translateY(-100%);
    transition: transform 0.50s ease-in-out;
}

.mobile-menu.show {
    transform: translateY(0);
}

.mobile-menu a {
    color: #FFF7F1;
    font-family: "HiroMisake";
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
    font-size: 2em;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-menu a.active {
    color: #CC2727;
}

.mobile-menu a:hover {
    color: #CC2727;
}

/* Dropdown inside menu */
.dropdown {
    position: relative;
}

.dropdown-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    user-select: none;
}

.dropdown-content {
    display: none;
    flex-direction: column;
    margin-top: 10px;
    gap: 10px;
}

.dropdown-content a {
    font-size: 16px;
    color: #aaa;
}

.dropdown.open .dropdown-content {
    display: flex;
    animation: fadeIn 0.3s ease-in;
}

/* Fade-in animation for submenu */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger open -> X */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(1.5vw, 1vh);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(1.5vw, -1vh);
}




span {
    color: #CC2727;
}


text {
    text-anchor: middle;
    fill: #CC2727;
    font-size: 14px;
}

/* second page of home */
.menu-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20vh;
    padding: 20px;
}

.menu-category nav ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: #253054;
    padding: 20px 70px;
    border-radius: 200px;
    gap: 120px;
    color: #CC2727;
    font-family: "HiroMisake";
    font-size: 16px;
    overflow: visible;
    position: relative;
}

.menu-category nav li {
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s ease-in-out;
}

@media (hover: hover) {
    .menu-category nav li:hover {
        transform: scale(1.2);
    }
}

.menu-category nav li.active {
    cursor: pointer;
}

/* Sliding blue bubble */
.menu-category nav ul .blue-bubble {
    position: absolute;
    width: 92px;
    height: 80px;
    left: 0px;
    background-color: #253054;
    border-radius: 50%;
    transition: left 0.3s ease;
    z-index: 1;
    top: 50%;
    transform: translate(-50%, -50%);

}

/* White circle */
.menu-category nav ul .white-bubble {
    position: absolute;
    width: 70px;
    height: 60px;
    left: 0px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: left 0.3s ease;
    z-index: 1;
    top: 50%;
    transform: translate(-50%, -50%);
}



.menu-carousel-body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: min(100vh, 550px);
    justify-content: center;
    position: relative;
    margin: -4%;


}

.menu-carousel-container {
    width: 80%;
    max-width: 800px;
    overflow: visible;
    position: relative;
    padding: 100px 0 50px 0;
}


.menu-carousel {
    display: flex;
    gap: 60px;
    cursor: grab;
    transition: transform 0.5s ease;
    /* smooth movement */
    scroll-behavior: smooth;
    /* smooth scroll when using JS */
    user-select: none;
}

.menu-carousel::-webkit-scrollbar {
    display: none;
    /* hide scrollbar */
}

.menu-item {
    flex: 0 0 auto;
    height: 265px;
    width: 230px;
    background: #253054;
    border-radius: 20px;
    text-align: center;
    color: white;
    position: relative;
    transition: transform 0.5s, opacity 0.5s;
    overflow: visible;


}


.menu-item img.t-ramen {
    position: absolute;
    top: -190px;
    left: 50%;
    height: auto;
    transform: translateX(-50%);
    z-index: 2;
    overflow: visible;
}

.menu-item#vegan-ramen img.t-ramen {
    top:-145px
}


.menu-item#beef-ramen img.t-ramen {
    left: 54%;
    top:-145px
}

.menu-item#chicken-ramen img.t-ramen {
    top:-192px
}

.menu-item#miso-ramen img.t-ramen {
    top:-226px
}

.menu-item#curry-ramen img.t-ramen {
    top:-212px
}
.menu-item#shoyu-ramen img.t-ramen {
    top:-200px
}

.menu-item img.pork-bao {
    position: absolute;
    top: -420px;
    left: 46%;
    transform: translateX(-50%);
    z-index: 2;

    overflow: visible;
}

.menu-item img.crab-bao {
    position: absolute;
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;

    overflow: visible;
}

.menu-item img.temp {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    overflow: visible;
}

.menu-item img.chashu {
    position: absolute;
    top: -102px;
    left: 54%;
    transform: translateX(-50%);
    z-index: 2;
    overflow: visible;
}

.menu-item#chashu h1 {
    padding: 17px 40px;

}

.menu-item#pork-donburi h1 {
    padding: 17px 40px;

}


.menu-item.center {
    transform: scale(1);
    z-index: 2;
    opacity: 1;
}

.menu-item.side {
    transform: scale(0.8) translateY(-20px);
    opacity: 0.6;
    z-index: 1;
}



.menu-item h1 {
    position: absolute;
    bottom: 10px;
    /* stays at card bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background-color: #CC2727;
    padding: 2px 40px;
    font-size: 30px;
    margin: 0;
    font-family: "HiroMisake";
    font-weight: normal;
    font-style: normal;
}

.menu-item svg {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    height: 45px;
    z-index: -1;
    fill: #253054
}



button.see-more-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 41px;
    font-family: "HiroMisake";
    font-size: 32px;
    color: #FFFFFF;
    background-color: #253054;
    border-radius: 20px;
    margin: 2% auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;

}

button.see-more-btn:hover {
    cursor: pointer;
    background-color: #CC2727;
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(204, 39, 39, 0.6);

}


button.carousel-btn {
    position: absolute;
    background: #25305400;
    border: none;
    color: #cc2727;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: 0.3s ease;
}

button.carousel-btn:hover {
    background: #253054;
    color: #ffffff;
}

button.prev {
    left: 450px;
}

button.next {
    right: 450px;
}

.r-blurry-circle-1 {
    fill: #CC2727;
    width: 450px;
    height: 450px;
    position: absolute;
    left: 7%;
    top: 24%;
    transform: translate(-50%, -25%);
    filter: blur(35px);
}

.r-blurry-circle-2 {
    fill: #CC2727;
    width: 450px;
    height: 450px;
    position: absolute;
    left: 93%;
    top: 82%;
    transform: translate(-50%, -50%);
    filter: blur(35px);
}

.r-blurry-circle-3 {
    display: none;
}

.r-blurry-circle-4 {
    display: none;
}

/* Build your own ramen */
.build-your-ramen-bar-mobile {
    display: none;
}

.build-your-ramen-text-mobile {
    margin-top: 3em;
    display: flex;
    position: relative;
    z-index: 3;
    flex-direction: column;

}

.scroll {
    width: 20em;
    margin: 2rem 0;
    cursor: pointer;
    text-align: center;
    position: relative;
    isolation: isolate;
}

/* Top hanging string */
.scroll::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 40px;
    background: #CC2727;
    /* red rope */
    border-radius: 2px;
}

/* Top rod */
.scroll-header {

    background: #253054;
    color: #FFF7F1;
    font-family: "HiroMisake";
    font-weight: normal;
    font-style: normal;
    font-size: 1.4rem;
    padding: 1rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border: 4px solid #CC2727;
    border-bottom: none;
    position: relative;
    z-index: 2;
}


/* Scroll body (parchment look) */
.scroll-content {
    max-height: 0;
    overflow: hidden;
    background: #FFF7F1;
    /* parchment */
    color: #253054;
    transition: max-height 0.6s ease, padding 0.3s ease;
    border-left: 4px solid #CC2727;
    border-right: 4px solid #CC2727;
    font-size: 1.3rem;
    text-align: left;
    font-family: "Montserrat", sans-serif;
    font-weight: normal;
    font-style: normal;
    z-index: 2;
}

.rod-circle {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #253054;
    border: 3px solid #CC2727;
    z-index: 1;
    /* below content */
    pointer-events: none;
}

/* place them where you had the pseudo-elements */
.top-left {
    top: 20px;
    left: -15px;
    transform: translateY(-50%);
}

.top-right {
    top: 20px;
    right: -15px;
    transform: translateY(-50%);
}

.bottom-left {
    bottom: 20px;
    left: -15px;
    transform: translateY(50%);
}

.bottom-right {
    bottom: 20px;
    right: -15px;
    transform: translateY(50%);
}

/* make sure the scroll content and header/footer sit above them */
.scroll-content,
.scroll-header,
.scroll-footer {
    position: relative;
    z-index: 2;
}

.scroll.open .scroll-content {
    max-height: 400px;
    padding: 1rem;
}

/* Bottom rod */
.scroll-footer {
    background: #253054;
    height: 30px;
    border: 4px solid #CC2727;
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    position: relative;
    z-index: 2;

}


/* Ingredient list */
.ingredient-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredient-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #CC2727;
    display: flex;
    justify-content: space-between;
}

.ingredient-list li:last-child {
    border-bottom: none;
}


.build-your-ramen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -10%;
    position: relative;
}

.build-your-ramen-bar {
    position: relative;
    z-index: 4;
}

.build-your-ramen-bar nav ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: #253054;
    padding: 10px 50px;
    border-radius: 200px;
    gap: 60px;
    color: #CC2727;
    font-family: "HiroMisake";
    font-size: 16px;
    overflow: visible;
    position: relative;
}

.build-your-ramen-bar nav ul li {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 20px;
}

.build-your-ramen-bar nav ul li span {
    display: flex;
    flex-direction: column;
    color: #FFF7F1;
}

.build-your-ramen-bar nav ul li span#jap {
    font-weight: bold;
    color: #CC2727;
}


.build-your-ramen-bar nav ul li.ramen {
    position: absolute;
    background-color: #FFF7F1;
    border-radius: 50%;
    padding: 20px;
}

.build-your-ramen-bar .blue-bubble {
    position: absolute;
    width: 125px;
    height: 125px;
    background-color: #253054;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.build-your-ramen-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 200px;
    font-family: "HiroMisake";
    position: relative;
    z-index: 2;
    text-align: center;

}


.build-your-ramen-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 200px;
    font-family: "HiroMisake";
    position: relative;
    z-index: 2;
    text-align: center;

}




.build-your-ramen-text,
.build-your-ramen-header h1 {
    font-weight: normal;
    font-style: normal;
    color: #CC2727;
    font-size: 48px;
}

.build-your-ramen-text h2 {
    font-weight: normal;
    font-style: normal;
    color: #CC2727;
    font-size: 32px;
    margin-bottom: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}

.build-your-ramen-text .spice h2 {
    top: 1%;
}

.build-your-ramen-text .noodle h2 {
    top: 1%;
}

.build-your-ramen-text .broth h2 {
    top: -1%;
}

.build-your-ramen-text .topping h2 {
    top: 1%;
}

.build-your-ramen-header span {
    color: #253054;
}

.build-your-ramen-text ul {
    font-family: "HiroMisake";
    font-weight: normal;
    font-style: normal;
    color: #253054;
    font-size: 18px;
    column-count: 2;
    column-gap: 5px;
}

.build-your-ramen-text .spice {
    margin-left: -50%;
    margin-top: -35%;
    width: 80%;
    background-color: #253054;
    align-self: start;
    border-radius: 100px;
    position: relative;

}


.build-your-ramen-text .white {
    background-color: #FFF7F1;
    margin: 25px;
    border-radius: 100px;
    padding: 20px;
}

.build-your-ramen-text .noodle {
    margin-left: 70%;
    margin-top: -107%;
    width: 80%;
    align-self: start;
    background-color: #253054;
    border-radius: 100px;
    position: relative;
}

.build-your-ramen-text .broth {
    margin-left: 78%;
    margin-top: 27%;
    width: 80%;
    align-self: start;
    background-color: #253054;
    border-radius: 100px;
    position: relative;
}

.build-your-ramen-text .topping {
    margin-left: -78%;
    margin-top: 25%;
    width: 100%;
    align-self: start;
    background-color: #253054;
    border-radius: 100px;
    position: relative;
}

.build-your-ramen img#ramen {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 40%;
    z-index: 1;
}

.build-your-ramen .cherry-blossom img {
    position: absolute;
    left: 84%;
    transform: translateX(-50%);
    top: 65%;
}

.build-your-ramen .cherry-blossom-flipped img {
    position: absolute;
    left: 13%;
    transform: translateX(-50%);
    top: 30%;
}

/* Hours and Location */
.hours-location-container {
    margin-top: 10%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.gen-image {
    display: inline-flex;
    place-items: center;
    position: relative;
    margin-top: 7.5%;
}

.gen-image img {
    position: absolute;
    width: min(90vw, 400px);
    height: auto;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.gen-image svg {
    display: block;
    width: min(90vw, 600px);
    height: auto;
    z-index: 1;
    fill: #253054;
}

.gen-image .dashed-circle-container {
    position: absolute;
    width: min(90vw, 600px);
    height: min(90vw, 600px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.gen-image .dashed-circle-container svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.gen-image .dashed-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    stroke: #CC2727;
    stroke-width: 0.8%;
    stroke-dasharray: 20.42 20.42;
    stroke-dashoffset: 10.21;
    vector-effect: non-scaling-stroke;
}

.gen-image text {
    fill: #CC2727;
    font-family: HiroMisake;
    font-size: 9px;
    text-anchor: start;
}

.hours-location {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hours-location h2 {
    font-style: normal;
    font-weight: normal;
    font-family: "HiroMisake";
    font-size: 42px;
    color: #253054;
}

.hours-location h2 span {
    color: #CC2727;
}

.hours-location p {
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    color: #253054;
}

.hours-location .hours {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;

}

.hours-location .hours .hours-wrapper {
    position: absolute;
    width: min(60vw, 185px);
    aspect-ratio: 1/1;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    background-color: #FFF7F1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

}


.hours-location .hours .front-circle {
    background-color: #FFF7F1;

}

.hours-location .hours .front-circle:hover {
    cursor: pointer;
}


.hours-location .hours .front-circle img {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.hours-location .hours .front-circle p {
    position: absolute;
    color: #253054;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
}

.hours-location .hours .front-circle,
.back-circle {
    position: absolute;
    inset: 0;
    /* fills wrapper */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    backface-visibility: hidden;
    transition: transform 0.8s;
}

.back-circle {
    background-color: #FFF7F1;
    color: white;
    transform: rotateY(180deg);
    text-align: center;
}

.back-circle p {
    font-weight: 700;
    font-size: 1em;
    width: 10em;
}



.hours-location .hours .back-circle:hover {
    cursor: pointer;
}

.hours-location .hours.flipped .hours-wrapper {
    transform: translate(-50%, -50%) rotateY(180deg);
}



.hours-location .hours .background {
    width: min(60vw, 600px);
    height: calc(min(60vw, 600px) /3);
    z-index: 0;
    margin: 0 auto;
    position: relative;
}

.hours-location .hours p#rect {
    position: absolute;
    background-color: #253054;
    border-radius: 200px;
    width: 100%;
    height: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 auto;
}

.hours-location .hours p#circle {
    position: absolute;
    background-color: #253054;
    border-radius: 50%;
    width: calc(min(60vw, 600px)/3);
    height: calc(min(60vw, 600px)/3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 auto;
}


.hours-location .location {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: 100px;
}

.hours-location .location .location-wrapper {
    position: absolute;
    width: min(60vw, 185px);
    aspect-ratio: 1/1;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    background-color: #FFF7F1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hours-location .location .front-circle {
    background-color: #FFF7F1;
}

.hours-location .location .front-circle:hover {
    cursor: pointer;
}

.hours-location .location .front-circle img {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.hours-location .location .front-circle p {
    position: absolute;
    color: #253054;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
}

.hours-location .location .front-circle,
.hours-location .location .back-circle {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    backface-visibility: hidden;
    transition: transform 0.8s;
}

.hours-location .location .back-circle {
    background-color: #FFF7F1;
    transform: rotateY(180deg);
    text-align: center;
}

.hours-location .location .back-circle:hover {
    cursor: pointer;
}

.hours-location .location.flipped .location-wrapper {
    transform: translate(-50%, -50%) rotateY(180deg);
}

.hours-location .location .background {
    width: min(60vw, 600px);
    height: calc(min(60vw, 600px) / 3);
    z-index: 0;
    margin: 0 auto;
    position: relative;
}

.hours-location .location p#rect {
    position: absolute;
    background-color: #253054;
    border-radius: 200px;
    width: 100%;
    height: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 auto;
}

.hours-location .location p#circle {
    position: absolute;
    background-color: #253054;
    border-radius: 50%;
    width: calc(min(60vw, 600px)/3);
    height: calc(min(60vw, 600px)/3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 auto;
}

.tap-hint {
    font-size: 0.5em;
    margin-top: 10%;
    text-align: center;
    color: #CC2727;
    opacity: 0;
    animation: hint-fade 3s ease-in-out infinite;
}

@keyframes hint-fade {

    0%,
    20% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    80%,
    100% {
        opacity: 0;
    }
}



.dashed-circle-container {
    width: min(90vw, 600px);
    aspect-ratio: 600 / 250;
    text-align: center;
    position: absolute;
    top: 45%;

}


.dashed-circle-container svg {
    width: 100%;
    height: 100%;
    display: block;

}

.dashed-circle {
    fill: none;
    stroke: #CC2727;
    stroke-width: 1%;
    stroke-dasharray: 20.42 20.42;
    stroke-dashoffset: 10.21;
    vector-effect: non-scaling-stroke;
}

/* Contact */
.contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin-top: 100px;
    padding: 0px 50px;
    text-align: center;
    background-color: #253054;
}

.contact .contact-text {
    font-family: "Montserrat", sans-serif;
    color: #FFF7F1;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact .contact-text h1 {
    font-family: "HiroMisake";
    font-weight: normal;
    font-style: normal;
    margin-top: 10%;
    color: #CC2727;
}

.contact .contact-text p {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact .contact-text a {
    text-decoration: none;
    display: flex;
    color: #FFF7F1;
    align-content: center;
    justify-content: center;
    align-items: center;
}



.contact iframe {
    border: none;
    border-radius: 10px;
    width: min(90vw, 600px);
    height: min(60vh, 450px);
    margin: 40px 0;
}

/* footer */

footer {
    background-color: #253054;
    color: #FFF7F1;
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

@font-face {
    font-family: 'HiroMisake';
    src: url(../fonts/HIROMISAKE.ttf);
    font-weight: normal;
    font-style: normal;
}


/* Responsive fix for small mobile screens */
@media (max-width: 1024px) {

    body {
        margin-top: 15vh;
    }

    /* Stack the top section vertically */
    .topPage {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 40px;
        margin-top: 30%;
        margin-bottom: 20%;
        padding: 10px;
    }

    /* Main header: full width and centered */
    .main-header {
        margin-top: 0;
        margin-left: 0;
        max-width: 90%;
        text-align: center;
    }

    .main-header h1 {
        font-size: 3.6em;
        word-wrap: break-word;
    }

    .main-header h2 {
        font-size: 1.8em;
    }

    /* Icon header: center it and reset absolute positioning */
    .icon-header {

        left: auto;
        transform: none;
        margin: 0 auto;
        position: relative;
    }



    .icon-header h2 {
        font-size: 1.55em;
        padding: 0;
    }

    .icon-header h3 {
        font-size: 1em;
    }

    .icon-header h2 svg {
        width: 7vw;
        height: 10px;
    }

    /* Ramen icon image scaling */

    .ramen-icon {
        display: none;
    }

    .ramen-icon-mobile {
        display: block;
        position: relative;
        max-height: none;
        right: auto;
        top: auto;
        margin: 3vw auto;
        max-width: 320px;
    }

    .ramen-icon-mobile img {
        display: inline;
        position: absolute;
        max-width: 320px;
        max-height: 320px;
        left: 40%;
        top: 45%;
        transform: translate(-50%, -50%);
        width: 70vw;
    }

    .ramen-icon-mobile svg {
        max-width: 420px;
        max-height: 420px;
    }

    /* Navigation adjustments */

    .main-nav svg {
        width: 25vw;
        height: auto;
    }

    .logo {
        width: 20vw;
        height: auto;
    }

    .main-nav {
        position: fixed;
        top: 0;
        /* always stick to top */
        left: 0;
        width: 100vw;
        /* full viewport width */
        height: 20vh;
        /* responsive fixed height (12% of screen height) */
        background: #FFF7F1;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        margin: 0;
        transform: none;
        /* remove desktop translate */
        padding: 0 5vw;
        /* horizontal padding scales with screen width */
        box-sizing: border-box;
        transition: top 0.4s ease-in-out;

    }

    .hamburger {
        top: 10%;
        left: 85%;
        transform: translate(-50%, -50%);
        display: flex;
        transition: top 0.4s ease-in-out;
        position: fixed;

    }

    .hamburger.hide {
        top: -20vh;
        /* slide up off screen */
    }

    .main-nav.hide {
        top: -20vh;
        /* slide up off screen */
    }

    .main-nav nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 0px 120px;
        height: 15vw;
        border-radius: 200px;
        position: relative;
    }

    .main-nav nav {
        width: 90%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .main-nav nav a {
        display: none;

    }

    .mobile-nav nav {
        display: none;

    }

    /* menu mobile */
    .menu-category {
        margin-top: 0px;
    }

    .menu-category nav ul {
        gap: 7vw;
        padding: 20px 5vw;
        font-size: 1.1em;
    }

    .menu-category nav li:active {
        transform: scale(1.2);
    }

    .menu-category nav li:not(:active) {
        transition-delay: 0.2s;
    }

    .menu-category nav li {
        transition: transform 0.3s ease;
    }

    .menu-category nav ul .blue-bubble {
        width: 97px;
        height: 85px;
    }

    .menu-category nav ul .white-bubble {
        width: 75px;
        height: 65px;
    }

    .menu-carousel-body {
        margin: -8%;
    }

    .r-blurry-circle-1 {
        width: 150px;
        height: 150px;
        left: 7%;
        top: 43%;
    }

    .r-blurry-circle-2 {
        width: 150px;
        height: 150px;
        left: 93%;
        top: 82%;
    }

    .r-blurry-circle-3 {
        display: block;
        fill: #CC2727;
        width: 150px;
        height: 150px;
        position: absolute;
        left: 23%;
        top: 110%;
        transform: translate(-50%, -50%);
        filter: blur(35px);
    }

    .r-blurry-circle-4 {
        display: block;
        fill: #CC2727;
        width: 150px;
        height: 150px;
        position: absolute;
        left: 68%;
        top: 20%;
        transform: translate(-50%, -50%);
        filter: blur(35px);
    }

    .build-your-ramen-bar {
        display: none;
    }

    .build-your-ramen-bar-mobile {
        display: block;
        width: 90vw;
        position: relative;
        z-index: 1;
        height: 4em;
        background-color: #253054;
        border-radius: 200px;
        margin-top: 2em;
    }

    .build-your-ramen-bar-mobile .blue-bubble {
        position: absolute;
        width: 125px;
        height: 125px;
        background-color: #253054;
        border-radius: 50%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .build-your-ramen-bar-mobile .blue-bubble .ramen {
        background-color: #FFF7F1;
        border-radius: 50%;
        width: 100px;
        height: 100px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .build-your-ramen-bar-mobile .blue-bubble img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

    }

    .build-your-ramen-text {
        display: none;
    }

    .build-your-ramen-text-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 7vh;
    }

    .build-your-ramen-text-mobile img {
        position: absolute;
        top: 45%;
        left: 16%;
        transform: translate(-50%, -50%);
    }

    .build-your-ramen img#ramen {
        display: none;
    }

    /* Hours and location mobile */
    .hours-location-container {
        gap: 7em;
        margin-top: 30%;
        flex-direction: column;
    }

    .hours-location {
        gap: 5em;
    }

    .hours-location h2 {
        margin-top: 2em;
        margin-bottom: 1em;
        text-align: center;
    }

    .hours-location .hours p#rect {
        width: 150%;
        height: 110%;
    }

    .hours-location .location p#rect {
        width: 150%;
        height: 110%;
    }

    .hours-location .hours p#circle {
        width: calc(min(150vw, 600px) / 3);
        height: calc(min(150vw, 600px) / 3);
    }

    .hours-location .location p#circle {
        width: calc(min(150vw, 600px) / 3);
        height: calc(min(150vw, 600px) / 3);
    }

    .dashed-circle-container {
        width: min(154vw, 600px);
        top: 71%;
        transform: translateY(-50%);
    }

    .gen-image .dashed-circle-container {
        width: min(105vw, 600px);
        height: min(105vw, 600px);
    }

    .gen-image svg {
        width: min(110vw, 600px);
    }

    .gen-image img {
        position: absolute;
        width: min(70vw, 400px);
    }

    .contact {
        flex-direction: column;
        padding: 50px 50px;
    }

    .tap-hint {
        margin-bottom: -10%;
    }

    .hours-location .location .location-wrapper {
        width: min(60vw, 43vw);
    }

    .hours-location .hours .hours-wrapper {
        width: min(60vw, 43vw);
    }


}

/* Responsive fix for tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .hours-location .hours p#rect {
        width: 150%;
        height: 80%;
    }

    .hours-location .location p#rect {
        width: 150%;
        height: 80%;
    }

    .main-nav {
        height: 25vh;
    }

    .hamburger {
        top: 12.5%;
    }

    .topPage {
        margin-top: 20%;
        margin-bottom: 15%;
    }

    .main-header h2 {
        margin-top: 5vh;
    }

    .main-nav.hide {
        top: -25vh;
    }

    .ramen-icon-mobile {
        margin: 5vh auto -5vh;
    }

    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(2.3vw, -1.3vh);
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(2vw, 1vh);
    }

    .mobile-menu a {
        font-size: 4em;
    }

    .mobile-menu {
        gap: 8vh;
        padding-top: 11vh;
    }


    .circle-wrapper {
        width: 30vh;
    }

    .icon-header .jap1,
    .icon-header .jap2 {
        font-size: 18vh;
    }

    .icon-header .jap2 {
        top: 12vh;
        left: 5vh;
    }

    .icon-header .jap1 {
        top: -5vh;
        left: 6vh;
    }

    .icon-header h2 {
        font-size: 2.2em;
    }

    .icon-header h3 {
        font-size: 1.7em;
    }

    .main-header h1 {
        font-size: 3.8em;
    }

    .main-header h2 {
        font-size: 2em;
    }

    .ramen-icon-mobile {
        width: 35vh;
        height: auto;
    }

    .ramen-icon-mobile svg {
        max-width: 35vh;
        max-height: 35vh;
    }

    .ramen-icon-mobile img {
        width: 25vh;
        height: auto;
    }

    .build-your-ramen-text,
    .build-your-ramen-header h1 {

        font-size: 3.8em;
    }

    .hours-location h2 {

        font-size: 3.8em;
    }

    .hours-location-container {
        margin-top: 0%;
    }

    .hours-location .hours .hours-wrapper {
        width: min(60vw, 30vw);
    }

    .hours-location .hours p#circle {
        width: calc(min(150vw, 35vw));
        height: calc(min(150vw, 35vw));
    }

    .hours-location .location .location-wrapper {
        width: min(60vw, 30vw);
    }

    .hours-location .location p#circle {
        width: calc(min(150vw, 35vw));
        height: calc(min(150vw, 35vw));
    }

    .hours-location .hours .front-circle img,
    .hours-location .location .front-circle img {
        width: 15vw;
        height: auto;
    }

    .hours-location p {
        font-size: 1.8rem;
    }

    .back-circle p {
        font-size: 1.4rem;
    }

    button.prev {
        display: none;
    }

    button.next {
        display: none;
    }

    .menu-category nav ul {
        gap: 10vw;
        padding: 3vh 10vw;
        font-size: 2.2vh;
    }

    .menu-category nav ul .blue-bubble {
        width: 13vh;
        height: 12vh;
    }

    .menu-category nav ul .white-bubble {
        width: 10vh;
        height: 9vh;
    }

    .build-your-ramen-bar-mobile {
        height: 5em;
    }

    .build-your-ramen-bar-mobile .blue-bubble {
        position: absolute;
        width: 15vh;
        height: 15vh;
    }

    .build-your-ramen-bar-mobile .blue-bubble .ramen {
        background-color: #FFF7F1;
        border-radius: 50%;
        width: 12vh;
        height: 12vh;
    }

    .build-your-ramen-bar-mobile .blue-bubble img {
        width: 8vh;
        height: 8vh;
    }

    .scroll-header {
        font-size: 2rem;
        padding: 2rem;
    }

    .scroll {
        width: 30em;
    }

    .scroll-footer {
        height: 2.2rem;
    }

    .scroll-content {
        font-size: 1.7rem;
    }

    .contact .contact-text h1 {
        font-size: 3.5em;
    }

    .contact .contact-text p {
        font-size: 1.5em;
    }

    @media (max-width: 380px) {
        .dashed-circle-container {
            width: min(144vw, 600px);
            top: 75%;
            transform: translateY(-50%);
        }
    }
}