@import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&display=swap');

#page{
    overflow-x: hidden;
}

body {
    box-sizing: border-box;
    /*background: url(./paper.png);*/
    /* background: linear-gradient(0deg, #007fff7d,#8cffd57a, #98ffd499); */
    font-family: 'Homemade Apple', cursive;
    font-size: 26px;
    color: #463765;
    text-shadow: 0px 0px 1px #5d75f9e8;
    /* display: block; */
    background-repeat:no-repeat;
    background-size: contain;
    background-repeat: repeat;
    background-size: auto;
    margin: 0;
    overflow-x: hidden;
}

h1{
    margin: 0;
}

h2{
    margin: 42px -15px -20px;
    font-size: 20px;
    transform: rotate(353deg);
    text-shadow: 1px 1px #ffeb3b;
    z-index: 3;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
  padding: 4px 8px;
}

th{
    border-bottom: 1px solid #463765;
    background: #fff0;
}

td div, .emptyTable div{
    text-rendering: auto;
    border: 1px dotted;
    /* border-radius: 14px; */
    padding: 2px;
    font-size: 12px;
    text-shadow: none;
    text-align: center;
    float: left;
}

td div.good, .emptyTable div.good{
    color: green;
    background: #f1f8e9;
    }

td div.wrong, .emptyTable div.wrong{
        color: #f72121;
        background: #ff000008;
}

tr:nth-child(even) {
    background-color: #f0f5fa;
}

.gif img{
    transition: all cubic-bezier(0.55, 0.06, 0.68, 0.19) 5s;
    height: 160px;
    z-index: 9998;
    position: absolute;
    top: 32px;
    border-radius: 16px;
    left: -100vw;
}


#page {
    position: relative;
    box-sizing: border-box;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    overflow-x: hidden;
    /* border: 8px solid #03a9f4; */
    box-shadow: inset 0px 0px 80px 7px #fff883;
    border-radius: 0px;
    background: rgb(255 253 232 / 60%);
}


.playingBar{
    font-family: monospace;
    color: #463765;
    text-align: center;
    z-index: 10001;
    /* background-image: url('paper.png'); */
    background: #eaf8ff;
    background-size: 200px 200px;
    background-repeat: repeat;
    border-radius: 32px 32px 0 0;
    box-shadow: 4px 4px 0px 1px #463765;
    border: 1px solid #463765;
    flex-direction: column;
    align-content: space-between;
    backdrop-filter: blur(5px);
    padding: 4px 14px 0px;
    width: 160px;
    margin: 0 auto;
    position: relative;
    text-align: left;
    box-sizing: border-box;
    border-bottom-color: #eaf8ff;
}

.overlapShadow{
    background: #eaf8ff;
    height: 5px;
    z-index: 10001;
    width: 160px;
    margin: 0px auto 0px;
    border: 1px solid;
    border-width: 0 1px;
    box-sizing: border-box;
}

#input-field{
    display: none;
    /* font-family: emoji; */
    width: 50px;
    height: 50px;
    font-size: 32px;
    margin: 2px 40px;
    text-align: center;
    top: 32px;
    border: 2px solid #2196f3;
    border-radius: 4px;
    background: #effaff;
}

#start{
    margin-top: 3px;
    font-size: 18px;
    color: #000;
    position: absolute;
    text-transform: uppercase;
    /* top: -5px; */
    font-family: monospace;
    border: 1px solid #211e09;
    padding: 4px 16px;
    background-color: #ffeb3b;
    box-shadow: 2px 3px #211e09;
    border-radius: 8px;
    cursor: pointer;
    /* margin-left: -8px; */
}

#timeLeft{
    font-size: 32px;
    text-shadow: none;
    /* display: inline-block; */
    /* min-width: 70px; */
    /* background: white; */
    /* box-shadow: 0px 0px 15px 0px white; */
    /* border-radius: 16px; */
}

#start:hover{
    background: #f57f16;
    box-shadow: none;
    top: 5px;
    /* left: 8px; */
    color: #fff;
    border-color: #463765;
}

#input-field::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  opacity: 0.25;
}
#input-field::-moz-placeholder { /* Firefox 19+ */
  opacity: 0.25;
}
#input-field:-ms-input-placeholder { /* IE 10+ */
  opacity: 0.25;
}
#input-field:-moz-placeholder { /* Firefox 18- */
  opacity: 0.25;
}

.Instructions{
    padding: 40px 16px 0px;
    font-family: monospace;
    font-size: 14px;
    color: #463765;
}

.gameBoard{
    display: flex;
    flex-direction: row;
    align-content: space-evenly;
    width: 100%;
    justify-content: space-between;
    /* position: absolute; */
}

#multipleOptions{
    border: 1px solid;
    padding: 8px;
    text-align: center;
    max-width: 280px;
    margin: -1px auto;
    border-radius: 32px;
    box-shadow: 4px 4px 0px 0px #463765;
    background: #eaf8ff;
    /* border-top-color: #eaf8ff; */
    z-index: 10000;
}

.flagOption {
    position: relative;
    margin: 0;
    text-align: center;
    font-size: 32px;
    background: #fff;
    border: 1px solid #463765;
    border-radius: 16px;
    padding: 6px 12px;
    margin-top: 4px;
    box-shadow: 2px 2px #463765;
    cursor: pointer;
}

.flagOption:active{
    left: 1px;
    top: 1px;
    box-shadow: none;
    background: #fbf7b1;
}

button.flagOption:active{
    box-shadow: inset 3px 2px 0 2px #939169;
    padding: 7px 9px 5px 15px;
    left: 1px;
    top: 1px;
}

.flagOption:focus{
    outline: none;
}


