/* Custom DM Sans font */
@font-face {
    font-family: 'DM Sans';
    src: url('../resources/fonts/DMSans.ttf') format('truetype');
    font-optical-sizing: auto;
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

/* Custom Montserrat font */
@font-face {
    font-family: 'Montserrat';
    src: url('../resources/fonts/Montserrat.ttf') format('truetype');
    font-optical-sizing: auto;
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Custom Montserrat font - Bold */
@font-face {
    font-family: 'Montserrat Bold';
    src: url('../resources/fonts/Montserrat-Bold.ttf') format('truetype');
    font-optical-sizing: auto;
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

strong {
    font-family: 'Montserrat Bold', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    background-color: #131417;
    display: flex;
    flex-direction: column;
    text-align: center;
}

header {
    padding: 20px;
    background-color: #050505;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header > a > img {
    width: 70px;
    height: 70px;
}

header > a:focus {
    border-radius: 100%;
}

header > nav > ul {
    display: flex;
    list-style: none;
    background-color: none;
    border-radius: 2px;
    gap: 0.1em;
    padding: 2px;
    margin-left: 110px;
}

header > nav > ul > li {
    padding: 7.5px;
    background-color: #131417;
}

header > nav > ul > li > a {
    text-decoration: none;
    color: #DFE0E2;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    padding: 7px;
}

header > nav > ul:hover {
    background-color: #232323;
}

header > nav > ul > li:hover {
    background-color: #40454D;
}

header > nav > ul > li > a:focus {
    background-color: #40454D;
}

.active {
    background-color: #40454D; 
}

header > section {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

header > section > section {
    display: flex;
    justify-content: space-around;
    margin-left: 2px;
}

.search {
    width: 22.5px;
    height: 22.5px;
    padding: 5px;
    border-radius: 8px;
    cursor: pointer;
}

.icons {
    width: 20px;
    height: 20px;
    padding: 5px;
    border-radius: 8px;
}

#ul-active {
    background-color: #232323;
}

.icons-active {
    background-color: #40454D;
    border-radius: 8px;
    height: 30px;
}

.icons:hover, .search:hover {
    background-color: #40454D;
}

header > section > section > a:focus {
    background-color: #40454D;
    border-radius: 8px;
    height: 30px;
}

#menu-toggle {
    width: fit-content;
    height: fit-content;
    display: none;
}

#menu-icon {
    display: none;
}

#header-right {
    margin-top: -50px;
}

#header-right > section {
    gap: 0.5em;
}

h1, h2, p, .card, #list {
    font-family: "Montserrat", sans-serif;
    color:#DFE0E2;
}

h2 {
   font-weight: lighter; 
}

h1 {
    margin-top: 60px;
    font-size: 62px;
    font-weight:lighter;
    margin-bottom: 0;
}

p {
    margin-top: 5px;
    font-weight: lighter;
    line-height: 2;
}

footer {
    height: 80px;
    background-color: #050505;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 0 20px 0 20px;
}

footer > section {
    display: flex;
    gap: 0.7em;
    height: 35px;
}

footer > section > a {
    padding: 2px 2px 2px 2px;
    border-radius: 100px;
    background-color: #232323;
}

footer > section > a:hover {
    background-color: #40454D;
}

footer > section > a:focus {
    background-color: #40454D;
}

footer > section > a > img {
    width: 30px;
    height: 30px;
}

footer > ul {
    display: flex;
    gap: 0.1em;
    padding: 2px;
    background-color: #232323;
    list-style: none;
    position: relative;
    margin-right: 100px;
}

footer > ul > li {
    background-color: #131417;
    padding: 7.5px;
}

footer > ul > li > a {
    padding: 2px 10px 2px 10px;
    text-decoration: none;
    color: #DFE0E2;
}

footer > ul > li:hover {
    background-color: #40454D;
}

footer > ul > li > a:focus {
    background-color: #40454D;
}
/* -------------- SLIDESHOW --------------- */
#slideshow {
    overflow: hidden;
    height: 400px;
    width: 400px;
    margin: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#slide-container {
    position: relative;
    width: 340px;
    max-width: 340px; 
    height: 340px;
    max-height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide {
    position: absolute;
    width: fit-content;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: fade 32s infinite;
    z-index: -1;
}


.slide:nth-child(1) {
    animation-delay: 4s;
}

.slide:nth-child(2) {
    animation-delay: 8s;
}

.slide:nth-child(3) {
    animation-delay: 12s;
}

.slide:nth-child(4) {
    animation-delay: 16s;
}

.slide:nth-child(5) {
    animation-delay: 20s;
}

.slide:nth-child(6) {
    animation-delay: 24s;
}

