* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
}

main {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

body {
    background-color: #FFF4E0;
    margin: 0;
    cursor: url('favicon.png'), auto;
}

.hero {
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    grid-column: 1 / -1;
}

.navbar {
    background-color: #FFE1AE;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .25);
    position: sticky;
    top: 0;
    display: flex;
    gap: 50px;
    margin-left: auto;
    z-index: 10;
}

.tab:hover {
    color:rgb(207, 0, 0);
    transition:
        box-shadow .25s,
        color .25s,
        background-color .25s;
    cursor: pointer;
}

.menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-icon img {
    width: 28px;
    height: auto;
}

.logo {
    display: flex;
    align-items: center;
    min-width: 150px;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.menu {
    display: flex;
    gap: 50px;
    margin-left: auto;
}

.card {
    padding: 15px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.card img {
    height: 200px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    box-shadow: 0 0 5px 2px rgba(50, 50, 50, .25);
}


.title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.card-bottom {
    background-color: #FFD387;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    text-align: center;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 0 5px 2px rgba(50, 50, 50, .25);
}

button {
    background: white;
    border-radius: 5px;
    border: 1.5px solid #000;
    padding: 5px 10px;
    font-weight: bold;
    width: 100%;
    max-width: 120px;
}


/* Ratings Page*/
.card .medal {
    position: absolute;
    top: 15px;
    left: 0;
    transform: translate(-30%, -20%);
    width: 125px;
    border: none;
    box-shadow: none;
}



/* Varieties Page*/
.types {
    max-width: 1200px;
    margin: 0 auto;
    grid-column: 1 / -1;
}

.type {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 30px;
}

.type:nth-child(even) {
    flex-direction: row-reverse;
}

.type img {
    width: 50%;
    border-radius: 6px;
    box-shadow: 0 0 5px 2px rgba(50, 50, 50, .25);
}

.type .text {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}




/* Toppings Page*/
.topping-cards {
    perspective: 800px;
    justify-content: center;
    display: contents;
}

.topping-card:hover {
    cursor: pointer;
    transform: rotateY(180deg);
}

.topping-card {
    width: 100%;
    height: 250px;
    position: relative;
    transition: transform 500ms;
    transform-style: preserve-3d;
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    backface-visibility: hidden;
}

.front {
    display: grid;
    justify-content: center;
    width: 100%;
    height: 100%
}

.back {
    background: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
}

.back h3 {
    margin: 10px 0 5px;
}

.back p {
    font-size: 14px;
    color: #444;
}

/* Drawer Menu */
.drawer-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: -300px;
    width: 100vw;
    background-color: #FFE1AE;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .25);
    padding: 20px;
    gap: 15px;
    z-index: 5;
    transition: top 0.3s ease;
}

.drawer-menu .tab {
    display: none;
}

.opened {
    top: 75px;

}

@media (max-width: 500px) {
    main {
        grid-template-columns: 1fr;
    }

    .logo {
        min-width: 100%;
        justify-content: center;
    }

    .menu-icon {
        display: flex;
        position: absolute;
        right: 20px;
        top: 25px;
        z-index: 10;
    }

    .navbar .tab {
        display: none;
    }

    .menu {
        justify-content: flex-end;
    }

    .topping-card {
        height: 350px;
    }

    .drawer-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        top: -300px;
        width: 100vw;
        background-color: #FFE1AE;
        box-shadow: 0 4px 8px rgba(0, 0, 0, .25);
        padding: 20px;
        gap: 15px;
        z-index: 5;
        transition: top 0.3s ease;
    }

    .drawer-menu .tab {
        display: block;
        text-align: center;
        font-size: 18px;
        padding: 10px;
    }

    .drawer-menu.opened {
        top: 75px;
    }
}