@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&family=Raleway:wght@100;200;300;400;500;600;700&display=swap');
* {
    box-sizing: border-box;
    font-family: 'Raleway';
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    overflow: scroll;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 0;
    /* Remove scrollbar space */
    background: transparent;
    /* Optional: just make scrollbar invisible */
}


/* Nav bar */

nav {
    position: sticky;
    width: 100%;
}

.nav-items {
    display: flex;
    margin: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    list-style: none;
    box-shadow: 0 2px 0 #dddddd4a;
    padding-bottom: 1%;
}

.nav-header h1 {
    font-size: 30pt;
    margin: 0;
    text-align: center;
}

.nav-header h2 {
    font-weight: 200;
    text-align: center;
    font-size: 10pt;
    margin: 10px 0;
}

.first.nav-item {
    margin: auto 5% auto auto;
}

.nav-item {
    margin: auto 5%;
    padding-top: 2.5%;
    padding-bottom: 2.5%;
    border-bottom: solid 1px white;
}

.nav-item:hover {
    border-bottom: solid 1px black;
    transition: 1.5s;
}

/* Collections */

.frame {
    object-fit: cover;
    object-position: top;
    width: 225px;
    height: 225px;
    overflow: hidden;
    margin: 0 0 3% 0;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    opacity: 1;
}

.frame:hover {
    opacity: 75%;
    transition: 1s;
}

.collection-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 10%;
}

.collection-item {
    margin: 3% auto;
}

.item-name {
    font-family: 'Open Sans';
    font-size: 14.5pt;
    font-weight: 500;
}

.collection-item .item-price {
    font-size: 12pt;
    font-family: 'Open Sans';
}

.original.item-price {
    text-decoration: line-through;
}

.discount.item-price {
    color: green;
}

.size-options {
    margin: 5% 0;
}

.size-option {
    display: inline-block;
    width: 12.5%;
    text-align: center;
    padding: 3px 0;
    color: white;
}

.available.size-option {
    background-color: #e5cda8;
}

.unavailable.size-option {
    background-color: #d3d3d36b;
}

@media screen and (max-device-width: 900px),
       screen and (max-width: 900px) {
    .collection-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .frame {
        height: 30vw;
        width: 30vw;
    }
}

@media screen and (max-device-width: 900px){
    .nav-header h1 {
        font-size: 30pt;
        margin-top: 15%;
    }
    .nav-header h2 {
        visibility: hidden;
        float: left;
    }
    .nav-item {
        margin: auto;
        font-size: 25pt;
    }
    .item-name {
        font-family: 'Open Sans';
        font-size: 18pt;
        font-weight: 500;
        width: 30vw;
    }
    .collection-item .item-price {
        font-size: 15pt;
        font-family: 'Open Sans';
    }
}