@import url('https://fonts.cdnfonts.com/css/rangile');
@import url('https://fonts.cdnfonts.com/css/perandory');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body
{
  background-color: #37312F;
}

main 
{
  display: flex;
  flex-direction: column;
}
header
{
  display: flex;
  flex-direction: column;
  background-color: #37312F;
  align-content: space-between;
  justify-content: space-between;
  height: 80px;
}

header img
{
  width: 70px;
  margin: 15 40 10 60;
}

#naviheader
{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  width: 100vw;
}

nav ul
{
  display: flex;
  list-style: none;
  font-family: "Quicksand", sans-serif;
  padding-right: 60px;
}

nav ul li a 
{
  color: #EFE9E7;
  text-decoration: none;
  padding-left: 30px;
}

nav label 
{
    text-align: right;
    display: none;
    padding: 0.5em;
    line-height: 1.6em;
    align-self: center;
}

nav input[type='checkbox'], nav label {
    display: none;
}

nav ul li a:hover
{
  color: #D02536;
}

nav ul li a:active
{
  color: #FF1F3D;
}

#bar 
{
  background-color: #706E60;
  height: 3px;
  width: 100%;
}

.footer
{
  background-color: #37312F;
  max-width: 100%;
  width: 100%;
  height: 30px;
  position: fixed;
  bottom: 0;
  margin: 0;
  z-index: 7;
}

.footer p
{
  text-align: center;
  color: #706E60;
  padding-bottom: 6px;
  padding-top: 6px;
  font-family: "Quicksand", sans-serif;
  font-size: 10px;
}

                                      /*header and footer end here*/

main 
{
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  width: 60vw;
  margin: 10 auto;
}

#container
{
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
}

#stage
{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
}

#time-loc 
{
  color: #EFE9E7;
  text-align: right;
  width: 100%;
  padding-left: 220px;
  font-family: "Quicksand", sans-serif;
  font-size: 12px;
  margin: 6 8 4 2;
}

#time-loc p
{
  display: inline-block;
}

#bg 
{
  margin: 0 auto;
  width: auto;
  height: 70vmin;
}

#bgchange
{
  width: 60vmax;
  max-width: 600px;
  height: 80%;

  object-fit: cover;
  margin: 0 auto;
}

                                                  /* CHARACTERS */

#chars 
{
  display: flex;
  justify-content: center;
  width: 60vmax;
  max-width: 600px;
  height: 61.5vmin;
  z-index: 2;
  position: fixed;
  align-items: flex-end;
  overflow: hidden;
}

#chars img
{
  object-fit: contain;
  opacity: 0;
}

#slot-1 
{
  height: 90%;
  width: auto;
  min-height: 160px;
  max-height: 95vmax;
}

#slot-2
{
  height: 90%;
  width: auto;
  min-height: 160px;
  max-height: 95vmax;
  max-width: 60vmin;
}

#slot-3
{
  height: 90%;
  width: auto;
  min-height: 160px;
  max-height: 95vmax;
}

                                                  /* DIALOGUE BOX*/

#dialog
{
  margin-top: 310px;
  z-index: 4;
  transform: translate(0px,10px,);
  position: fixed;
}

#name
{
  display: inline-block;
  background-color: #EFE9E7;
  text-align: center;
  color: #706E60;
  padding: 4 13 1;
  margin: 4 4;
  border-radius: 6px;
  font-family: "Perandory", serif;
  font-size: 22px;
  letter-spacing: 1px;
  border: 0.5px solid;
}

#textbox
{
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border-style: double;
  border-color: #706E60;
  border-radius: 8px;
  border-width: 7px;
  background-color: rgba(55, 49, 47, 0.87);

  height: 180;
  width: 43vmax;
  min-width: 90vmin;
  padding: 7;
}

#talking
{
  font-family: "Quicksand", sans-serif;
  font-size: 100%;
  color: #EFE9E7;
  margin: 10 25;
}

#options
{
  display: flex;
  margin: 10 25;
  justify-content: space-between;
}

#optionsA
{
  display: flex;
  justify-content: flex-start;
}

#skip
{
  margin-right: 5;

  background-color: rgba(0, 0, 0, 0.0);
  border: none;
  border-radius: 5px;
  padding: 4 10 0;
  cursor: pointer;

  font-family: "Perandory", serif;
  letter-spacing: 1;
  font-size: 24;
  color: #706E60;
}

#skip:hover
{
  background-color: #706E60;
  color: #EFE9E7;
}

#skip:active
{
  background-color: #D02536;
  color: #EFE9E7;
}

#pauseplay
{
  display:none
}    

.my-div
{
  color: #706E60;
  font-size: 20px;
  margin: 0 7;
  cursor: pointer;
  padding: 0 4 3 4;
  border-radius: 5px;
} 

#pauseplay:hover ~ label 
.my-div
{
  background-color: #706E60;
  color: #EFE9E7;
}

#pauseplay:checked ~ label 
.my-div
{
  background-color: #D02536;
  color: #EFE9E7;
}

#slider1
{
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  background: #EFE9E7;
  opacity: 0.4;
  -webkit-transition: .2s;
  transition: opacity .2s;
  border-radius: 7px;
  margin: 8 0 8;
}

#slider1::-webkit-slider-thumb 
{
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 14px;
  background: #706E60;
  cursor: pointer;
}

#slider1::-moz-range-thumb 
{
  width: 17px; 
  height: 14px;
  background: #706E60;
  cursor: pointer; 
}

#slider1:hover 
{
  opacity: 1;
}

#next
{
  width: 40px;
  cursor: pointer;
}

#next:hover
{
  content: url(../icons/next-hover.svg);
}

#next:active
{
  content: url(../icons/next-active.svg);
}

#choice-overlay
{
  display: none;
  background-color: rgba(55, 49, 47, 0.65);
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

#choice-inner
{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 95vw;
  min-width: 100vmax;
  top: 40%;
  left: 50%;
  position: absolute;
  transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
}

.choicebtn
{
  display: block;
  border-radius: 5px;
  border: none;
  color: #EFE9E7;
  background-color: #706E60;
  font-family: "Rangile", serif;
  letter-spacing: 1px;
  font-size: 111%;
  width: 15%;
  margin: 5px;
  padding: 6 10;
  border: 0.5px solid;
  cursor: pointer;
}

.choicebtn:hover
{
  background-color: #D02536;
}

.choicebtn:active
{
  background-color: #EFE9E7;
  color: #FF1F3D;
}

#boxesending, #missionending, #sparending
{
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.7);
  z-index: 5;
}

#endingcase
{
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
}

#endingcase img
{
  height: 60vmin;
  margin-bottom: 10px;
}

#endingcase h3
{
  font-family: "Perandory", serif;
  font-size: 175%;
  color: #FF1F3D;
  letter-spacing: 1px;
}

#endingcase p
{
  font-family: "Quicksand", sans-serif;
  font-size: 85%;
  color: #EFE9E7;
}

#backtohome
{
  display: block;
  border-radius: 5px;
  border: none;
  color: #EFE9E7;
  background-color: #706E60;
  font-family: "Rangile", serif;
  letter-spacing: 1px;
  font-size: 111%;
  min-width: 27vw;
  margin: 10 ;
  padding: 6 10 4;
  border: 0.5px solid;
  cursor: pointer;
}

#backtohome:hover
{
  background-color: #D02536;
}

#backtohome:active
{
  background-color: #EFE9E7;
  color: #FF1F3D;
}

#endingcase a 
{
  text-decoration: none;
}