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

body{
    font-family: "Ysabeau", sans-serif;
    padding: 0 0;
}

header{
    background-color: #ff544c;
    padding: 1.25rem;
    position: relative;
    z-index: 1000;
}

nav img{
    height: 3.5rem;
}

nav{
    display: flex;
    align-items: center;
}

.logo img{
    height: 3.5rem;
}

.nav-links{
    margin: 0 auto;
    display: flex;
    gap: 1.25rem;
    right: -100%;
    transition: .3s;
}

.nav-links a{
    text-decoration: none;
    background-color: #e3262e;
    color: white;
    font-family: "Ysabeau", sans-serif;

    padding: 0.625rem 1.5rem;
    border-radius: 1.5rem;

    font-size: 1rem;
    font-weight: bold;
}

.nav-links a:hover{
    background-color: #c81f26;
}

.card-container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    padding: 3rem 20rem;
    background-color: #3abef9;
}

.card{
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: flex-end;
    justify-content: center;
    height: 18rem;
    border-radius: .5rem;
    box-shadow: 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-repeat: no-repeat;
}

.card-toppings{
    background-image: url(images/toppings.jpg);
    background-position: center;
}

.card-drinks{
    background-image: url(images/drinks.jpg);
    background-position: bottom;
}

.card-recipies{
    background-image: url(images/strawberywaffle.jpg);
    background-position: center;
}

.card img{
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
}

