/************************************************************
 * 
 *              General CSS
 * 
 ********************************************************/
:root{
    --color1: green;
    --color2: blue;
}
/*Disable Chrome focus on buttons since we want it to be colorful, not the default black*/
 #BackgroundFade button, #BackgroundFade button:focus, #BackgroundFade button:hover{
    outline:none;
}
.covid_nextButton{
    width:250px;
    height:50px;
    border: 1px solid var(--color1);
    border-radius:15px;
    background-color:var(--color1);
    text-align: center;
    color: white !important;
    font-weight: bold !important;
    box-shadow:10px 10px 10px lightgray; 
    margin: 25px auto;
    cursor:pointer;
    padding: 15px 0px;
}

.covid_nextButton p {
    margin: -5px auto 0px auto;
    font-size: 20px !important;
}

.covid_goodButton{
    border-color: green;
    background-color: green;
}

.covid_badButton{
    border-color: red;
    background-color: red;
}
.hidden{
    display: none !important;
    /*transition-duration:10s;*/
    opacity: 0;
}

#Loading{
    position: fixed;
    background-color: rgba(60,60,60,.5);
    width: 100vw;
    height: 100vh;
    z-index: 1000001;
    top : 0px;
    left: 0px;
}

#Loading div {
    position: fixed;
    top: 30%;
    left: 50%;
}
/************************************************************
 * 
 *              Popup/form frame
 * 
 ********************************************************/
#BackgroundFade{
    background-color: rgba(60,60,60,.5);
    width: 100vw;
    height: 100vh;
    position: fixed;
    /*transition-duration:10s;*/
    transition: visibility 0s, opacity 0.5s linear;
    opacity:1;
    top:0;
    left:0;
    z-index: 1000000;
}

#formcontainer{
    min-width: 250px;
    max-width: 600px;
    width: 75%;
    height: 80%;
    position: relative;
    background-color: white;
    border: 3px gray solid;    
    border-radius: 25px;
    overflow-y: scroll;
    scrollbar-width: thin; /* same as the webkit stuff below, supposedly would "fix" it for edge and firefox!*/
    margin: 10vh auto;
    text-align: center;
}

#formcontainer h6{
    font-size: 20px;
    font-weight: bold;
    margin: 30px auto;
}
/*Attempt to make scrollbar look good, only works with chrome and safari */
#formcontainer::-webkit-scrollbar {
    width: 5px;
    cursor: pointer;
}
 
#formcontainer::-webkit-scrollbar-track {
    background: none;
    right:25px;
    cursor: pointer;
}
 
#formcontainer::-webkit-scrollbar-thumb {
    background: #666; 
    border-radius: 90px;
}
#close{
    position: absolute;
    top:7px;
    right:7px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 22px;
    color: gray;
}
#close:hover{
    color:black;
    font-weight: bold;
}

/************************************************************
 * 
 *              Chatbox/popup
 * 
 ********************************************************/
#shortcut{
    position: fixed;
    background-color: var(--color1);
    bottom: -25px;
    right: 25px;
    width: 17%;
    height: 55px;
    border-radius: 17px;
    border: none;
    padding-top: 10px;
    text-align: center;
    color: white;
    font: bold 15px Arial, sans-serif;
    transition-duration: .7s;
    cursor:pointer;
    z-index: 999999;
}

#shortcut:hover{
    bottom: -17px;
    transition-duration: .5s;
}

#shortcut p {
    margin-top: -25px;
}
/************************************************************
 * 
 *              Actual Form
 * 
 ********************************************************/
.covid_agreement p {
    width: 80%;
    margin: 0 auto;
    font-size: 15px;
}
#covid_hasEverHadCovid{
    font-size: 15px;
    margin: 0 auto;
    width: 80%;
}

/*end agreement*/
/* SYmptoms CSS*/
#Symptoms{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
    /* Hack for safari rendering off display on fixed element*/
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    perspective: 1000;
    -webkit-perspective: 1000;
}
#covid_PreSymptoms{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 75%;
    margin: 0 auto;
    /* Hack for safari rendering off display on fixed element*/
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    perspective: 1000;
    -webkit-perspective: 1000;
}

.symptom{
    border-radius: 25px;
    border: 3px solid var(--color2);
    overflow: hidden;
    margin: 5px 5px;
    position: relative;
    width: 125px;
    height: 150px;
    background: no-repeat top center/100px #ffffff;
    line-height: 20px;
    box-shadow:10px 10px 10px lightgrey; 
    text-align:center;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    perspective: 1000;
    -webkit-perspective: 1000;
}
.symptom p {
    color: #666;
    margin-bottom:10px;
    position: absolute;
    bottom: 0;
    width: 90%;
}
.symptom.goodSymptom p{
    -webkit-text-stroke-color: green;
}
.symptom.goodSymptom.clicked p{
    -webkit-text-stroke-color: green;
}
.symptom:hover p{
    -webkit-text-stroke-color: darkred;
}
.symptom.clicked p{
    -webkit-text-stroke-color: darkred;
}
.symptom.goodSymptom:hover{
      border: 3px solid green;
      background-color: rgba(0, 151, 19, 0.1);
}
.symptom.goodSymptom.clicked{
    border: 3px solid green;
    background-color: rgba(0, 151, 19, 0.1);
}
.symptom:hover{
      border: 3px solid red;
      background-color: rgba(255, 0, 0, .1);
      cursor:pointer;
}
.symptom.clicked{
    border: 3px solid red;
    background-color: rgba(255, 0, 0, .1);
}

.RegularFont{
    font: bold 15px Arial, sans-serif;
}

.SmallerFont{
    font: bold 12px Arial, sans-serif;
    line-height: 13px;
    font-weight: 800;
}

.SmallestFont{
    font: bold 10px Arial, sans-serif;
    line-height: 11px;
    font-weight: 900;
}


/*End of Symptoms */
/*History*/
/*#History p{
    line-height: 12px;
}*/

.covid_result{
     text-align: center;
}
.covid_result img{
    width: 250px;
    margin-bottom:25px;
}
/*ENd of History*/
/*Error/validation*/
.Covid_Error{
    color: red;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}
/* end of validation*/

/************************************************************
 * 
 *   Media Queries for enhanced Mobile support 
 *   (flexbox does the trick for most of it, but I wanted some details to be pointed out)
 * 
 ********************************************************/

@media only screen and (max-width: 600px) {
    #shortcut{
        width:95%;
        z-index: 999999;
        left: 2.5%;
    }
    .covid_badButton, .covid_goodButton {
        margin-bottom: 0px;
    }
    #formcontainer h6 {
        margin: 15px auto;
    }

    #formcontainer {
        margin-top: 2.5vh;
        height: 87.25vh;
        width: 90vw;
    }
    .covid_result img{
        width: 150px !important;
    }
}
@media only screen and (max-width: 1100px) { /*fix shortcut*/
    #shortcut {
        width: 95%;
        z-index: 999999;
        left: 2.5%;
    }
}
/* Safari IOS FIx https://browserstrangeness.github.io/css_hacks.html#safari */
/* Safari 9 IOS*/
@supports (overflow:-webkit-marquee) and (-webkit-text-size-adjust:none) and (justify-content:inherit) {
    .symptom p {
        margin-left: -7px;
    }
}
/*Safari 13.x*/
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) and (display:flow-root) { 
         .symptom p {
            margin-left: -7px;
        }
    } 
}