@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,600;1,400;1,600&display=swap');
  
:root {
    --color1: #291528;
    --color2: #dd0426;
    --color3: #A5907e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Raleway', sans-serif;
}

h1, p {
    padding: 10px 20px;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: var(--color1);
    color: var(--color3);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
}

/* Logo */
.logo {
    font-family: 'Raleway', sans-serif;
    display: inline-block;
    color: var(--color3);
    font-size: 60px;
    margin-left: 10px;
    line-height: 82px;
}

/* Nav Menu */
.nav {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 82px;
    background-color: var(--color1);
    overflow: hidden;
    max-height: 0;
    transition: max-height .5s ease-out;
}
.menu a {
    display: block;
    padding: 30px;
    color: var(--color3);
}
.menu a:hover {
    background-color: var(--color2);
}

/* Menu Icon */
.hamb {
    cursor: pointer;
    float: right;
    padding: 40px 20px;
}

.hamb-line {
    background-color: var(--color2);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
    transition: .2s ease-out;
}

.hamb-line::before,
.hamb-line::after {
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    width: 100%;
    background-color: var(--color2);
    transition: .2s ease-out;
}

.hamb-line::before {
    top: 5px;
}

.hamb-line::after {
    top: -5px;
}

/* Toggle Menu Icon */
.side-menu {
    display: none;
}

.side-menu:checked ~ nav {
    max-height: 100%;
}

.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}

.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top: 0;
}

.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top: 0;
}

/*hero image*/
.hero-image, 
header.sub-page {
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    background-image: url('https://images.unsplash.com/photo-1591864384134-8a21ffb51cb5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=3540&q=80');
}

.hero-image h1,
header.sub-page h1 {
    width: 75%;
    font-family: 'Raleway', sans-serif;
    font-size: 2.5em;
    text-align: center;
    color: white;
    text-shadow: 0px 4px 5px rgba(0,0,0,0.5);
    transform: rotate(-5deg);
}

header.sub-page {
    height: 100px;
    align-items: flex-start;

}

header.sub-page h1 {
    transform: rotate(0deg);
    width: 100%;
    text-align: left;
}

form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

input#name,
input#email,
textarea {
    font-size: inherit;
    margin-bottom: 10px;
    padding: 5px;
    width: 100%;
    border: 1px solid #eeeeee;
    resize: none;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
    outline: none;
}


input.btn {
    border: none;
    font-size: inherit;
    cursor: pointer;
}

.swipe {
    display: flex;
    padding: 20px 40px;
    gap: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.card {
    width: calc( 100vw - 80px );
    font-family: 'Raleway', sans-serif;
    flex-shrink: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 20px;
    aspect-ratio: 1 / 1;
    border-width: 1px;
    border-style: solid;
    border-radius: 10px;
    border-color: rgb(225,225,225) rgb(200,200,200) rgb(200,200,200) rgb(225,225,225);
    box-shadow: 0px 2px 4px rgba(0,0,0,0.5);
    background-size: cover;
    background-position: center center;
}

.swipe .card {
    background-image: linear-gradient(rgba(255,255,255,0) 40%, rgba(255,255,255,0.9) 80%), url('https://i1.pickpik.com/photos/20/975/825/hot-chocolate-drink-hot-chocolate-preview.jpg');
}

.swipe .card:first-child {
    background-image: linear-gradient(rgba(255,255,255,0) 40%, rgba(255,255,255,0.9) 80%), url('https://c1.peakpx.com/wallpaper/26/680/58/ice-chocolate-drink-cafe-cream-cover-wallpaper-preview.jpg');
}

.swipe .card:last-child {
    background-image: linear-gradient(rgba(255,255,255,0) 40%, rgba(255,255,255,0.9) 80%), url('https://upload.wikimedia.org/wikipedia/commons/2/23/Chocolate_milk.JPG');
}

.card h2,
.card p {
    text-align: center;
}

 .btn {
    font-family: 'Raleway', sans-serif;
    display: block;
    bottom: 0;
    text-align: center;
    padding: 10px 20px;
    background-color: var(--color2);
    border-radius: 10px;
    color: white;
    margin: 10px;
    width: fit-content;
    box-shadow: inset -1px -1px 2px rgba(0,0,0,0.5), inset 1px 1px 2px rgba(255,255,255,0.5);
}

.btn:hover {
    margin-top: 8px;
    margin-bottom: 12px;
    box-shadow: 2px 0px 4px rgba(0,0,0,0.5), inset -1px -1px 2px rgba(0,0,0,0.5), inset 1px 1px 2px rgba(255,255,255,0.5);
}

.btn:active {
    margin: 10px;
    margin-bottom: 10px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.5), inset -1px -1px 2px rgba(255,255,255,0.5);
}

@media (min-width: 768px) {
    .hero-image h1,
    header.sub-page h1 {
       font-size: 3.5em;
    }
    .nav {
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        background: transparent;
    }
    .menu li {
        float: left;
    }
    .menu a:hover {
        background-color: transparent;
        color: var(--color2);
    }
    .hamb {
        display: none;
    }

    .swipe {
        padding: 30px 60px;
        gap: 60px;
    }

    .card {
        width: calc( 50vw - 90px );
    }
}

footer {
    padding: 20px;
    background-color: rgb(95, 90, 90);
    color: white;
    border-top: 1px solid lightgrey;
    box-shadow: -2px 0px 4px rgba(0,0,0,0.5);
}

@media (min-width: 1200px) {
    .hero-image h1,
    header.sub-page h1 {
       font-size: 4em;
    }
    .swipe {
        padding: 40px 80px;
        gap: 80px;
    }

    .card {
        width: calc( (100vw - 320px) / 3 );
    }
}