.slide:nth-child(7) {
    animation-delay: 28s;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
    width: fit-content;
    padding: 16px;
    background-color: #050505;
    border-radius: 12px;
}

.product-image {
    border-radius: 8px;
    width: 300px;
    height: fit-content;
}

@keyframes fade {
    0%, 15%, 100% {
        opacity: 0;
        z-index: -1;
    }
    10% {
        opacity: 1;
        z-index: 1;
    }
}

/*  ----------------- PRODUCTS --------------------- */
#products-container {
    padding: 0 20px 100px 20px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: -10px auto;
    gap: 20em;
    scroll-padding-top: 220px;
}

#products-h1 {
    margin-top: 70px;
}

#products-p {
    margin-top: -310px;
}

#gary-black {
    margin-top: -300px;
}

.card {
    max-width: 300px;
    text-align: center;
    background-color: #050505;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 8px;
    margin-top: -50px;
}

.rounded-top-corners {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    width: 300px;
    height: fit-content;
}

.card summary {
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
    background-color: #131417;
    border-radius: 4px;
    color: #DFE0E2;
    border: 0.1px solid #232323;
}

.card summary:hover {
    background-color: #40454D;
}

.card details[open] summary {
  background-color: #30363D;
  border: 1px solid #DFE0E2;
}

.card .details-content {
    border-top: 1px solid #232323;
    transition: max-height 0.3s ease;
    font-size: 12px;
}

.card details[open] .details-content {
    max-height: fit-content;
}

.card button {
    border: 2px solid #232323;
    padding: 12px;
    color: #DFE0E2;
    background-color: #050505;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    border-radius: 4px; 
}

.card button:hover {
    background-color: #40454D;
}

#list {
    list-style: none;
    padding: 0;
}

#list1 {
    list-style: none;
    padding: 0;
    font-weight: lighter;
    margin-top: -10px;
}

.price {
    font-size: 22px;
}

/* -------------- LOGIN / SIGN UP FORM ---------------- */

#form-container {
    display: flex;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
    color:#DFE0E2;
    font-size: 12px;
}

#form-container > form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 10px;
    width: 200px;
    align-items: center;
    background-color: #050505;
    border-radius: 4px;
}

#form-container > form > button {
    border-radius: 4px;
    width: 100%;
    font-size: 16px;
    padding: 10px;
    background-color: #131417;
    border: 0.1px solid #232323;
    cursor: pointer;
    color: #DFE0E2;
}

#form-container > form > button:hover {
    background-color: #F4C418;
    border: 0.1px solid #DFE0E2;
    color: #050505;
}

#form-container > form > input::placeholder {
    color: #848990;
}

#form-container > form > span {
    font-size: 9px;
    color: #848990;
}

/* ---------------  MEDIA QUERIES ----------------- */

/* Extra Large devices (large desktops/monitors, 1665px and up) */
@media (min-width: 1665px) {

    h1 {
        margin-top: 160px;
        font-size: 84px;
    }

    #products-h1 {
        margin-top: 170px;
    }

    p {
        font-size: 22px;
    }

    #products-p {
        margin-top: -313px;
    }

    #products-container {
        margin-top: 100px;
        align-items: center;
        min-height: 75vh;
        scroll-padding-top: 360px;
    }

    #clancy {
        margin-bottom: 200px;
    }

    .product-details {
        font-size: 16px;
    }

}

/* Base styles written on standard 13.6" laptop */
@media only screen and (min-width: 1280px) {

    header {
        padding-left: 25px;
        position: relative;
    }

    header > a {
        z-index: 2;
        position: relative;
    }

    header > nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 120px;
        height: 240px;
        cursor: pointer;
    }
    
    header > nav > ul {
        align-items: center;
        flex-direction: column;
        margin-top: 0;
        margin-left: 0;
        width: fit-content;
    }

    header > nav > ul > li {
        width: 100px;
        border-color: transparent;
    }

    header > nav > ul > li > a {
        color: #DFE0E2;
    }

    .product-details {
        font-size: 16px;
    }

    #products-container {
        padding: 0 20px 100px 20px;
        overflow-y: scroll;
        display: flex;
        flex-direction: column;
        height: 64.3vh;
        margin: -10px auto;
        gap: 20em;
    }

} 

/* Medium devices (Small laptops/large tablets, landscape mode) */
@media (min-width: 780px) and (max-width: 1260px) {

    p {
        line-height: 1.5;
    }

    h1 {
        margin-top: 40px;
        font-size: 52px;
    }

    header > nav > ul {
        margin-right: 30px;
        background-color: #232323;
    }

    header > nav > ul > li > a {
        font-size: 14px;
        padding: 7px 40px 7px 40px;
        color: #DFE0E2;
    }

    .hidden-menu-item {
        display: none;
    }

    #products-h1 {
        margin-top: 40px;
    }

    #products-p {
        margin-top: -170px;
    }

    #gary-black {
        margin-top: -160px;
    }

    #products-container {
        margin-top: 0;
        height: 65.6vh;
        padding: 0 10px 50px 10px;
        gap: 25vh;
    }

}

