@font-face {
    font-family: UCMAS;
    src: url(font/ucmaskgfont_3.ttf);
  }
  @font-face {
    font-family: ROYAL;
    src: url(font/royal.otf);
  }
body{
    margin: 0;
    padding: 0;
    background-image: url('assets/bg.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;  
    background-size: cover;
    }

.main{
    position: relative;
    height: 100vh;
    overflow: hidden;
}
.game-main{
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-image: url('assets/bg.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;  
    background-size: cover;
}

.sub-main{
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 10vh; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100vh; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    animation: enter .5s 1;
    animation-direction: reverse;
    
}

.game-panel{
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100vh; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    animation: fadein .2s 1;
    
}

.game-panel input[type=image]:hover{
    transform: scale(1.05);
}

.top{
    margin:20px;
    display: flex;
    justify-content: space-between;
}

.top img{
    max-width: 20%;
}

.logo{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10vh;
	animation: pulse 2s infinite;
}

.start{
    display: flex;
    justify-content: center;
    align-items: center;
}

.answer_box{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.answer_box input[type=text]{
    display: block;
    margin : 0 auto;
    padding:0.5vw;
    text-align: center;
    background-image: url('assets/empty.png');
    background-size: 100% 100%;
    color: #fff;
    font-weight: bold;
    font-size: 2rem;
    border: none;
    border-radius: 35px;
    margin-bottom: 10px;
}

*:focus {
    outline: none;
}
.game-start{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('assets/games-panel.png');
    background-repeat: no-repeat;
    background-attachment: fixed;  
    background-size: 90vw 90vh;
    background-position: center; 

}

.att-start{
    height: 100vh;
    background-image: url('assets/att-panel.png');
    background-repeat: no-repeat;
    background-attachment: fixed;  
    background-size: 90vw 90vh;
    background-position: center; 

}

.game-start .question{
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: UCMAS !important;
}

.game-start .f_question{
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: UCMAS !important;
}

.clsbtn{
    margin-top: 2vw;
     margin-right: 5vw;
     position:absolute;
     top:0;
     right:0;
    
}
.q_no{
    margin-top: 5vw;
    margin-left: 10vw;
    position:absolute;
    top:0;
    left:0;
    font-size: 2rem;
    color: #000;
    font-weight: bold;
    
}

.mode{
    padding-top: 10px;
    display: flex;
    align-content: center;
    justify-content: center;
}
.mode-start{
    margin-top: -6vh;
    display: flex;
    align-content: center;
    justify-content: center;
    z-index: 1;
}

.start-button{
    animation: pulse 2s infinite;
}


.mode:hover {
    transform: scale(1.05); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
  }

@keyframes pulse {
	0% {
		transform: scale(0.95);
	}

	50% {
		transform: scale(1);
	}

	100% {
		transform: scale(0.95);
	}
}

@keyframes enter {
    0%   {left: 0%; top: 0px;}
    100% {left: 100%; top: 0px;}
  }

  @keyframes fadein {
    0%   {opacity:0;}
    100% {opacity:1;}
  }

