/* Font Code */
@font-face {
    font-family: "classicFFFont";
    src: url("fonts/FinalFantasyFont.woff") format('woff');
}
@font-face {
    font-family: "eorzeanScript";
    src: url("fonts/EorzeanFont.woff") format('woff');
}
@font-face {
    font-family: myriadPro;
    src: url("fonts/MyriadProRegular.woff") format('woff');
}

body{
    background-image:url('images/ClassicARRWallpaper.webp');
    background-size: cover;
    padding-top: 60px;
    padding-bottom: 40px;
}
.game-body{
    display: flex;
    flex-direction: row;
    justify-content: center;
}


/* CSS Styling for Header */
.header{
    top: 0;
    left: 0;
    width: 100%;
    position: fixed;
    background: #555;
    color:#f1f1f1;
    justify-content: space-between;
    align-items: center;
    display: flex;
    flex-direction: row;
}

.kofi-button{
    padding-right: 3%;
    float: right;
}

h1{
    padding-left: 3%;
    text-align: center;
}

/* CSS Styling for the Input and Autocomplete */
.autocomplete{
    position: relative;
    width:80%;
    padding-right: 15px;
    aspect-ratio: 1280/148;
    background-image: url("images/emptyChatBubbleExtended.png");
    background-size: cover;
    background-repeat: no-repeat;
}

form.search-form{
    width:100%;
    display: flex;
    flex-direction: row;
}

form.search-form input[type=text] {
    padding-left: 5%;
    background-color: transparent;
    border: transparent;
    height: 75%;
    width: 90%;
    position: absolute;
    bottom: 5%;
    font-size: 20px;
    font-family: myriadPro;
}
form.search-form button{
    padding: 10px;
    width: 10%;
    border: 3px solid #8f6d07;
    border-radius: 15%;

    background: radial-gradient(#592421, #9b423d);
    

    color: #fecd62;
    text-shadow: 1px 1px 2px black;
    text-align: center;
    font-size: larger;
    font-family: eorzeanScript;

    position: relative;
    top: 8px;
    
    align-self: center;
}
form.search-form button:hover{
    background: radial-gradient(#1f0c0b, #6a2926);
}
.group-guess-input{
    width:70%;
}

.autocomplete-items{
    position: absolute;
    border: 1px solid #d4d4d4;
    border-top: none;
    border-bottom: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
}
.autocomplete-items div{
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
    /*Change color when hovering item*/
    background-color: #e9e9e9;
}
.autocomplete-active {
    /* For when navigating autocomplete with arrow keys */
    background-color: dodgerblue !important;
    color: #ffffff;
}

/* CSS Styling for the Lives Counter*/
.lives-counter{
    text-align: center;
    flex-grow: 1;
    justify-content: center;
    font-size: xx-large;
    font-weight: 900;
    color:#191919;
    -webkit-text-stroke: .5px #8e7141;
    font-family: classicFFFont;
    letter-spacing: .2rem;
}

.global-average-display{
    text-align: center;
    flex-grow: 1;
    font-size: 20px;
}

/* CSS Styling for the Guess Table */
.group-guesses {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    width: 90%;
}

.table-wrapper-outer{
    width: 100%;
}

.guess-table {
    flex-grow:1;
    overflow: auto;
    display: block;
    table-layout: fixed;
    background-color: transparent;
    background: transparent;
    margin: 25px 0;
    padding: 15px;
    font-size: 0.9em;
    font-family: sans-serif;
    width: 100%;

    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.guess-table tbody{
    width: 100%;
}

.guess-table thead th{
    background-color: #191919;
    color: #f5f5f5;
    border: 3px solid #8e7141;
    border-radius: 0.5rem !important;
    text-align: center;
    text-shadow: 1px 1px 1px black;
    height: 50px;
    width: 100%;
}

.guess-table th,
.guess-table td {
    padding: 12px 15px;
    width: 1px;
    white-space: nowrap;
}

/* Style Rules for Answer Data Point Cells */
.answerCell{
    margin: 0px 10px 0px 10px;
    position: relative;
    border: 2px solid #8e7141;
    background-color: transparent;
    border-radius: 0.5rem !important;
    white-space: normal;
    margin: 1px;
  
    color: #fecd62;
    text-shadow: 1px 1px 2px black;
    text-align: center;

    align-items: center;
    justify-items: center;
}

.correctAnswerCell{
    background: radial-gradient(#0d5e04, #59c402);
}

.incorrectAnswerCell{
    background: radial-gradient(#592421, #9b423d)
}

.incorrectCloseAnswerCell{
    background: radial-gradient(#8f6d07, #dba400)
}

.answerRow{
    padding: 1px;
    height: 50px;
    background-color: #303030;
}

/* CSS Styling for Results Modal */
.modal{
    position: fixed;
    display: none;
    z-index: 2; /* Always on top */
    left: 15%;
    top: 10%;
    width: 70%;
    height: 60%;
    transition: top 0.5s ease-in-out;
}

.modal.active{
    display: block;
}

.modal-header{
    color:#d4d4d4;
    font-size: large;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

.modal-content{
    background-color:#191919;
    padding: 20px;
    padding-top: 1px;
    border: 3px solid #8f6d07;
}

.modal-btn{
    color: #d4d4d4;
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-btn:hover{
    color:#9b423d;
}

.modal-footer{
    color:#d4d4d4;
    font-size: medium;
    align-content: center; 
}

#overlay {
    z-index: 1;
    display:none;
    position: fixed;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    background-color: rgba(0, 0, 0, 0.4);
}

#overlay.active{
    display: block;
}


.footer{
    position: absolute;
    bottom: 0;
    left: 0;
    min-height: 10%;
    padding-top: 50px;
    z-index: 5;
    width: 100%;
}