/* VARIABLES */

:root {
  --green: #35a600;
  --red: #fd000b;
  --blue: #0091cf;
  --orange: #f87e26;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
}


/* ----------- INSTRUCTIONS --------- */
.instructions-div{
  position: relative; 
  z-index: 1;
}

.instructions{
  position: absolute;
  left: 92%;
  margin-top: 3% ;
}

.burgerIcon{
  width: 30px;
  height: 3px;
  background-color: #faf8f9;
  margin: 6px 0;
  border-radius: 5px;
}

#btn-instructions:hover > .burgerIcon{
  background-color: #00c6e5;
}

#btn-instructions:hover  {
  cursor: pointer;
}

#instructions-logo{
  width: 30%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  top: -35%;
}

#instructions-close{
  display: block;
  margin: 2% 5% 0 auto;
}

.instructions-icon{
  width: 2%;
}

.instructions-para{
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1px;
  text-align: center;
  margin: 2% 0 0 0 ;
}


 /* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: white; /* Fallback color */
  background-color: rgba(0,0,0, 0); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: white;
  border-radius: 30px;
  border-style: none;
  margin: 3% auto 2% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 90%; /* Could be more or less, depending on screen size */
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The Close Button */
.close {
  color: black;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #fe6054;
  text-decoration: none;
  cursor: pointer;
} 






/* ----------- SWITCH --------- */


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

body, button{
  font-family: "Poppins", sans-serif;
}


button:focus {
  outline: none;
  box-shadow: none;
}

/* Background */

#body-background {
  position: absolute;
}

#body {
  position: relative;

  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

.body-box-background {
  /* class: flex-center */
  height: 100vh;
  width: 100vw;
  /* border: 10px solid white; */
  border-radius: 23px;
  overflow: hidden;
}

.body-box-background .circle {
  background-color: #faf8f9;
  border-radius: 50%;
  height: 875px;
  width: 875px;
  z-index: -1;
}

.body-box-background .background {
  display: flex;
  flex-direction: row;
  position: absolute;
  max-width: 100vw;
  max-height: 100vh;
}

.body-box-background .background .bg-red {
  background-color: #fe6054;
  border-radius: 0 25px 25px 0;
  height: 100vh;
  width: 50vw;
  z-index: -2;
}

.body-box-background .background .bg-blue {
  background-color: #00c6e5;
  border-radius: 25px 0 0 25px;
  height: 100vh;
  width: 50vw;
  z-index: -2;
}

/* Nintendo Switch */

.body-box .switch {
  display: flex;
  flex-direction: row;
}

/* Left Controller */

.body-box .switch .controller-left {
  background-color: #00c6e5;
  border-radius: 75px 0 0 75px;
  height: 350px;
  width: 120px;
  position: relative;
}

.body-box .switch .controller-left .minus {
  background-color: #4d4d4d;
  top: 35px;
  right: 20px;

  height: 6px;
  width: 20px;
  position: absolute;
}

.body-box .switch .controller-left .trigger {
  background-color: #4d4d4d;
  border-radius: 50%;
  top: 70px;
  left: 32.5px;

  height: 55px;
  width: 55px;
  position: absolute;
}

.body-box .switch .controller-left .trigger .trigger-2 {
  background-color: #4d4d4d;
  border: 3px solid #00c6e5;
  border-radius: 50%;
  top: 4.7px;
  left: 4.7px;

  height: 40px;
  width: 40px;
  position: absolute;
}

.body-box .switch .controller-left .four-arrow-buttons {
  /* class: flex-center */
}

.body-box .switch .controller-left .btn {
  background-color: #4d4d4d;
  border-style: none;
  border-radius: 50%;
  color: #343132;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  height: 25px;
  width: 25px;
}

.body-box .switch .controller-left .arrow-up {
  top: 150px;
  left: 47.5px;
  position: absolute;
}

.body-box .switch .controller-left .arrow-right {
  top: 175px;
  left: 75px;
  position: absolute;
}

.body-box .switch .controller-left .arrow-down {
  top: 200px;
  left: 47.5px;
  position: absolute;
}

.body-box .switch .controller-left .arrow-left {
  top: 175px;
  left: 20px;
  position: absolute;
}

.body-box .switch .controller-left .square {
  background-color: #4d4d4d;
  border-radius: 3px;
  color: #343132;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  height: 20px;
  width: 20px;

  top: 245px;
  left: 77.5px;
  position: absolute;
}

