@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

:root{
    --PrimaryColor: white;
    --SecondaryColor: Black;
    --Lv1Color: orange;
    --Lv2Color: skyblue;
    --Shadow: rgba(0, 0, 0, 0.5);
    --Expose: rgba(255,255,255,0.5);
}

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

html,
body {
    height: 100%;
}

p {
    font-family: sans-serif;
}

a {
    text-decoration: none;
    font-family: 'Varela Round', sans-serif;
}

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: var(--Lv1Color);
    box-shadow: 1px 1px 5px 0px var(--Shadow);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
}

/* Logo */
.logo {
    display: inline-block;
    color: var(--PrimaryColor);
    font-size: 60px;
    margin-left: 10px;
}

/* Nav menu */
.nav {
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: var(--Lv1Color);
    overflow: hidden;

}

.menu a{
    display: block;
    padding: 30px;
    color: var(--PrimaryColor);
}

.menu a:hover {
    background-color: var(--Expose);
}

.nav {
    max-height: 0;
    transition: max-height .5s ease-out;
}

/*  Menu Icon */
.hamb {
    cursor: pointer;
    float: right;
    padding: 40px 20px;
}

.hamb-line {
    background: var(--PrimaryColor);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
}

.hamb-line::before,
.hamb-line::after {
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    width: 100%;
    background: var(--PrimaryColor);
    transition: all .2s ease-out;
}

.hamb-line::before {
    top: 5px;
}

.hamb-line::after {
    top: -5px;
}

.side-menu {
    display: none;
}

/* Toggle Menu Icon */
.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 {
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('images/draft.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    width: 100%;
}

.hero-image h1 {
    width: 75%;
    font-size: 2.5em;
    text-align: center;
    color: var(--Lv1Color);
    text-shadow: 0px 1px 2px var(--PrimaryColor);
}


.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 );
    flex-shrink: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 10px;
    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 var(--Shadow);
    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('images/guitar.jpg');
}

.swipe .card:first-child {
    background-image: linear-gradient(rgba(255, 255, 255, 0)40%,rgba(255, 255, 255, 0.9)80%), url('images/designer.jpg');
}

.swipe .card:last-child {
    background-image: linear-gradient(rgba(255, 255, 255, 0)40%,rgba(255, 255, 255, 0.9)80%), url('images/contact.jpg');
}

.card h2,
.card p {
    text-align: center;
}

a.btn {
    display: block;
    bottom: 0;
    text-align: center;
    padding: 10px 20px;
    background-color: var(--Lv2Color);
    color: var(--PrimaryColor);
    margin: 10px;
    border-radius: 10px;
    width: fit-content;
}

a.btn:hover {
    margin-top: 8px;
    margin-bottom: 12px;
    box-shadow: 2px 0px 4px var(--Shadow);
}

footer {
    padding: 20px;
    background-color: var(--Shadow);
    color: var(--PrimaryColor);
    border-top-width: 1px;
    border-style: solid;
    border-top-color: var(--Shadow);
    box-shadow: -2px 0px 4px var(--Shadow);
    margin: 0px;
    border: 0px;
}

@media (min-width: 768px) {
    .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(--Shadow);
   }
   .hamb{
    display: none;
   }

   .swipe {
    padding: 30px 60px;
    gap: 60px;
   }
   .card {
    width: calc(50vw - 90px);
   }

}

@media (min-width: 1200px) {
    .swipe {
        padding: 50px 70px;
        gap: 60px;
    }
    .card {
        width: calc((100vw - 280px) / 3);
    }
}

@media screen and (prefers-color-scheme: dark) {

    body {
        background-color: var(--PrimaryColor);
    }

    p, h2 {
        color: var(--SecondaryColor);
    }

    :root{
        --PrimaryColor: Black;
        --SecondaryColor: white;
        --Lv1Color: orange;
        --Lv2Color: skyblue;
        --Shadow: rgba(255, 255, 255, 0.5);
        --Expose: rgba(0,0,0,0.5);
    } 

    footer {
        padding: 20px;
        background-color: var(--Shadow);
        color: var(--PrimaryColor);
        border-top-width: 1px;
        border-style: solid;
        border-top-color: var(--Shadow);
        box-shadow: -2px 0px 4px var(--Shadow);
    }

    .card {
        background-color: var(--PrimaryColor);
        border-color: rgb(25,25,25) rgb(0,0,0) rgb(0,0,0) rgb(25,25,25);
        box-shadow: 0px 2px 4px var(--Shadow);
    }
    .swipe .card {
        background-image: linear-gradient(rgba(255, 255, 255, 0)40%,rgba(0, 0, 0, 0.9)80%), url('images/guitar.jpg');
    }
    
    .swipe .card:first-child {
        background-image: linear-gradient(rgba(255, 255, 255, 0)40%,rgba(0, 0, 0, 0.9)80%), url('images/designer.jpg');
    }
    
    .swipe .card:last-child {
        background-image: linear-gradient(rgba(255, 255, 255, 0)40%,rgba(0, 0, 0, 0.9)80%), url('images/contact.jpg');
    }
}