@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&family=Gloria+Hallelujah&family=Indie+Flower&family=Lobster+Two&family=Marck+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

/* ---------Global------------- */
*{
  
  scroll-behavior: smooth;
  transition: 0.5s;
}

body,html{
  
  padding: 0;
  margin: 0;
}
ul,ol{
  margin: 0;
  padding: 0;
}

li{
  list-style-type: none;
}

p{
  text-align: initial;
}

h3{
  text-align: center;
}


body{
  background-color: #e0e5ec; 
  height: 100%;
  display: grid;
  grid-template-columns:70% 25%;
  grid-column-gap: 5%;
  grid-template-rows: 5% auto auto auto 10%;
  align-content: stretch;
  align-items: stretch;
  justify-content: stretch;
  grid-template-areas: 
    "nav nav"
    "tab aside"
    "panel aside"
    "panel aside"
    "panel aside"
    "bar aside"
}

.nav{
  grid-area: nav;
  width: 100%;
  margin: auto 1.3em;
}

nav>ul{
  display: flex;
  justify-content: space-evenly;
  width: 97vw;
  background: #e0e5ec;
  box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.6);
  border-radius: 10px;
}

nav>ul>li{
  justify-content: space-evenly;
  width: 100%;
  text-align: center;
}
a{
  font-size: 130%;
  width: 100%;
  color: #4A225D;
  text-decoration: none
}

nav li:hover{
  cursor: pointer;
  border-radius: 10px;
}

a:hover{
  color: #FFB11B;
 
}

.nav>ul>li{
  padding: 0.5%;
}

.btn{
  border: none;
  background-color: #e0e5ec;
  box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Righteous';
}

.btn:enabled:hover{
  transform:scale(1.1); 
}

.btn:active{
  box-shadow: inset 7px 7px 15px rgba(55, 84, 170, 0.15), inset -7px -7px 20px white, 0px 0px 4px rgba(255, 255, 255, 0.2);
}

.btn:disabled{
  box-shadow: inset 3px 3px 7px rgba(136, 165, 191, 0.48), inset -3px -3px 7px #FFFFFF;
  border-radius: 10px;
}

.btn-select-role{
  background-color: #e0e5ec;
  padding: 2%;
  border-radius: .4rem;
  border: 0.3rem solid #000;
  background: #fff;
  box-shadow: 0 3px 0 0 #000;
}

.btn-select-role:hover{
  transform:scale(1.1);
}


.btn-select-role:disabled:hover{
   transform:scale(1.0);
}
.read-toggle:before{
  content: "<<<";
}
.read-toggle{
  color: #C18A26;
  width: 25%;
  cursor: pointer;
  position: relative;
}

.read-toggle:before{
  content: '';
  height: 3px;
  width: 100%;
  top: 50%;
  background: #16151b;
  position: absolute;
  animation: out 0.2s cubic-bezier(1, 0, 0.58, 0.97) 1 both;
}

.read-toggle:hover:before{
  animation: in 0.2s cubic-bezier(1, 0, 0.58, 0.97) 1 both;
}


#game-next{
  width: 10em;
  padding: 5%;
}

#role-choice{
  text-align: center;
}

#game-tab{
  background-color: #e0e5ec;
  box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  grid-area: tab;
  display: flex;
  margin: 1em 1em 1em 4em;
}

.tab-item{
  padding: 1%;
  margin: auto;
}

.tab-item>.btn-tab{
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  display: inline-block;
  cursor: pointer; 
}

.tab-item input{
  display: none;
}

.tab-item input:checked~label{
  color: red;
}

.aside-article{
  overflow: auto;
  margin: auto;
}

.swiper-container{
  line-height: 1.5em;
  padding: 1%;
  height: 40em;
  overflow: auto;
  background-color: #e0e5ec;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: auto auto 3% 2%;
  width: 100%;
  grid-area: panel; 
  box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.5);
}
.rule-title, .rule-list{
  text-align: center;
  line-height: 1.5em;
}

.swiper-slide{
  width: 100% !important;
}

