@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=SUSE:wght@100..800&display=swap');

/* Default Styling */

:root {
    --text: #fff;
    --bg: #000000;
    --primary: #EEE0CB;
    --primary-active: #c8bdac;
    --secondary: #c87854;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

canvas.background {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: -1;
}

body {
    background-color: var(--bg);
    color: var(--text);
    padding: 5vh 10vw 5vh 10vw;
    transition: all 0.2s ease;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg); 
}

::-webkit-scrollbar-thumb {
    background: var(--primary); 
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-active); 
}

h1, h2 {
    font-family: 'Lobster', serif;
}

.link {
    text-decoration: none;
    color: var(--primary);
}

.styled-link {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: var(--primary);
}

.styled-link:hover {
    color: var(--primary-active);
}

.coffee {
    color: var(--secondary) !important;
}

.lobster {
    font-family: Lobster, sans-serif;
}

nav {
    width: 100%;
    height: 10vh;
}

nav ul {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 10px 0 10px;
    transition: transform 0.1s ease;
}

nav ul li a {
    border: 2px solid var(--primary);
    border-radius: 1000px;
    padding: 3px 12px 3px 12px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 7px;
    font-size: 13px;
}

nav ul li:hover {
    transform: scale(1.1);
}

/* Home Styles */

header span#coffee {
    color: var(--secondary);
    font-family: Lobster, sans-serif;
}

header h1#main {
    text-align: center;
    font-size: 68px;
}

header p#description {
    margin-top: 10px;
    text-align: center;
    padding: 0 5vw 0 5vw;
}

/* Fade In Styles */
main, header, footer, canvas {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Card Styles */

.cards {
    width: 100%;
    height: 50vh;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 25px;
    justify-content: center;

    overflow-y: scroll;
}

/* Custom Component Scroll Bar Styles */

.cards::-webkit-scrollbar {
    width: 3px;
}

.cards::-webkit-scrollbar-track {
    background: var(--bg); 
}

.cards::-webkit-scrollbar-thumb {
    background: var(--primary); 
}

.cards::-webkit-scrollbar-thumb:hover {
    background: var(--primary-active); 
}

.card {
    width: 300px;
    height: 170px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    margin: 10px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow: hidden;
}

.card img {
    width: 70px;
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 0 20px 20px 0;
}

.card h2 {
    color: var(--secondary);
}

.card p {
    color: var(--text);
}

.card #bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 10px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.card #bottom i {
    margin-left: 5px;
}

/* Coffee Page Styles */

main#coffee section#images {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

main#coffee section#images .row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

main#coffee section#images .row .img {
    width: 150px;
    height: 100px;
    overflow: hidden;
    margin: 10px;
    border-radius: 10px;
    transition: transform 0.1s ease;
}

main#coffee section#images .row .img:hover {
    transform: scale(0.95);
}

main#coffee section#images img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.1s ease;
}

main#coffee section#images img:hover {
    transform: scale(1.2);
}

main#coffee section#content h2 {
    font-size: 44px;
    text-align: center;
    margin-top: 20px;
}

main#coffee section#content .recipe {
    border: 2px solid var(--primary);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0 25px 0;
    color: var(--primary);
}

main#coffee section#content a {
    margin-top: 10px;
}

@media only screen and (min-width: 1200px) {

    main#coffee section#images .row .img {
        width: 250px;
        height: 200px;
    }

    main#coffee {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 25px;
    }
    
    main#coffee section#images {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        width: 50%;
        padding-right: 25px;
    }
    
    main#coffee section#content {
        padding-left: 25px;

        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        width: 50%;
        overflow-y: scroll;
    }

    main#coffee section#content h2 {
        text-align: left;
    }
}

/* Inner website scrollbar styling */

main#coffee section#content .recipe ul {
    list-style-position: inside;
    list-style: none;
}

main#coffee section#content::-webkit-scrollbar {
    width: 3px;
}

main#coffee section#content::-webkit-scrollbar-track {
    background: var(--bg); 
}

main#coffee section#content::-webkit-scrollbar-thumb {
    background: var(--primary); 
}

main#coffee section#content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-active); 
}


/* About Page styles */

#about {
    display: flex;
    flex-direction: column-reverse;
}

main#about section#model {
    width: 100%;
    height: 20vh;
}

main#about section#content {
    margin-top: 20px;
    text-align: center;
}

main#about section#content p{
    margin-bottom: 10px;
    color: var(--primary);
}

main#about section#content h2 {
    font-size: 44px;
    margin-bottom: 10px;
}

.model {
   height: 100%;
   width: 100%;
   transform: scale(1.1);
}

@media only screen and (min-width: 1000px) {
    #about {
        padding: 0 5vw 0 5vw;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    
    main#about section#model {
        width: 50%;
        height: 60vh;
    }
    
    main#about section#content {
        text-align: right;
        width: 50%;
        height: 60vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Footer Designs */

footer {
    width: 100%;
    height: min-content;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

footer p, footer span, footer a {
    font-family: Lobster, sans-serif;
}

/* Prefers Reduced Motion */

@media (prefers-reduced-motion) {
    
    canvas.background {
        display: none;
    }

    main#coffee section#images img {
        transition: none;
    }

    main#coffee section#images .row .img {
        transition: none;
    }

    nav ul li {
        transition: none;
    }

    .card {
        transition: none;
    }

}