@font-face {
  font-family: "rioGrande";
  src: url("./assets/fonts/rio_grande_striped.ttf");
}


@font-face {
  font-family: "salsa";
  src: url("./assets/fonts/Salsa-Regular.ttf");
}


body {
  background-image: radial-gradient(circle, rgba(245, 182, 95, 0.8), rgba(225, 147, 68, 0.8), rgba(205, 112, 44, 0.8), rgba(183, 76, 25, 0.8), rgba(160, 34, 10, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  overflow-y: hidden;
  height: 100vh;
  background-repeat: no-repeat;
  align-items: center;
  margin: 0;
}


h1 {
  font-size: 50px;
  color: #A0220A;
  font-family: "rioGrande";
  margin-top: 0;
  margin-bottom: 12px;
}


.loco-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}


canvas {
  background-color: black;
  position: relative;
  display: flex;
}


.canvas-container {
  position: relative;
}


#clouds {
  border: solid red;
  z-index: 10;
}


/************************* ICONS *************************/
#icon-sound-on {
  width: 30px;
  height: 30px;
  position: absolute;
  right: 2%;
  top: 20px;
}


#icon-sound-on:hover {
  cursor: pointer;
  opacity: 0.8;
}


#icon-sound-off {
  width: 30px;
  height: 30px;
  position: absolute;
  right: 2%;
  top: 20px;
}


#icon-sound-off:hover {
  cursor: pointer;
  opacity: 0.8;
}


/************************* START-SCREEN *************************/
.start-screen {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
}


.start-button {
  position: absolute;
  right: 45%;
  top: 5%;
  font-size: 25px;
  color: #FFA400;
  -webkit-text-stroke: 1px #843516;
  padding: 5px;
  border-radius: 7px;
  font-family: "salsa";
  background-color: #BF0000;
  box-shadow: #FFA400 0px 0px 2px 2px;
}


.start-button:hover {
  cursor: pointer;
  opacity: 0.8;
}


/************************* END-SCREEN *************************/
.end-screen {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.you-lost-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
}


.you-win-container{
  width: 100%;
  height: 100%;
}

.win-screen {
  background-color: grey;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.win-screen-overlay{
  background-color: black;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.37;
  z-index: 1;
}

.you-win-letters {
  position: absolute;
  right: 50%;
  bottom: 50%;
  color: #FFA400 !important;
  margin: 0 auto;
  transform: translate(70%, 50%);
  font-size: 80px;
  color: black;
  -webkit-text-stroke: 2px #843516;
  padding: 2px 10px;
  font-family: "salsa";
}


/************************* GAME-CONTROLS *************************/
.game-controls {
  z-index: 2;
  position: absolute;
  right: 50%;
  bottom: 5%;
  color: #FFA400 !important;
  transform: translateX(50%);
  font-size: 25px;
  color: black;
  -webkit-text-stroke: 1px #843516;
  padding: 2px 10px;
  border-radius: 7px;
  font-family: "salsa";
  background-color: #BF0000;
  box-shadow: #FFA400 0px 0px 1px 1px;
}


.game-controls:hover {
  cursor: pointer;
  opacity: 0.8;
}


.legal-notice {
  position: absolute;
  transform: translateX(-50%);
  left: 10%;
  bottom: 5%;
  color: #FFA400 !important;
  font-size: 15px;
  color: black;
  -webkit-text-stroke: 1px #843516;
  padding: 2px 10px;
  /* border: solid #843516 1px;  */
  border-radius: 7px;
  font-family: "salsa";
  background-color: #BF0000;
  box-shadow: #FFA400 0px 0px 1px 1px;
}


.legal-notice:hover {
  cursor: pointer;
  opacity: 0.8;
}


.privacy-policy {
  position: absolute;
  transform: translateX(-50%);
  right: 10%;
  bottom: 5%;
  color: #FFA400 !important;
  transform: translateX(50%);
  font-size: 15px;
  color: black;
  -webkit-text-stroke: 1px #843516;
  padding: 2px 10px;
  /* border: solid #843516 1px;  */
  border-radius: 7px;
  font-family: "salsa";
  background-color: #BF0000;
  box-shadow: #FFA400 0px 0px 1px 1px;
}


.privacy-policy:hover {
  cursor: pointer;
  opacity: 0.8;
}


/************************* LEGAL NOTICE *************************/
.legal-notice-container {
  text-align: center;
  padding: 30px;
  overflow: auto;
}


.legal-notice-container h2 {
  margin: 25px 0 5px 0;
  letter-spacing: 1px;
  font-family: "salsa";
  color: #FFA400 !important;
  -webkit-text-stroke: 1px #843516;
  font-size: 25px;
}


/************************* PRIVACY POLICY *************************/
.privacy-policy-container {
  text-align: center;
  padding: 30px;
  overflow: auto;
}


.privacy-policy-container div {
  font-size: 20px;
  font-weight: 600;
  padding: 20px 0 10px 0;
  letter-spacing: 1px;
  font-family: "salsa";
  color: #843516 !important;
  -webkit-text-stroke: 1px #843516;
}


/************************* GAME CONTROLS *************************/
.game-controls-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  /* border:solid red; */
}


.game-controls-container div {
  font-family: "salsa";
}


.game-controls-container img {
  width: 70px;
  height: 70px;
}


.key-description-box {
  display: flex;
  align-items: center;
  gap: 20px;
}


.letter-d {
  font-family: "salsa";
  font-size: 30px;
  align-self: center;
  padding: 0 25px 0 25px
}


.game-description {
  padding-top: 20px;
}


/************************* ROTATE PHONE *************************/
.rotate-phone-container {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  background-color: rgb(55, 173, 208, 0.95);
}


.rotate-phone-img {
  width: 30%;
}


/************************* DIALOG *************************/
.dialog-bg {
  background-color: rgb(55, 173, 208, 0.95);
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3;
}


/************************* ACTION BTNS *************************/
.action-btns{
  border-radius: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgb(55, 173, 208, 0.8);
  border: solid black 1px;
}


#action-btn-left{
  position: absolute;
  bottom: 2%; 
  left: 2%;
}


#action-btn-right{
  position: absolute;
  bottom: 2%; 
  left: 10%;
}


#action-btn-up{
  position: absolute;
  bottom: 2%; 
  right: 2%;
}


#action-btn-throw{
  position: absolute;
  bottom: 15%; 
  right: 2%;
}

#throw-img{
  width: 25px;
}


/************************* RESPONSIVNESS *************************/
@media only screen and (max-width: 900px) {
  canvas {
    width: 100%
  }
}


@media (max-width: 950px) {
  h1 {
    display: none;
  }
  .action-btns{
    display: flex;
  }
}


@media only screen and (max-height: 480px) {
  canvas {
    height: 100vh
  }
}


@media (max-width: 600px) {
  .rotate-phone-container{
    display: flex;
  }
}


/************************* DISPLAY CLASSES *************************/
.d-none {
  display: none !important
}