.card h3{
    background-color: #e02424;
    font-family: "Young Serif", serif;
    color: white;
    padding: .5rem 1.5rem;
    border-radius: 1.5rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card a{
    text-decoration: none;
    font-family: "Yrsa", serif;
    color: white;
}

.card :hover{
    background-color: #c81f26;
}

.card:nth-child(3){
    grid-column: 1/-1;;
}

.howto{
    padding: 1rem;
    background-color: white;
    text-align: center;
}

.howto h1{
    text-decoration: none;
    font-family: "Yrsa", serif;
    color: black;
    text-align: center;
    font-size: 4rem;
}

.howto h2{
    text-decoration: none;
    font-family: "Young Serif", serif;
    color: black;
    text-align: center;
    font-size: 2rem;
}

hr{
    border: none;
    border-top: 3rem solid #ff544c;
    width: 100%;
}

.hours{
    width: 33%;
    z-index: 2;
}

.hours h2{
    margin: 0;
    padding: 1rem;
    background-color: #3abef9;
    color: white;
    font-size: 2rem;
    font-family: "Yrsa", serif;
    border-top-right-radius: 12px;
}

.hours ul{
    padding: 2rem;
    margin: 0;
    list-style: none;
    background-color: #e02424;
    color: white;
    font-family: "Ysabeau", sans-serif;
    border-bottom-right-radius: 12px;
}

.hours li{
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 1.1rem;
    font-family: "Ysabeau", sans-serif;
    color: white;
}


.hoursbox{
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    overflow: hidden;
    padding-bottom: 3rem;
}

.waffle{
    position: absolute;
    left: 17%;
    top: 50%;
    transform: translateY(-50%);
    width: 33%;
    z-index: 1;
}

.orange{
    border: none;
    border-top: 2rem solid #fd9a34;
    width: 100%;
    padding-bottom: 1rem;
}

footer{
    background-color: #3abef9;
    padding: 3rem 4rem;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    color: white;
    font-family: "Ysabeau", sans-serif;
}

.footlinks{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footlinks a{
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

.footlinks a:hover{
    text-decoration: underline;
}

.footlogo{
    align-self: start;
}

.footlogo img{
    width: 150px;
}

.footsocials{
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.footsocials img{
    height: 30px;
}

.toppings{
    background-color: #e02424;
    text-align: center;
}

.hero{
    height: 300px;
    background-image:
        linear-gradient(
            rgb(224, 36, 36, 0.5),
            rgb(250, 75, 75, .5)
        ),
        url(images/strawberywaffle.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
}

.hero h1{
    background-color: #e02424;
    color: white;
    padding: 1rem 3rem;
    border-radius: 3rem;
    font-family: "Yrsa", serif;
    font-size: 2.5rem;
    position: absolute;
    transform: translateY(75%);
}

.menu{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding: 4rem 20rem;
    background-color: white;
}

.column h2{
    font-family: "Young Serif", serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.column ul{
    list-style: none;
    padding: 0;
}

.column li{
    font-family: "Ysabeau", sans-serif;
    font-size: 1.1rem;
    padding: 0.4rem 0;
    text-align: center;
}

.recipies .hero{
    position: relative;
    height: 300px;
    background-image:
        linear-gradient(
            rgba(252, 225, 137, 0.5),
            rgb(252, 225, 137, 0.5)
        ),
        url(images/strawberywaffle.jpg);    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 2rem;
}


.recipies .hero h1{
    position: relative;
    z-index: 1;
    background-color: #ffde76;
    color: black;
    padding: 1rem 3rem;
    border-radius: 2rem;
    font-family: "Yrsa", serif;
    font-size: 2.5rem;
}

.plans{
    padding: 4rem 6rem;
    max-width: 900px;
    margin: auto;
}

.row{
    margin-bottom: 3.5rem;
}

.row h2{
    font-family: "Yrsa", serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.row p{
    font-family: "Ysabeau", sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    max-width: 600px;
}

.drinks .hero{
    position: relative;
    height: 300px;
    background-image:
        linear-gradient(
            rgba(255, 155, 40, 0.5),
            rgb(255, 155, 40, 0.5)
        ),
        url(images/strawberywaffle.jpg);    background-size: cover;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 2rem;
}

.drinks .hero h1{
    position: relative;
    z-index: 1;
    background-color: #fd9a34;
    color: white;
    padding: 1rem 3rem;
    border-radius: 2rem;
    font-family: "Yrsa", serif;
    font-size: 2.5rem;
}

.drinks .menu{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 4rem 10rem;
}

.drinks .column h2{
    font-family: "Young Serif", serif;
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.drinks .column ul{
    list-style: none;
    padding: 0;
}

.drinks .column li{
    font-family: "Ysabeau", sans-serif;
    font-size: 1.2rem;
    padding: 0.35rem 0;
}


.contact{
    background-color: #e02424;
    padding: 4rem 6rem;
    max-width: 900px;
    margin: auto;
    text-align: center;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
}

.contact h1{
    font-family: "Young Serif", serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.contact p{
    font-family: "Ysabeau", sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: white;
}

.contact a{
    color: white;
    text-decoration: none;
}

.contact a:hover{
    text-decoration: underline;
}

.cmain > h2{
    font-family: "Young Serif", serif;
    font-size: 2.5rem;
    text-align: center;
    margin: 4rem 0 2rem;
}

.cmain ul{
    list-style: none;
    padding: 0 6rem 4rem;
    max-width: 900px;
    margin: auto;
}

.cmain li{
    margin-bottom: 2rem;
}

.cmain li span:first-child{
    display: block;
    font-family: "Young Serif", serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cmain li span:last-child{
    display: block;
    font-family: "Ysabeau", sans-serif;
    font-size: 1.1rem;
    color: #333;
}

.cmain li a{
    color: #3abef9;
    text-decoration: none;
    font-weight: bold;
}

.cmain li a:hover{
    text-decoration: underline;
}

.contacthead{
    background-color: #3abef9;
    padding: 1.25rem;
}

.cnav-links a{
    text-decoration: none;
    background-color: #0085b6;
    color: white;
    font-family: "Ysabeau", sans-serif;

    padding: 0.625rem 1.5rem;
    border-radius: 1.5rem;

    font-size: 1rem;
    font-weight: bold;
}

.cnav-links a:hover{
    background-color: #006b92;
}

.cnav-links{
    margin: 0 auto;
    display: flex;
    gap: 1.25rem;
}

.hamburger{
  display: none;
  width: 40px;
  cursor: pointer;
  padding-top: .5rem;
}

.hamburger hr{
  margin: 10px 0;
  border: 2px solid rgb(255, 255, 255);
  border-radius: 1rem;
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links{
  display: flex;
  gap: 20px;
}

.overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}

.nav-links.show{
  right: 0;
}

.overlay{
  opacity: 0;
  pointer-events: none;
}

.overlay.show{
  opacity: 1;
  pointer-events: all;
}


@media (max-width: 768px){

    header{
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .hamburger{
        display: block;
        height: 60px;
        border: none;
        position: fixed;
        }

    .logo{
        margin-left: auto;
    }

    .nav-links{
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px;
        transition: .3s;
    }

    body.nav-open .nav-links{
        right: 0;
    }

    body.nav-open .overlay{
        opacity: 1;
        pointer-events: all;
    }

    
    .card-container {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1.25rem;
    }

    .card {
        height: 16rem;
    }

    .card:nth-child(3) {
        grid-column: auto;
    }

    .howto img{
    max-width: 100%;
    }

    .hours{
    width: 65%;

    }

    .waffle{
    left: 12%;
    width: 100%;
    }

    .menu{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem;
    background-color: white;
    padding-top: 5rem;
    }

    .drinks .menu{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem;
    background-color: white;
    padding-top: 5rem;
    }

    .hero{
        height: 150px;
    }

    .drinks .hero{
        height: 150px;
    }
    
    .recipies .hero{
        height: 150px;
    }
}