@media screen and (max-width: 530px){
* 
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body
{
  background-color: #37312F;
}

main 
{
  display: flex;
  flex-direction: column;
  width: 100vw;
}

header
{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  z-index: 5;
}

header img
{
  width: 70px;
  margin: 15 40 10 30;
}

#naviheader
{
  display: flex;
  width: 100vw;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #37312F;
  padding-top: 8px;
  z-index: 5;
}

nav 
{
  display: flex;
  flex-direction: column;
}

nav ul
{
  display: block;
  list-style-type: none;
  text-align: right;
  align-self: end;
  margin-bottom: 5px;
  margin-top: -12px;
  padding-right: 30px;
}

nav ul:last-child
{
  width: 100%;
  flex-basis: 100%;
}

nav ul li
{
  margin: 10px;
}

nav ul li a 
{
  color: #EFE9E7;
  text-decoration: none;
  font-size: 15px;

  margin: 5;
  text-align: right;
  padding: 2px;
}

input[type='checkbox']:not(:checked)+ul 
{
    display: none;
}

nav input[type='checkbox'], nav label {
    display: none;
}

nav label 
{
    display: block;
    align-self: end;
}

nav label img
{
  width: 20px;
  height: auto;
  display: block;
}

nav ul li a:hover
{
  color: #D02536;
}

nav ul li a:active
{
  color: #FF1F3D;
}

#bar 
{
  background-color: #706E60;
  height: 3px;
  width: 100vw;
}

.footer
{
  background-color: #37312F;
  max-width: 100%;
  width: 100%;
  height: 30px;
  position: fixed;
  bottom: 0;
  margin: 0;
}

.footer p
{
  text-align: center;
  color: #706E60;
  padding-bottom: 6px;
  padding-top: 6px;
  font-family: "Quicksand", sans-serif;
  font-size: 10px;
}
}

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


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;
  width: 90vw;
}

#stage
{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
}

#time-loc 
{
  color: #EFE9E7;
  text-align: right;
  width: 100%;
  padding-left: 100px;
  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: 50vmax;
  max-width: 600px;
  height: 80%;

  object-fit: cover;
  margin: 0 auto;
}

                                                  /* CHARACTERS */

#chars 
{
  display: flex;
  justify-content: center;
  width: 50vmax;
  max-width: 600px;
  height: 63vmin;
  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: 240px;
  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: 5;
}

#talking
{
  font-family: "Quicksand", sans-serif;
  font-size: 80%;
  color: #EFE9E7;
  margin: 10 25;
}

#options
{
  display: flex;
  margin: 10 10;
  justify-content: space-between;
}

#optionsA
{
  display: flex;
  justify-content: flex-start;
}

#skip
{
  margin-right: 9;

  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;
  width: 100px;
}

#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: 35%;
  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: 25%;
  margin: 5px;
  padding: 6 10;
  border: 0.5px solid;
}

.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: 150%;
  color: #FF1F3D;
  letter-spacing: 1px;
}

#endingcase p
{
  font-family: "Quicksand", sans-serif;
  font-size: 70%;
  color: #EFE9E7;
}

#backtohome
{
  display: block;
  border-radius: 5px;
  border: none;
  color: #EFE9E7;
  background-color: #706E60;
  font-family: "Rangile", serif;
  letter-spacing: 1px;
  font-size: 77%;
  width: 15vmax;
  margin: 20 0 ;
  padding: 6 10 4;
  border: 0.5px solid;
}

#backtohome:hover
{
  background-color: #D02536;
}

#backtohome:active
{
  background-color: #EFE9E7;
  color: #FF1F3D;
}

#endingcase a 
{
  text-decoration: none;
}
}