:root{
    --green: #018601;
    --orange: #ffa824;
    --darkOrange:rgb(243, 149, 17);
    --lightOrange:  #e4c35d;
    --grayedDarkOrange:rgb(135, 90, 27);
    --grayedLightOrange:  rgb(125, 83, 42);
    --brown: rgb(79, 43, 32);
    --lightBrown: rgb(142, 83, 59);
    --darkGreen: rgb(18, 84, 60);
    --lightGreen: rgb(36, 125, 92);
    --borderPurple: magenta;

    

    font-family:  "Arial", Helvetica, sans-serif;
}

html{
    margin: 0;
    padding: 0;
}

body {
    background-image: url("images/bg_heavenlyTower.webp");
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    margin: 0;
    padding: 0;
    height: 100%;
}

img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}
img {
    opacity: 1;
}

#logo{
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-bottom: 2%;
}

.inputDiv{
    justify-content: center;
    display: flex;
}

#catInput {
    width: 220px;
    height: 30px;
    font-size: 20px;
    border-radius: 10px;
}

#submitBtn{
    font-size: 20px;
    margin-left: 4px;
    background-image: linear-gradient(var(--lightOrange), var(--darkOrange));
    color: white;
}


#time{
    display: none;
    margin-left: auto;
    margin-right: auto;
    width: 20%;
    border: 2px solid white;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    background-image: linear-gradient(gray,black);
    color: white;
    font-family: Comic Sans MS;
    font-size: 15px;
    box-shadow: 0 0 2px 4px black;
}

.hint{
    text-align: center; 
}

#descHint{
    color: gray;
    font-size: 20px;
    background-image: linear-gradient(var(--grayedDarkOrange), var(--grayedLightOrange));
   
}

.animatedButton{
    border-radius: 10px;
    border-width: 3px;
    margin-bottom: 0px;  
    border: 3.5px solid black;
    font-family: "Anton", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: 0 2px black;
    -webkit-text-stroke: 1px black;
}


.animatedButton:hover{
   animation: borderAnimation 0.08s infinite alternate;
}

#desc{
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    background-image: linear-gradient(var(--brown),var(--lightBrown));
    color: white;
    font-family: sans-serif;
    font-size: 15px;
    text-align: center;
    resize: none;
    width: 400px;
    height: 50px;
    border-radius: 5px;
    overflow: hidden;
}

#imgHint{
    color: gray;
    font-size: 20px;
    background-image: linear-gradient(var(--grayedDarkOrange), var(--grayedLightOrange));
}

#blurredAnswer{
    filter: blur(6px);
}

body .ui-autocomplete{
    max-height: 200px;
    color: white;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    /* add padding to account for vertical scrollbar */
    border-radius: 10px;
    background-image: linear-gradient(var(--darkGreen), var(--darkGreen), var(--lightGreen));
}

table {
    color: white;
    font-family: "Comic Sans MS";
    border-spacing: 4px;
    justify-content: center;
    display: flex;
    margin-right: auto;
    margin-left: auto;
    overflow-x: auto;
}

#row {
    background-color: black;
    font-family: helvetica;
}

#nameCell {
    color: white;
    border: 1px solid black;
    width: fit-content;
    background-color: slategray;
    border-radius: 10px;
    min-width: 70px;
}

#traitCell{
    width: 204px;
    min-width: 204px;

}

/*
    speech bubble 
*/
.rulesDiv{
    text-align: center;
}

#gamatoto{
    width: 10%;
    margin-left: 5%;
}

.speechDiv { 
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    width: 100px; 
    background-color: white;
    border: 2.5px solid black;
    padding: 5px; 
    text-align: center; 
    font-size: 35px; 
    border-radius: 35px; 
    position: relative; 
} 

.speechDiv:after { 
    content: ""; 
    position: absolute; 
    bottom: 0;
	left: 50%;
	width: 0;
	height: 0;
	border: 20px solid transparent;
	border-top-color: white;
	border-bottom: 0;
	border-right: 0;
	margin-left: -10px;
	margin-bottom: -20px;
} 

#rulesBtn{
    font-size: 20px;
    background-image: linear-gradient(var(--lightOrange), var(--darkOrange));
    color: white;
}

.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 50%;
    width: 70%;
    z-index: 2;
}

.blackout{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1;
    opacity: .80;
}
  
#rules {
    border: 2px solid white;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: left;
    background-image: linear-gradient(gray,black);
    color: white;
    font-family: Comic Sans MS;
    font-size: 15px;
    box-shadow: 0 0 2px 4px black;
}

#okBtn{
    float: right;
    font-size: 25px;
    width: 8%;
    background-image: linear-gradient(var(--lightOrange), var(--orange));
    color: white;
    border-width: 3px;
}

@keyframes borderAnimation {
    0% {
        border-color: var(--borderPurple); 
    }
    100% {
        border-color: yellow; 
    }
}

@media (max-width: 1024px){
    #logo{
        width: 40%;
    }
    .inputDiv{
        width: 10%;
        margin-left: auto;
        margin-right: auto;
    }
    #submitBtn{
        float: right;
        font-size: 17px;
    }
    table {
        color: white;
        font-size: 17px;
        font-family: "Comic Sans";
        border-spacing: 4px;
        width: fit-content;
    }    
    #row{
        font-size: 15px;
    }
    #blurredAnswer{
        width: 10%;
    }
    #gamatoto{
        width: 20%;
    }
    .popup{
        padding: 10%;
    }
    #rules{
        height: 85%;
        font-size: 15px;
        overflow: auto;
    }
    #okBtn{
        width: 20%;
    }
}

@media (max-width: 480px){
    #logo{
        width: 70%;
    }
    .inputDiv{
        width: 10%;
        margin-left: auto;
        margin-right: auto;
    }
    #submitBtn{
        float: right;
        font-size: 17px;
    }
    table {
        color: white;
        font-size: 17px;
        font-family: "Comic Sans";
        border-spacing: 4px;
        width: fit-content;
    }    
    #row{
        font-size: 15px;
    }
    #blurredAnswer{
        width: 20%;
    }
    #gamatoto{
        width: 30%;
    }
    .popup{
        width: 95%;
    }
    #rules{
        height: 100%;
        font-size: 15px;
        overflow: auto;
    }
    #okBtn{
        width: 40%;
    }
}