﻿/* CONTACT */
.red {
    color: red;
    font-size: 1rem;
}

.contflex {
    display: flex;
    flex-direction: column-reverse;
}

.form_container {
    max-width: 850px;
    
    background: white;

    padding: 1% 0 0 0;
    flex: 10;
}

.form_container label {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
}

.form_container input, textarea {
    display: block;

    width: 100%;
    margin: 6px 0 18px 0;
    padding: 1.2%;

   	font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1rem;

    border: 1px solid lightgray;
    border-radius: 0px;
    box-sizing: border-box;

    resize: vertical
}

.form_container select {
    display: block;

    width: 100%;
    margin: 6px 0 18px;
    padding: 1%;

   	font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1rem;

    border: 1px solid lightgray;
    border-radius: 0px;

    transition: 0.3s ease-in-out;

}

.form_container option {
    font-weight: 300;
}

.form_container input[type=submit]{
    max-width: 40%;
    margin: 3% 0 0;

    font-size: 1rem;
    font-weight: 500;
    color: #F95D66;

    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid #F95D66;
    border-radius: 0px;

    transition: 0.3s ease-in-out;
}

/* Important tags used below to prevent specificity issues from JavaScript having higher priority */
.form_container input:focus, .form_container select:focus, .form_container textarea:focus {
    border-color: #F95D66 !important;
    outline: none;
}

.form_container input[type=submit]:hover, .form_container input[type=submit]:focus {
    background: #F95D66;
    color: white;

    cursor: pointer;
}

select {
    background: white;
    color: grey;
}

option[value=""][disabled] {
    display: none;
}

option {
    color: black;
}

optgroup {
    font-family: 'Roboto', sans-serif;
    font-style: normal;

    color: grey;
    font-weight: 300;
}

#product_context {
    display: none;
}

#error_msg {
    visibility: hidden;
}

.contemail a {
    display: inline-block;
    padding: 12px 20px;
    background: aliceblue;
    border-radius: 0px 14px ;
}

.contemail a:hover {
    color: #F95D66;

    
}

/* CONTACT POPUP */
#contact_toast {
    visibility: hidden;
    position: fixed;
    z-index: 2;

    width: 25%;
    min-width: 290px;
    padding: 1% 0;
    
    color: white;
    background-color: #cc0000;

    border-radius: 12px;
    text-align: center;
    left: 50%;
    bottom: 45px;
    transform: translateX(-50%);
}

#contact_toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 4.5s;
    animation: fadein 0.5s, fadeout 0.5s 4.5s;
}

.toast_title {
    font-size: 2rem;
    font-family: 'Cupola-Bold';

    margin: 0 0 1% 0;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 45px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 45px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 45px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadeintop {
    from {
        top: 0;
        opacity: 0;
    }

    to {
        top: 45px;
        opacity: 1;
    }
}

@keyframes fadeintop {
    from {
        top: 0;
        opacity: 0;
    }

    to {
        top: 45px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeouttop {
    from {
        top: 30px;
        opacity: 1;
    }

    to {
        top: 0;
        opacity: 0;
    }
}

@keyframes fadeouttop {
    from {
        top: 45px;
        opacity: 1;
    }

    to {
        top: 0;
        opacity: 0;
    }
}

/* RESPONSIVENESS */
@media screen and (max-width: 1800px) {
    /* Desktop breakpoint*/

}

@media screen and (max-width: 1200px) {
    /* Tablet (landscape) breakpoint */
    .contflex {
        display: block;
    }
}

@media screen and (max-width: 900px) {
    /* Tablet (portrait) breakpoint */
    .form_container input, textarea {
        padding: 1.6% 1.4%;
    }

    .form_container select {
        padding: 1.6% 0.8%;
    }

    .form_container label {font-size: 1rem;}
}

@media screen and (max-width: 600px) {
    /* Phone breakpoint */
    .form_container input, .form_container select, textarea {
        padding: 2.4% 2%;
        margin-top: 3px;
    }
    
    .form_container label {font-size: 0.9rem;}

    #contact_toast {
        top: 45px;
        bottom: unset;
    }

    #contact_toast.show {
    visibility: visible;
    -webkit-animation: fadeintop 0.5s, fadeouttop 0.5s 4.5s;
    animation: fadeintop 0.5s, fadeouttop 0.5s 4.5s;
}
}

@media screen and (max-width: 380px) {
    /* Small phone breakpoint*/
    
}