/* Tablets in portrait mode */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    h1 {
        margin-top: 100px;
    }

    header > nav > ul {
        width: fit-content;
    }

    header > nav > ul > li {
        width: 80px;
    }

    header > nav > ul > li > a {
        font-size: 12px;
        padding: 7px 20px 7px 20px;
    }

    #products-h1 {
        margin-top: 92px;
    }

    #products-p {
        margin-top: -330px;
    }

    #gary-black {
        margin-top: -250px;
    }

    #products-container {
        height: 58vh;
        gap: 31vh;
        margin: auto;
        padding: 10px 20px 250px 20px;
    }
  }
  
/* Large mobile devices */
@media (max-width: 768px) {

    #menu-toggle:checked ~ nav,
    #menu-toggle:checked ~ #header-right {
        display: block;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    
    header > a > img {
        width: 50px;
        height: 50px;
        padding-top: 5px;
    }

    nav {
        display: none;
        width: 99%;
        position: absolute;
        margin-top: 53px;
        margin-left: -120px;
        z-index: 1;
    }

    header > nav > ul {
        background-color: #232323;
    }

    nav > ul {
        flex-direction: column;
        width: 100%;
    }

    header > nav > ul > li > a {
        font-size: 14px;
        padding: 5px;
        font-size: 16px;
        color: #DFE0E2;
    }

    .hidden-menu-item {
        display: none;
    }

    #header-right {
        position: absolute;
        margin-top: 255.3px;
        margin-left: -10px;
        display: none;
        width: 99.1%;
        height: 55px;
        border: 2px solid #232323;
        background-color: #131417;
        z-index: 1;
        align-content: center;
    }

    #header-right:hover {
        background-color: #30363D;
    }

    #wishlist {
        margin-left: 10px;
    }

    nav > ul > li > a {
        display: block;
        
        width: 100%;
    }

    .search {
        width: 30px;
        height: 30px;
        position: absolute;
        top: -250px;
        left: 230px;
        padding: 7px 9px 7px 7px;
    }

    .icons {
        padding: 7px;
        border-radius: 4px;
    }

    .icons:hover {
        background-color: #131417;
    }

    .active {
        background-color: #131417;
        border: 1px solid #848990;
    }

    #menu-icon {
        cursor: pointer;
        display: block;
        position: absolute;
        top: 21px;
        right: 10px;
    }

    #mobile-icon {
        width: 30px;
        height: 30px;
        padding: 7px 7px 0 7px;
        border-radius: 4px;
    }

    #mobile-icon:hover {
        background-color: #40454D;
    }

    h1 {
        margin-top: 50px;
        font-size: 28px;
    }

    p {
        font-size: 12px;
    }

    #products-h1 {
        margin-top: 50px;
    }

    #products-container {
        padding: 0 10px 130px 10px;
        margin: auto;
    }

    footer > ul {
        font-size: 8px;
        margin-left: 30px;
        gap: 1px;
        
    }

    footer > ul > li > a {
        padding: 2px 5px 2px 5px;
        text-decoration: none;
        color: #DFE0E2;
    }

    footer {
        justify-content: space-evenly;
        gap: 0;
        padding: 0 10px 0 10px;
        
    }

    footer > section {
        height: 25px;
    }

    footer > section > a > img {
        width: 20px;
        height: 20px;
    }

    footer > section, #github-icon {
        margin-top: 20px;
    }

}

/* Smaller mobile devices */
@media (max-width: 499px) {
    
    p {
        margin-bottom: 20px;
    }

    .search {
        top: -250px;
        left: 195px;
    }

    #header-right {
        margin-top: 261.3px;
    }

    #products-h1 {
        margin-top: 40px;
    }

    #products-p {
        margin-top: -315px;
    }

    #products-container {
        height: 64vh;
        margin: auto;
        padding: 10px 10px 100px 10px;
    }

    .hidden-menu-item {
        display: none;
    }

}

/* Mobile devices in landscape mode */
@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (orientation: landscape) {
    
    body {
        height: 200vh;
    }
    
    header > nav > ul > li {
        width: 80px;
    }

    header > nav > ul > li > a {
        font-size: 12px;
        padding: 7px 20px 7px 20px;
    }

    #products-h1 {
        margin-top: 40px;
    }

    #products-p {
        margin-top: -150px;
    }

    #products-container {
        height: 140vh;
        gap: 40vh;
    }
    
}