@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tektur&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&family=Quicksand:wght@300..700&display=swap');


:root {
    --primary-color: #121212;
    --off-primary-color: #2e2e2e;
    --secondary-color: #f5f5f5;

    --primary-font: 'Quicksand', serif;
}

@font-face {
    font-family: customFont;
    src: url(./VCR_OSD_MONO.ttf);
}

*{
    margin:0;
    padding:0;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--off-primary-color);
}

.quicksand-font {
  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Header */
#logo-small {
    width: 100%;
}

header {
    padding-bottom: 2%;
    background-color: var(--primary-color);
}

#home-link {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 25vw;
}

h1 {
    font-family: var(--primary-font);
    font-weight: 700;
}

#header_links{
    font-family: "Quicksand", serif;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2%;
}

#header_links li{
    line-height: 55px;
    display: inline-block;
    text-align: center;
    min-width: 80px;
    margin-left: 20px;
    font-size:  min(4vw, 1em);
}

#header_links > li a{
    text-decoration: none;
    color: var(--secondary-color);
    display: block;
}

.inactive-link:after {
    display:block;
    content: '';
    border-bottom: solid 2px var(--secondary-color);  
    transform: scaleX(0);  
    transition: transform 250ms ease-in-out;
    transform-origin: 100% 50%;
    height: 100%;
}

#header_links > li:hover:after{
    transform: scaleX(1); transform-origin:   0% 50%;
}

#current-link{
    border-bottom: solid 2px var(--secondary-color);  
}

.announcements {
    width: 100%;
    height: 4vh;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-family: "Quicksand", serif;
    font-weight: 500;
    font-size: 1em;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.announcements div{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
    white-space: pre;
}

.announcements.moving div {
    width: 200%;
    animation: marquee 10s linear infinite;
}

.emergency.announcements {
    background-color: coral;
    box-sizing: border-box;
}

.annoucements-container {
    margin-bottom: 2%;
}

@keyframes marquee{
    0% {left:0;}
    100% {left:-100%;}
}

#colour-mode-button {
    color: var(--secondary-color);
    font-size: 2em;
    position: absolute;
    right: 0;
    margin-right: 3%;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#colour-mode-button:hover {
    cursor: pointer;
}

#browse-products {
    font-size: 100%;
    border: solid 3px var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.53);
    color: var(--secondary-color);
    width: 100%;
    height: 100%;
}

@keyframes fade-in {
    0% {
        transform: scale(3);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.active-product{
    cursor: pointer;
}

.product-container {
    width: 100%;
    height: 100%;
}

#browse-products:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    cursor: pointer;
}

.product-cards {
    width: 100%;
    height: 50vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-top: 7%;
    padding-bottom: 5%;
    position: relative;
    flex-direction: row;
}

@keyframes photo-change {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Product Pages */

#product-info {
    margin: 5%;
}

#product-component-1711955843610{
    margin-left: 5%;
    margin-right: 5%;
}

/* Footer */

footer {
    font-family: var(--primary-font);
    width: 100%;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding-top: 2%;
    padding-bottom: 2%;
}

#footer p {
    text-align: center;
}

#footer-content {
    display: flex;
    flex-wrap: wrap;
}

#footer h2 {
    font-family: "Quicksand", serif;
    font-weight: 500;
}

#footer-about-section {
    flex: 1;
    margin-left: 3%;
}

#footer-contact-section {
    flex: 1;
    margin-left: 2%;
    text-align: center;
}

#footer-mailing-section {
    flex: 1;
    margin-right: 3%;
    margin-left: 2%;
    text-align: center;
}

.footer-header {
    text-align: center;
    margin-bottom: 2%;
}

.email-link {
    color: var(--secondary-color);
}

.email-link:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.input-field {
    width: 100%;
    height: 35px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    padding-left: 10px;
    font-size: 100%;
    box-sizing: border-box;
}

#mailing-form {
    width: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.input-submit {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    border: none;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 50%;
    height: 45px;
    font-size: 100%;
    font-family: var(--primary-font);
    border-radius: 25px;
}

.input-submit:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    cursor: pointer;
}

#mail-success{
    color: var(--secondary-color);
    opacity: 0;
    margin-top: 20px;
}

#unsub-heading{
    text-align: center;
    margin-top: 5%;
    color: var(--secondary-color);
    font-family: var(--primary-font);
    font-size: 3em;
}

#unsubscribe-mailing-list {
    width: 50%;
    color: var(--secondary-color);
    font-family: var(--primary-font);
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    text-align: center;
}

#unsubscribe-mailing-list p {
    margin-bottom: 20px;
}

#unsubscribe-mailing-list input {
    width: 50%;
    box-sizing: border-box;
    height: 40px;
}

#unsubscribe-mailing-list input[type="email"] {
    padding-left: 2%;
    font-size: 100%;
}

#unsubscribe-success {
    margin-top: 20px;
    opacity: 0;
}