.elements{
    display: flex;
    flex-direction: column;
    /* width: calc(100vw - 30px); */
    /* min-width: 300px; */
    max-width: 360px;
    min-height: 360px;
    /* padding-top: 80px; */
    /* position: relative; */
}

#cardDeck{
    height: 200px;
    position: relative;
    /* -webkit-transform: scale(0.8); */
    -ms-transform: scale(0.8);
    /* transform: scale(0.8); */
    transition: all 3s 1s;
}

#flagNumber-1 {
    transition: all 1s 1s;
    animation: slide-up 1s ease;
}


/*Leaves a max of 5 cards on the table*/
#cardDeck div:nth-child(n+6) {
    opacity: 0;
    -webkit-transition: all 1s ease-out;  /* Chrome 1-25, Safari 3.2+ */
     -moz-transition: all 1s ease-out;  /* Firefox 4-15 */
       -o-transition: all 1s ease-out;  /* Opera 10.50–12.00 */
          transition: all 1s ease-out;  /* Chrome 26, Firefox 16+, IE 10+, Opera */
}

#flagNumber-0{
    opacity: 1 !important;
}


.flagCard.good{
    transition: all 1s;
    background-color: #caff8c;
    border-color: green;
    color: green;
}

.flagCard.wrong{
    transition: all 1s;
    background-color: #fdd2d8;
    border-color: #f44336;
    color: #f44336;
}

.grade{
    line-height: 1;
    box-sizing: border-box;
    padding: 10px 8px;
    font-size: 29px;
    border: 2px dotted;
    border-radius: 100%;
    height: 50px;
    width: 50px;
    text-align: center;
    box-shadow: 1px 1px 1px #fff;
    font-family: monospace;
    background: #ffffffa1;
}

.answer{
    padding: 6px 12px;
    color: #5300ff;
    font-family: monospace;
    font-size: 31px;
    box-sizing: border-box;
    background: #ffffff;
    border: 2px solid;
    border-radius: 5px;
    margin-top: -32px;
    margin-left: -64px;
    max-width: 288px;
}

#answer-1{
    display: none;
}

.Instructions .grade{
    display: none;
}

.flagCard {
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 26px;
    line-height: 1;
    background: rgb(249 249 249 / 90%);
    box-shadow: 0 1px 4px hsla(0,0%,0%,.25);
    margin: 16px 0 0 -10px;
    position: relative;
    width: 200px;
    height: 180px;
    background-image: -webkit-radial-gradient(#fffcc2 21%, transparent 21%),
                      -webkit-radial-gradient(hsla(0,0%,0%,.25) 21%, transparent 26%),
                      -webkit-linear-gradient(top, hsla(0,0%,0%,0) 0%, hsla(0,0%,0%,0) 95%,
                                                   hsla(180,25%,50%,.1) 95%, hsla(180,25%,50%,.1) 100%);
    background-image: -moz-radial-gradient(#e6e6e6 21%, transparent 21%),
                      -moz-radial-gradient(#e6e6e6 10%, transparent 12%),
                      -moz-linear-gradient(top, hsla(0,0%,0%,0) 0%, hsla(0,0%,0%,0) 95%,
                                                   hsla(180,25%,50%,.1) 95%, hsla(180,25%,50%,.1) 100%);
    background-image: radial-gradient(#e6e6e6 21%, transparent 21%),
                      radial-gradient(#e6e6e6 10%, transparent 12%), 
                      linear-gradient(top, hsla(0,0%,0%,0) 0%, hsla(0,0%,0%,0) 95%,
                                                   hsla(180,25%,50%,.1) 95%, hsla(180,25%,50%,.1) 100%);
    background-position: 6px 6px, 6px 5px, 50% 18px;
    background-repeat: repeat-y, repeat-y, repeat;
    background-size: 32px 32px, 32px 32px, 24px 24px;
    padding: 65px 60px 16px 64px;
    animation: slide-up 2s ease;
    transition: all 4s ease-in;
}
.flagCard:after {
    border-left: 1px solid hsla(0,75%,50%,.2);
    border-right: 1px solid hsla(0,75%,50%,.2);
    bottom: 0;
    content: '';
    left: 44px;
    position: absolute;
    top: 0;
    width: 2px;
}

#resultsSummary{
    width: 220px;
    margin: 0px auto 0;
    background: #eaf8ff;
    z-index: 10000;
    border-radius: 0 0 32px 32px;
    border: 1px solid;
    border-top: none;
    box-shadow: 4px 4px 0px 0px #463765;
    padding: 0px 2px 4px;
    box-sizing: border-box;
}

#resultsSummary p{
    margin: 0 12px;
    font-size: 12px;
    font-family: monospace;
    text-shadow: none;
    text-align: center;
    filter: none;
    background: #f1f8e9;
    border-radius: 16px;
    border: 1px solid #463765;
    padding: 0px 4px 0 6px;
    box-shadow: inset 2px 2px rgb(189 189 189 / 75%);
}

#resultsSummary p span{
    display: inline-block;
    min-width: 30px;
    text-align: left;
}

#reportCard{
    background: white;
    box-shadow: 0px -10px 20px 4px white;
    margin-bottom: 32px;
    z-index: 2;
    border-radius: 8px 8px 0 0;
}

.reportCardItem{
    font-size: 16px;
    font-family: monospace;
    /* border: 1px solid red; */
}

.failed{
    border-top: 3px solid #fa7d80;
}

.emptyTable{
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: -33px;
    border: 2px solid #fbf6b1;
    text-shadow: none;
    background: #f9f5b0;
    color: #756a00;
    font-size: 11px;
    font-family: monospace;
    padding: 7px 16px;
    box-sizing: border-box;
    text-align: center;
}


@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(-4000px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}




