@font-face {
    font-family: 'Nunito';
    src: url('../Fonts/Nunito/Nunito-VariableFont_wght.ttf') format('truetype');
    font-display: swap; /* Renders a fallback font while this one is loading and swaps out the fallback when it loads */
}

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

:root {
    /* Variables altered in JavaScript */
    --carousel-slide-transition: none;
    --carousel-slide-transform: none;
}

html {
    overflow-y: scroll;
}

/* TITLE BAR */

.title-bar {
    position: relative;
    min-width: 300px;
    font-family: 'Nunito', sans-serif;
    background-color: #5b636a;
}

.title-bar-flex {
    width: auto;
    min-height: 10rem;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.title-bar-text {
    flex: 1 1 auto;
    text-align: center;
    color: white;
}

.title-bar-text h1 {
    font-size: clamp(2.5rem, 4vw + 2rem, 9rem);
    line-height: 70%;
}

.title-bar-text h3 {
    font-size: clamp(0.6rem, 1vw + 0.8rem, 3rem);
}

#left-fish {
    flex: 0.05 0.5 auto;
    width: 5rem;
    height: auto;
    margin: 0.5rem 0 0.5rem 3%;  /*Top Right Bottom Left */
    rotate: 180deg;
}

#right-fish {
    flex: 0.05 0.5 auto;
    width: 5rem;
    height: auto;
    margin: 0.5rem 3% 0.5rem 0;  /*Top Right Bottom Left */
}

/* MAIN CONTENT */

.main-content {
    position: relative;
    min-height: 100vh;
    min-width: 300px;
    background-color: aliceblue;
    font-family: 'Nunito', sans-serif;
}

.main-content-wrapper {
    max-width: 100rem; /* Don't let the elements exceed 100rem */
    margin: 0 auto; /* center the elements if the max-width is exceeded */

    display: flex;
    flex-direction: column;
    row-gap: min(6rem, 20vw);
    padding: min(6rem, 20vw) 0;
}

#intro-paragraph {
    position: relative;
    width: 100%;
    padding: 0 10%;
    text-align: center;
    font-size: clamp(0.5rem, 1vw + 1rem, 3rem);
    color: #5b636a;
}

#intro-paragraph .placeholder {
    display: block;
    visibility: hidden;
}

#intro-paragraph .displayed {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 10%;
}

.carousel-container {
    position: relative;
    width: min(80rem, 90%);
    margin: 0 auto;
    overflow: hidden;
    outline: 5px solid #5b636a; /* Use outline instead of border because outline doesn't take up space and misalign the carousel images */
    border-radius: 15px;
    aspect-ratio: 16 / 9;
    opacity: 0;
    transform: translateY(75px);
    transition: opacity 1s, transform 1s;
}

.carousel-container.show {
    opacity: 1;
    transform: translateY(0);
}

.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: var(--carousel-slide-transition);
    transform: var(--carousel-slide-transform);
}

.carousel-slide img {
    aspect-ratio: 16 / 9;
    width: auto;
    height: 100%;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#prevBtn {
    position: absolute;
    width: 7%;
    height: 12%;
    top: 50%;
    transform: translateY(-50%);
    left: 5%;
    z-index: 1;
    opacity: 0.85;
    transition: opacity 0.3s;
}

#nextBtn {
    position: absolute;
    width: 7%;
    height: 12%;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    right: 5%;
    z-index: 1;
    opacity: 0.85;
    transition: opacity 0.3s;
}

#prevBtn:hover {
    opacity: 1;
    cursor: pointer;
}

#nextBtn:hover {
    opacity: 1;
    cursor: pointer;
}

.location-flex {
    margin: 0 3rem;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 3rem;
    row-gap: 2rem;
}

.location-map-wrapper {
    width: 40rem;
    flex: 0.5 0.85 auto;
}

.google-map {
    width: 100%;
    aspect-ratio: 4 / 3;

    border: 5px solid #5b636a;
    border-radius: 22px;

    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 1s, transform 1s;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.google-map.show {
    opacity: 1;
    transform: translateX(0);
}

.location-info-wrapper {
    width: 40rem;
    flex: 0.5 0.85 auto;
}

.location-info-wrapper p {
    position: relative;
    font-size: clamp(1rem, 1.5vw + 1rem, 3rem);
    text-align: center;
    color: #5b636a;
}

.location-info-wrapper p .placeholder {
    display: block;
    visibility: hidden;
}

.location-info-wrapper p .displayed {
    position: absolute;
    top: 0;
    left: 0;
}

.nextPage {
    position: relative;
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    column-gap: 1rem; /* Always has a minimum column gap of the specified amount no matter how small the screen gets */
    margin: 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s, transform 1s;
}

.nextPage.show {
    opacity: 1;
    transform: translateY(0);
}

.nextPage button {
    position: relative;
    width: 15rem;
    flex: 0.4 1 auto;
    min-height: 6rem;
    background-color: #6f7880;
    text-align: center;
    font-size: clamp(1rem, 1vw + 0.8rem, 2.5rem);
    color: white;
    border-radius: 100px;
    border: 5px double white;
    transition: background-color 0.3s, transform 0.5s;
}

@media (orientation: portrait) {
    .nextPage button {
        min-height: 4rem;
    }
}

.nextPage button:hover {
    background-color: #5b636a;
    transform: translateY(-10px);
    cursor: pointer;
}

/* FOOTER */

.footer {
    position: relative;
    min-height: 12.5rem;
    min-width: 300px;
    padding: 1rem 0;
    background-color: #2f2f2f;
    font-family: 'Nunito', sans-serif;
}

.footer-grid {
    max-width: 100rem;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
    row-gap: 2rem;
}

@media (max-width: 1160px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.shop-hours {
    position: relative;
    width: auto;
    height: auto;
    font-size: clamp(1rem, 1vw + 0.5rem, 2rem);
    line-height: 250%;

    display: grid;
    grid-template-columns: 0.5fr 1fr;
    column-gap: 1rem;

    grid-template-areas:
    'icon hour-title'
    'hour-1 hour-1'
    'hour-2 hour-2'
    'hour-3 hour-3'
    ;
}

.large-icon {
    width: 3rem;
    height: auto;
    aspect-ratio: 1 / 1;
    justify-self: self-end;
    align-self: center;
}

.shop-hours-title {
    color: white;
    text-align: left;
}

.hours {
    text-align: center;
    color: white;
}

.shop-info {
    position: relative;
    width: auto;
    height: auto;
    font-size: clamp(1rem, 0.5vw + 0.8rem, 2rem);
    line-height: 160%;

    display: grid;
    grid-template-columns: 0.2fr 1fr;
    align-items: center;
    gap: 0.5rem;

    grid-template-areas:
    'icon-1 info-1'
    'icon-2 info-2'
    '. info-3'
    '. info-4'
    '. info-5'
    ;
}

.small-icon {
    width: 2rem;
    height: auto;
    aspect-ratio: 1 / 1;
    justify-self: right;
}

.info {
    text-align: center;
    justify-self: self-start;
    color: white;
}

.shop-info a {
    color: revert;
}

.rating {
    position: relative;
    width: min(28rem, 95%);
    text-align: center; /* Centers the embed on iphone */
}

#logo {
    position: relative;
    width: 12rem;
    height: auto;
}

#bottom-text {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    padding-top: 1rem;
    color: white;
    font-size: clamp(0.3rem, 0.5vw + 0.4rem, 0.8rem);
}