#pol-div{
    height: 100%;
    display: inline-block;
    justify-content: center;
    background-color: #f5f5f5;
    flex-wrap: wrap;
    margin-bottom: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-top: 100px;
    aspect-ratio: 7/8;
}

#pol-div div{
    background-color: #f5f5f5;
}

.product-title{
    text-align: left;
    width: 60%;
    display: inline-block;
    position: absolute;
    top: 17%;
}

.break{
    flex-basis: 100%;
    height: 0;
}

.product-price{
    text-align: right;
    width: 25%;
    display: inline-block;
    vertical-align: top;
    margin-left: 20px;
    position: absolute;
    top: 17%;
    right: 10px;
}

.product-price.sold-out {
    font-size: 0.75vw;
    margin-top: 5px;
}


img.sold-out{
    filter: grayscale(100%);
}

#gallery-img{
    width: 100vw;
    max-width: 100%;
}

#ea-title{
    color: #fefefe;
    text-align: center;
    margin-top: 2%;
}

#ea-container{
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fefefe;
    font-family: "Quicksand", serif;
    font-weight: 500;
    text-align: center;
    font-size: 2em;
    margin-top: 25vh;
    margin-bottom: 25vh;
}

#ea-form{
    width: 350px;
    font-size: 0.9em;
}

#ea-field{
    width: 100%;
}

#ea-button{
    width: 100%;
}

.product-table{
    max-width: 100vw;
    display:flex;
    flex-wrap:wrap;
    flex-direction:row;
}

.product{
    display:inline-block;
    border-left: solid 1px white;
    border-right: solid 1px white;
    border-top: solid 1px white;
    border-bottom: solid 1px white;
    flex: 0 0 20%;
    height: auto;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: auto;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-image-top {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: top 0.25s;
}

.product-image-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
}

.image-hover-change.product-image-top, .image-hover-change.product-image-bottom { 
    transition: opacity 0.25s;
}

.product:hover > * .image-hover-change.product-image-bottom {
    opacity: 1;
}

.product:hover > * .image-hover-change.product-image-top {
    opacity: 0;
}

.product:hover > * .product-image-top, .product:hover > * .product-image-bottom {
    top: -10%;
}

.product-details{
    font-family: var(--primary-font);
    font-weight: 400;
    color: #f5f5f5;
    padding-left: 7%;
    padding-right: 7%;
    font-size: 1.1vw;
    position: absolute;
    top: 100%;
    left: 0;
    transition: top 0.25s;
    z-index: 999;
    background-color: #2e2e2e;
    width: 100%;
    box-sizing: border-box;
    height: 10%;
    border-top: #f5f5f5 2px solid;
    display: flex;
    align-items: center;
}

.product:hover > .product-details {
    top: 90%;
}

.cs-container {
    color: #f5f5f5;
    width: 100%;
    text-align: center;
    margin-top: 25vh;
    margin-bottom: 25vh;
}

.product-banner{
    height: 10%;
    background-color: #f5f5f5;
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-family: var(--primary-font);
}

@media only screen and (max-width: 1000px) and (orientation: landscape){
    #mailing-form {
        width: 80%;
    }

}



@media only screen and (orientation: portrait) {

    #footer {
        width: 100%;
        font-size: 3.5vw;
    }

    #footer h2 {
        font-size: 5vw;
    }

    header {
        font-size: 3vw;
    }

    #product-component-1708327192655{
        display: none;
    }

    #home-link {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 40vw;
    }

    .product-cards {
        display: block;
        height: auto;
        max-width: 500px;
        margin: auto;
        object-fit: contain;
    }
    
    #footer {
        flex-wrap: wrap;
    }

    #footer-about-section {
        flex: 1 1 90%;
        padding: 5%;
        margin: 0;
    }

    #footer-contact-section {
        flex: 1 1 90%;
        padding: 5%;
        margin: 0;
    }

    #footer-mailing-section {
        flex: 1 1 90%;
        padding: 5%;
        margin: 0;
    }

    #unsubscribe-mailing-list {
        width: 80%;
    }

    #unsubscribe-mailing-list input {
        width: 80%;
    }

    h2 {
        margin-top: 15%;
    }

    .product{
        flex: 0 0 50%;
    }

    .announcements span{
        font-size: 1em;
    }

    .announcements{
        height: 4vw;
    }
    
    .emergency.announcements {
        height: auto;
        padding: 5px;
    }

    .emergency.announcements div{
        position: relative;
    }
    
    .emergency.announcements span{
        white-space: pre-wrap;
    }

    #ea-form{
        width: 80%;
    }

    .product-image-top {
        top: -10%;
    }

    .product-image-top:hover {
        top: -10%;
    }

    .product-details {
        top: 90%;
        height: 30%;
        font-size: 2.75vw;
    }
    
    .product:hover > .product-details {
        top: 90%;
    }

    .product-price {
        margin-left: 10px;
        top: 5%;
    }

    .product-price.sold-out {
        font-size: 2vw;
        margin-top: 2px;
    }
    
    .product-title {
        top: 5%;
    }

    .product-banner{
        font-size: 3.5vw;
    }
    
}