.rule-list{
  width: 50%;
  margin: auto;
  font-size: 200%;
  font-family: 'Dancing Script';
}



#game-bar{
  display: flex;
  grid-area: bar;
  justify-content: space-evenly;
  margin: auto;
}

.role-background{
  text-align: center;
}

.role-avatar-container{
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: center;
  justify-content: center;
  margin: auto;
  background-color: #e0e5ec;
  box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

.role-list-item{
  position: relative;
  text-align: center;
  cursor: pointer;
  padding: 1%;
}

.role-avatar-container{
  width: 90%;
}

.role-list-item:hover{
  box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  width: 30%;
}

.role-selected{
  box-shadow: inset 3px 3px 7px rgba(136, 165, 191, 0.48), inset -3px -3px 7px #FFFFFF;
  border-radius: 10px;
  width: 30%;
}

.role-detail{
  margin: 3% auto;
  width: 300px;
  box-shadow: inset 3px 3px 7px rgba(136, 165, 191, 0.48), inset -3px -3px 7px #FFFFFF;
  border-radius: 10px;
  
}

.role-name{
  border-bottom: 7px solid rgba(251, 226, 81, 0.8);
  width: 20%;
  margin: auto;
}

.role-background{
  border-top: 1px solid;
  border-bottom: 1px solid;
  padding: 1%;
  margin: 4% auto;
  width: 80%;
}

.btn-select-role{
  margin: 2%;
}

/*---------plot----------*/
.plot-title{
  border-top: 2px solid #2B5F75;
  padding: 3%;
  width: 90%;
  margin: 1em auto;
}

.plot-content-container{
  margin: 2%;
}

.search-container{
  display: grid;
  grid-template-columns:30% 60%;
  grid-column-gap: 5%;
  align-content: stretch;
  align-items: stretch;
  justify-content: stretch;
  grid-template-areas: 
    "title title"
    "tab content"
}

.search-title{
  grid-area: title;
}

.search-list-container{
  grid-area: tab;
}

.search-content-container{
  opacity: 0;
  -webkit-transform: translateX(50px);
          transform: translateX(50px);
 
  list-style: none;
  -webkit-transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
  grid-area: content;
  overflow: auto;
}

.search-content-container.select{
  -webkit-transition-delay: .3s;
          transition-delay: .3s;
  z-index: 2;
  opacity: 1;
  -webkit-transform: translateX(0px);
          transform: translateX(0px);
  box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

.search-list-item{
  padding: 15px 20px 15px 40px;
  margin-bottom: 10px;
  color: #303F9F;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  font-weight: 700;
  -webkit-transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.new:before{
  content: 'New';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 60%;
  color: red;
}

.search-list-item.select{
  color: #FFC408;
}

.search-list-item:hover{
  box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.5);
}

.search-content-container.select>.search-content-item{
  margin: 1%;
  padding: 1%;
  text-align: center;
}

.search-content-item{
  cursor: pointer;
  border-radius: .4rem;
  border: 0.3rem solid #000;
  background: #fff;
  box-shadow: 0 3px 0 0 #000;
}

#game-timer{
  margin: 1em 5em;
  width: 100px;
  text-align: center;
  padding: 3%;
  box-shadow: inset 3px 3px 7px rgba(136, 165, 191, 0.48), inset -3px -3px 7px #FFFFFF;
  font-family: 'Righteous';
}

.vote-status-item>img{
  display: block;
  margin: auto;
}

.vote-container{
  text-align: center;
  line-height: 2em;
}

.role-status{
  color: #E98B2A;
}

.vote-instruction{
  text-align: center;
  box-shadow: inset 3px 3px 7px rgba(136, 165, 191, 0.48), inset -3px -3px 7px #FFFFFF;
  border-radius: 10px;
  width: 60%;
  display: block;
  margin: auto;
  padding:1%;
}

.warning{
  color: #E98B2A;
}

.success{
  color: #227D51;
}

/* -------truth--------- */
.truth-container{
  margin: auto 1em;
}

.truth-content{
  font-family: 'Gloria Hallelujah', cursive;
  margin: 1%;
  padding: 1%;
}

.result-score{
  font-size: 200%;
  border-radius: 20px;
  display: block;
  margin: auto;
  width: 90%;
  text-align: center;
  box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.5);
  padding: 1%;
}

