@import url('https://fonts.googleapis.com/css2?family=Kanit&family=Oswald&display=swap');
*{
    box-sizing: border-box;
}
body{
    margin: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Oswald', sans-serif;
    }
.content{
    background-image:linear-gradient(#0000, #0009), url(land2.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    justify-content: center;
    margin: auto;
    }
#ques{
    background-image: linear-gradient(#0000,#0000, #0009), url(ques.jpg);
    display: flex;
    align-items: end;
    justify-content: center;
}
#ques[data-dark="1"]{
    background-image: linear-gradient(#0005, #0009),url(res.jpg);
}
.cen{
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    letter-spacing: 3px;
}
h1{
    font-size: 5rem;
    margin-bottom: 0;
    color: rgb(255, 255, 255);
    /* text-shadow: 0 0 5px black; */
}
h2{
    margin-top: 0;
    color: rgba(255, 255, 255, 0.589);
}
button{
    background-color:rgba(255, 255, 255, 0.769);
    color: black;
    padding: .5rem 3rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    letter-spacing: 3px;
    transition: all .2s ease-in-out;
    margin: 5rem auto 0 auto;
    font-family: 'Oswald', sans-serif;
}
button:hover{
    transform: rotate(5deg);
    background-color: rgba(0, 0, 0, 0.602);
    color: white;
}

.special-con[data-select="1"]{
    width: 100%;
    justify-content: center;
    margin: auto ;
    margin-bottom: 3rem;
    max-width: 1024px;
    letter-spacing: normal;

    display: grid;
    grid-template-columns: 2fr 2fr;
    grid-template-rows: 1fr .5fr .5fr;
    gap: 1rem;
}
.text-box{
    font-family: 'kanit', sans-serif;
    color: white;
    padding: 1rem;
    border: 0.5px solid white;
    border-radius: 15px;
    /* position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -80%); */
}
.ques{
    grid-column: 1/span 2;
}
.choice{
    transition: all .2s ease-in-out;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.497);
    color: white;
}
.choice:hover{
    transform: rotate(2deg);
    background-color: rgba(255, 255, 255, 0.602);
    color: rgb(0, 0, 0);
}
a{
    text-decoration: none;
}

#res{
    font-family: 'kanit', sans-serif;
    letter-spacing: normal;
    max-width: 720px;
    width: 100%;
    margin: auto;
}
.res[data-select="0"]{
    display: none;
}
.res[data-select="1"]{
    display: block;
}
.special-con[data-select="0"]{
    display: none;
}

.type {
    font-family: monospace;
    color:#0000;
    background:
      linear-gradient(-90deg,#ffffff 5px,#0000 0) 10px 0,
      linear-gradient(#ffffff 0 0) 0 0;
    background-size:calc(var(--n)*1ch) 200%;
    -webkit-background-clip:padding-box,text;
    background-clip:padding-box,text;
    background-repeat:no-repeat;
    animation: 
      b .7s infinite steps(1),   
      t calc(var(--n)*.1s) steps(var(--n)) forwards;
  }
  @keyframes t{
    from {background-size:0 200%}
  }
  @keyframes b{
    50% {background-position:0 -100%,0 0}
  }

  #bres{
    animation: 5s ease 0s normal forwards 1 fadein;
  }

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

.time {
    width: 2rem;
    height: 2rem;
	border-radius: 50%;
    background: rgba(255, 255, 255, 0.602);
	margin: auto;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    grid-column: 1/span 2;
}

span {
	display: block;
	margin: auto;
	text-align: center;
	font-size: 1rem;
}

@media screen and (max-width: 800px) {
    button{
        padding: .2rem 2rem;
        font-size: .7rem;
    }
    .special-con[data-select="1"]{
        display: block;
        font-size: .8rem;
        width: 90%;
        margin-bottom: 50px;
    }
    .cen{
        color: white;
        text-align: center;
    }
    .text-box{
        margin-bottom: .5rem;
    }
    .choice{
        background-color: rgba(255, 255, 255, 0.602);
        color: black;
        border: none;
        padding: .3rem;
        text-align: center;
    }
    h1{
        font-size: 1.5rem;
    }
    h2{
        font-size: 1rem;
    }
    .ques{
        padding: .5rem 1rem;
    }
    .result{
        font-size: .8rem;
    }
    #res{
        padding: 0 2rem 0 2rem;
    }
}