/* Console */

.body-box .switch .console {
  position: relative;
}

.body-box .switch .console .curves:nth-child(1) {
  background-color: #faf8f9;
  border-radius: 0 0 35px 0;

  top: -1px;
  left: 0px;
  height: 20px;
  width: 20px;
  position: absolute;
}

.body-box .switch .console .curves:nth-child(2) {
  background-color: #faf8f9;
  border-radius: 0 0 0 35px;

  top: -1px;
  right: 0px;
  height: 20px;
  width: 20px;
  position: absolute;
}

.body-box .switch .console .frame {
  /* class: flex-center */
  background-color: #4d4d4d;
  height: 350px;
  width: 575px;
  margin: 0 3px 0 3px;
}

.body-box .switch .console .frame .margin {
  /* class: flex-center */
  background-color: #343132;
  border-radius: 10px;
  height: 315px;
  width: 540px;
}

.body-box .switch .console .frame .margin .screen {
  /* class: flex-center */
  flex-direction: column;
  justify-content: space-around;
  background-color: #faf8f9;
  height: 280px;
  width: 505px;
}

.body-box .switch .console .frame .margin .screen img {
  margin-top: 10px;
  width: 385px;
}

.body-box .switch .console .frame .margin .screen button {
  background-color: #ed1b24;
  border-style: none;
  border-radius: 15px;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 500;

  height: 55px;
  width: 225px;
  margin-bottom: 10px;
}

button.restart-button {
  position: absolute;

  font-size: 18px !important;
  height: 40px !important;
  width: 130px !important;
  left: 60px !important;
  bottom: 40px !important;
}

/* Right Controller */

.body-box .switch .controller-right {
  background-color: #fe6054;
  border-radius: 0 75px 75px 0;
  height: 350px;
  width: 120px;
  position: relative;
}

.body-box .switch .controller-right .plus {
  background-color: #4d4d4d;
  top: 35px;
  left: 20px;

  height: 6px;
  width: 20px;
  position: absolute;
}

.body-box .switch .controller-right .plus-plus {
  background-color: #4d4d4d;
  top: -7px;
  left: 7px;

  height: 20px;
  width: 6px;
  position: absolute;
}

.body-box .switch .controller-right .trigger {
  background-color: #4d4d4d;
  border-radius: 50%;
  top: 170px;
  left: 32.5px;

  height: 55px;
  width: 55px;
  position: absolute;
}

.body-box .switch .controller-right .trigger .trigger-2 {
  background-color: #4d4d4d;
  border: 3px solid #fe6054;
  border-radius: 50%;
  top: 4.7px;
  left: 4.7px;

  height: 40px;
  width: 40px;
  position: absolute;
}

.body-box .switch .controller-right .four-letter-buttons {
  /* class: flex-center */
}

.body-box .switch .controller-right .btn {
  background-color: #4d4d4d;
  border-style: none;
  border-radius: 50%;
  color: #faf8f9;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  height: 25px;
  width: 25px;
}

.body-box .switch .controller-right .letterX {
  top: 65px;
  left: 47.5px;
  position: absolute;
}

.body-box .switch .controller-right .letterA {
  top: 90px;
  left: 75px;
  position: absolute;
}

.body-box .switch .controller-right .letterB {
  top: 115px;
  left: 47.5px;
  position: absolute;
}

.body-box .switch .controller-right .letterY {
  top: 90px;
  left: 20px;
  position: absolute;
}

.body-box .switch .controller-right .btn:hover {
  background-color: #343132;
  cursor: pointer;
}

.body-box .switch .controller-right .mini-circle {
  background-color: #4d4d4d;
  border-radius: 20px;
  color: #343132;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  height: 20px;
  width: 20px;

  top: 245px;
  right: 77.5px;
  position: absolute;
}

#action-btn-1,
#action-btn-2,
#action-btn-3,
#action-btn-4 {
  height: 20px;
  width: 20px;
  font-size: 15px;
  /* background-color: rgb(0, 0, 0); */
  /* background: url('/imgs/berry.png') no-repeat top left; */
}
#action-btn-1:hover,
#action-btn-2:hover,
#action-btn-3:hover,
#action-btn-4:hover {
  animation: shake 0.5s;
}