.result-time{
  font-size: 150%;
  text-align: center;
}
.result-time>i{
  color: purple;
}

.C{
  color: red;
}

.B{
  color: #DDA52D;
}

.A{
  color: green;
}

/* -------aside-------- */

aside{
  grid-area: aside;
  border-radius: 5px;
  line-height: 1.5em;
  height: 48em;
  margin: 1em auto;
  box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.5);
  width: 100%;
}

.aside-article{
  overflow: auto;
  height: 80%;
  padding: 2%;
  border: 1px solid;
  border-radius: 30px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 2px solid;
  border-radius: 0px;
}

.panel{
  width: 80%;
  margin: 1em auto;
  text-align: center;
  
}

.panel>h2{
  margin: 0;
  padding: 3%;
}

.panel>.btn{
  width: 40%;
  margin: 2%;
  padding: 1%;
}

.toggle-instruction{
  padding: 2%;
  margin: 1em auto;
  display: block;
}

h3.question-title, .task{
  border-top: 1px gray solid;
}


.choice-group{
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.question-label{
  cursor: pointer;
  position: relative;
}

.question-label:before{
  content: '';
  height: 3px;
  width: 100%;
  top: 100%;
  background: #16151b;
  position: absolute;
  animation: out 0.2s cubic-bezier(1, 0, 0.58, 0.97) 1 both;
}

.question-label:hover:before{
  animation: in 0.2s cubic-bezier(1, 0, 0.58, 0.97) 1 both;
  opacity: 0.5;
}

.question-item input:checked~label:before{
  animation: in 0.2s cubic-bezier(1, 0, 0.58, 0.97) 1 both;
}
.question-rad{
  display: none;
}

.question-item input:checked~label{
  color: red;
}

.btn-close{
  color: red;
  cursor: pointer;
  position: relative;
}

.btn-close:before{
  content: '';
  height: 3px;
  width: 100%;
  top: 50%;
  background: #16151b;
  position: absolute;
  animation: out 0.2s cubic-bezier(1, 0, 0.58, 0.97) 1 both;
}

.btn-close:hover:before{
  animation: in 0.2s cubic-bezier(1, 0, 0.58, 0.97) 1 both;
}

.btn-submit{
  display: block;
  margin: 1em auto;
  padding: 3%;
  width: 250px;
}

.btn-submit:hover{
  transform: none;
}

@keyframes in {
  0% {
    width: 0;
    left: 0;
    right: auto;
  }
  100% {
    left: 0;
    right: auto;
    width: 100%;
  }
}
@keyframes out {
  0% {
    width: 100%;
    left: auto;
    right: 0;
  }
  100% {
    width: 0;
    left: auto;
    right: 0;
  }
}
@keyframes show {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width:720px){

  body{
    background-color: #e0e5ec; 
    height: 100%;
    display: grid;
    grid-template-columns:70% 25%;
    grid-column-gap: 5%;
    grid-template-areas: 
      "nav nav"
      "tab tab"
      "panel panel"
      "panel panel"
      "bar bar"
      "aside aside"
      "aside aside"
  } 
  
  .nav{
    grid-area: nav;
    width: 100%;
    margin: auto 1.3em;
  }
  
  .nav>ul{
    display: grid;
  }
  
  #game-tab{
    grid-area: tab;
    display: grid;
    margin: 1em;
    box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.5);
    border-radius: 10px;
  }
  
  .tab-item{
    text-align: center;
  }
  
  aside{
    grid-area: aside;
    height: 500px;
  }
  
  .swiper-container{
    grid-area:panel;
    display: block;
    margin: auto;
  }
  
  #game-bar{
    grid-area: bar;
  }
  
  
  
}