.timer {
  color: #fff;
  font-size: 12px;
  font-weight: 600;

  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: center;
  text-align: center;
  transform: translate(-180px, 40px);
}
.age {
  color: #3d3d3d;
  font-size: 12px;
  font-weight: 700;
  padding-left: 5px;

  position: fixed;
  display: none;
  transform: translate(-20px, 0px);
}

#clock {
  color: #fff;
  font-size: 12px;
  font-weight: 600;

  position: fixed;
  /* text-align: center; */
  top: 0;
  right: 30px;
  margin-left: auto;
  margin-right: auto;
  transform: translate(-160px, 40px);
}


/* ----------- Properties Bars */

#stats-all-div {
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);

  display: inline-block;
  margin-left: auto;
  padding: 1% 3% 4% 7%;
  height: 215px;
  width: 220px;
}

.statsName-Para {
  color: #3d3d3d;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  width: 100px;
  padding: 12px 0 8px 0;
  margin: 0px 0px 0px auto;
}

.barBox-div {
  display: block;
  text-align: right;
  height: 17px;
  width: 200px;
  margin-right: 0;
  margin-left: auto;
}

.bar-div {
  border-radius: 12px;
  display: inline-block;
  min-width: 95%;
  min-height: 20px;
}

@keyframes btnpressed {
  0% {
    background-color: #4d4d4d;
  }
  50% {
    background-color: #343132;
  }
  100% {
    background-color: #4d4d4d;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10%,
  90% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20%,
  80% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30%,
  70% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40%,
  60% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
}

@keyframes hurting {
  0%,
  100% {
    transform: translate(1px, 1px) rotate(0deg);
    background-color: #ffffff00;
  }
  10%,
  90% {
    transform: translate(-1px, -2px) rotate(-1deg);
    background: radial-gradient(#ff0000, #ffffff00, #ffffff00);
  }
  20%,
  80% {
    transform: translate(-3px, 0px) rotate(1deg);
    background-color: #ffffff00;
  }
  30%,
  70% {
    transform: translate(3px, 2px) rotate(0deg);
    background: radial-gradient(#ff0000, #ffffff00, #ffffff00);
  }
  40%,
  60% {
    transform: translate(1px, -1px) rotate(1deg);
    background-color: #ffffff00;
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
    background: radial-gradient(#ff0000, #ffffff00, #ffffff00);
  }
}

/* ----------- Image */
/*
#image-container{
  display: flex;
  flex-direction: column;
  max-height: 100%;
}*/

#image-div {
  width: 200px;
  display: flex;
  position: relative;
  align-items: flex-start;
}

#image-ID {
  position: absolute;
  bottom: 0;
  margin-top: 0;
  max-height: 75%;
}

.image-mood{
  max-width: 15%;
  margin-left: auto;
  margin-right: auto;
  padding: 4% 0 0 0;
}

#div-screen {
  display: flex;
  margin-top: 5%;
}

#btn-flex-container {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  transform: translate(35px, 5px);
}
.selectiondiv{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
#selection-btn-2, #selection-btn-1, #selection-btn-3,  #selection-btn-4{
  width: 100px;
  transform: translateY(-20px);
}
#selection-btn-2:hover, #selection-btn-1:hover, #selection-btn-3:hover, #selection-btn-4:hover{
  transform: translateY(-60px) scale(2);
}
#soundimg{
position: fixed;
right: 0;
transform: scale(0.1) translate(150px,1200px);
}

@media screen and (orientation:landscape) { 

}
@media screen and (orientation:portrait) {
  body{
    background: url(./imgs/Gameboy.svg);
    
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: left;
    background-size: 100vw;
    background-color: #0091cf;
    /* background-size: calc(100% - 100px); */
  }
  .background{
    display: none;
    

  }
  .bg-blue{
    display: none;
  }
  .bg-red{
    display: none;
  }
  .circle{
    display: none;
  }
  .controller-left{
    display: none;
  }
  .controller-right{
    display: none;
  }
  .switch{
    display: none;
  }
  .frame, .frame2{
    transform: translate(0px, calc(100vw - 550px)) scale(0.8);
    /* background-color: #0091cf; */
    width: 100vw;
  }
  .curves{
    display: none;
  }
  .console{
    /* display: none; */
    scale: 0.5;
  }
  }
  /* media queries for phone to make compatible with phones */
  

