/* @import url("https://fonts.googleapis.com/css2?family=Barriecito&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Rubik+Iso&display=swap"); */
@import url("https://fonts.googleapis.com/css2?family=DynaPuff:wght@400..700&display=swap");

html,
body {
  /* height: 100vh; */
  max-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: lightgray;
  /* border-right: 1px red solid; */
  box-sizing: border-box;
  font-family: DynaPuff;
}

.container {
  min-height: 90vh;
  height: 90vh;
  max-width: 90vw;
  margin: 1rem auto;

  /* display: flex; */
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#game-screen {
  display: none;
  position: relative;
  gap: 10px;
  padding: 1rem;
  border-right: 1px solid black;
}

#start-screen {
  /* margin: auto; */
  display: flex;
  height: 90vh;
  background-color: rgb(8, 0, 96);
  background-image: url("../images/CoverOption1.png");
  background-position: center;
  /* background-size: cover; */
  background-repeat: no-repeat;
  background-size: contain;
  border: 1px black solid;
  position: relative;
}

.subcontainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
  width: 100%;
  border: 1px black solid;
}

.subcontainer h1 {
  /* border: 1px black solid; */
  justify-self: flex-start;
  font-size: 5vw;
  color: rgb(255, 255, 255, 0.8);
  /* -webkit-text-stroke: 0.5px black; */
  /* font-family: Barriecito; */
  /* font-family: Rubik Iso; */
  font-family: DynaPuff;
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  /* margin-bottom: 20rem; */
}

#instructions {
  font-family: "Courier New", Courier, monospace;
  font-size: 2vh;
  line-height: 1.5;
  min-width: 500px;
  padding: 0.3rem 1rem;
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  position: static; /* o elimina position si no lo necesitas */
  left: auto;
  top: auto;
  transform: none;
  display: none; /* por defecto oculto */
}

#player-name {
  font-family: DynaPuff;
  font-size: 3vh;
  text-align: center;
  position: absolute;
  bottom: 15%;
}

#theme-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  /* border: 1px white solid; */

  h2 {
    font-size: 1.2rem;
    max-width: 80%;
    text-align: center;
    color: white;
    /* background-color: rgb(2, 136, 209, 0.6); */
    width: fit-content;
    padding: 0 0.5rem;
  }

  article {
    padding: 1rem 3rem;
  }
}

#themes {
  width: 80px;
  max-width: fit-content;
  /* height: 50px; */
  /* height: fit-content; */
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  border: none;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  box-shadow: 0 4px 24px rgba(60, 60, 120, 0.12), 0 1.5px 6px rgba(60, 60, 120, 0.1);
  border-radius: 24px;
  padding: 1.5rem 2.5rem;
  /* padding: auto; */
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}

#themes article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* height: 100%; */
  height: 10px;
  /* flex: 1; */
  /* max-height: fit-content; */
  text-align: center;
  background: linear-gradient(120deg, #b2fefa 0%, #0ed2f7 100%);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  /* padding: 1rem 1.5rem 1rem; */
  /* font-size: 1.2rem; */
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
  outline: none;
}

#themes article p {
  font-family: DynaPuff;
  color: #1a237e;
  font-weight: medium;
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

.selected-theme {
  outline: 3px solid #0288d1;
  border: 1px black solid;
  box-shadow: 0 0 0 4px #b2fefa;
}

#themes article:hover,
#themes article:focus {
  background: linear-gradient(120deg, #0ed2f7 0%, #b2fefa 100%);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 6px 24px rgba(14, 210, 247, 0.18);
  color: #0d1333;
}

.btn {
  font-family: DynaPuff;
  display: block;
  background: linear-gradient(180deg, #8ce0f0 0%, #4fc3f7 60%, #0288d1 100%);
  height: 6vh;
  width: 200px;
  color: white;
  font-size: 2rem;
  /* margin-top: 40px; */
  border-radius: 16px;
  border: none;
  box-shadow: 0 6px 0 #1976d2, 0 2px 16px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

#start-btn {
  position: absolute;
  bottom: 5%;
}
/* Glossy highlight */
.btn::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 16px;
  width: 70%;
  height: 30%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50px 50px 30px 30px;
  pointer-events: none;
}

.btn:hover,
.btn:focus {
  background: linear-gradient(120deg, #0ed2f7 0%, #b2fefa 100%);
  transform: translateY(-4px) scale(1.04);
}

#game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(43, 195, 226);
  border: 1px black solid;
  height: 5%;
  /* max-width: 90%; */
  width: 90%;
  box-sizing: border-box;
  padding: 0.3rem 1rem;
}

#game-box {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 90%;
  height: 90%;

  position: relative; /* allows us to position inner elements (absolute) related the the game-box */
  overflow: hidden; /* prevents elements to visually exit the game-box */
  user-select: none; /* prevents elements inside the game-box to be highlighted. This improves the user experience for click events on the game-box */
}

#game-box * {
  pointer-events: none; /* prevents elements in the game-box to be dragged. This improves the user experience for click events on the game-box  */
}

/* #air-info {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: rgb(185, 194, 241);
  border: 1px black solid;
  width: fit-content;
  height: 20px;
  text-align: center;
  gap: 2rem; 
} */

/* #air-info p {
  width: auto;
  margin: 0;
  padding: 0 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
} */

#announcement-extra-air {
  display: none;
  background-color: rgb(244, 244, 89);
  border: 1px black solid;
  width: auto;
  height: fit-content;
  padding: 0 0.5rem;
  margin-left: 1rem;
}

#info-extra-air {
  font-size: 1.1rem;
}

.info-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(185, 194, 241);
  border: 1px black solid;
  width: fit-content;
  padding: 0.2rem 0.5rem;
  height: 20px;
  text-align: center;
}

#game-over-screen {
  display: none;
  flex-direction: column;
  /* background-color: #e8f3fa; */
  background-image: url("../images/Background_transparent.PNG");
  /* background-color: rgb(34, 114, 136);
  background-color: rgb(3, 1, 84); */
  margin: auto;
  padding: 1rem;
}

#game-over-screen header {
  display: flex;
  max-width: 60%;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  /* border: 1px solid black; */
  margin-bottom: 0.2rem;
}

#game-over-screen header > h1 {
  /* font-size: 4rem; */
  height: fit-content;
  font-size: 3.5rem;
  font-size-adjust: 0.5;
  margin: 1rem auto;
  /* color: wheat; */
  font-family: Impact;
  font-weight: 400;
  text-align: center;
  margin-top: -0.1rem;
}

#game-over-screen header > img {
  max-width: 110px;
  height: 85px;
}

#box-game-over {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  border: 1px black solid;
  background-color: #d4e6ee;
  height: 80vh;
  max-height: 80%;
  width: 70%;
  box-sizing: border-box;
  padding: 2rem 3rem;
  font-size: 1vw;
}

#box-game-over h2 {
  font-family: Impact;
  /* color: #0170ac; */
  font-size: 1.5rem;
  text-align: center;
  font-weight: 400;
  margin-top: 1rem;
  letter-spacing: 1px;
  word-spacing: 2px;
  /* border: 1px black solid; */
}

.game-over-panel {
  background-color: rgb(236, 236, 225);
  height: 100%;
  overflow: hidden;
  width: 40%;
  min-width: fit-content;
  padding: 1rem 2rem 3rem;
  /* padding-bottom: 3rem; */
  border: 1px black solid;
  box-sizing: border-box;
}

#fish-species-box {
  text-align: center;
  border: 1px black solid;
}

#fish-species-box span {
  color: #1976d2;
  font-size: 1.3vw;
  /* font-size: 1.5rem; */
}

#fish-cards-container {
  background-color: #0288d1;
  border: 1px black solid;
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  width: 100%;
  padding: 1rem;
  gap: 1rem;
  overflow-y: auto;
  /* max-height: calc(100% - 7rem); */
  /* height: 100%; */
  /* height: 150px; */
  max-height: 450px;
  box-sizing: border-box;
}

.sub-box-right-panel {
  display: flex;
  flex-direction: column;
  /* border: 1px rgb(49, 166, 189) solid; */
  width: 100%;
  /* max-height: 100px; */
  box-sizing: border-box;
  gap: 0.2rem;
  /* height: 80px; */
}

#ranking-sub-box {
  overflow-y: auto;
  max-height: 400px;
  /* max-height: 100%; */
  /* max-height: calc(100% - 7rem); */
  /* border: 1px solid black; */
}

#ranking-sub-box article:first-of-type {
  color: #1976d2;
}

.row-results,
.row-ranking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  margin: 0;
  padding: 0;
  /* height: fit-content; */
  max-height: 1.5rem;
  background-color: rgb(209, 211, 182);
}

.row-results {
  gap: 10px;
  font-size: 1vw;
  text-align: center;
}

.row-results p:first-child {
  max-width: 300px;
  text-align: left;
  /* border: 1px black solid; */
}

.row-results p:nth-child(2) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 2rem;
  max-width: fit-content;
  padding: 0 0.3rem;
  /* height: 2rem; */
  text-align: center;
  /* border: 1px black solid; */
}

.fish-card {
  border: 1px solid black;
  background-color: rgb(235, 231, 195);
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 1rem;
  width: fit-content;
}

.fish-picture-and-name {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fish-image {
  max-width: 90px;
  max-height: 90px;
  /* border: 1px red solid; */
}

.fish-name-card {
  /* border: 1px solid black; */
  margin: 0.5rem auto 0;
  max-width: 100px;
}

.fish-pictures {
  /* border: 1px dashed black; */
  /* font-size: 1.1rem; */
  height: fit-content;
  font-weight: 400;
}

#btn-restart {
  min-height: 35px;
  font-size: 1.5rem;
  margin: 1rem auto;
}

.camara-quality-box {
  /* border: 2px white solid; */
  width: auto;
  color: white;
  box-sizing: border-box;
}

span.green {
  color: rgb(2, 164, 24);
}

#show-instructions-btn {
  font-size: 1rem;
  position: absolute;
  top: 5%;
  right: 2%;
  width: 110px;
}

/* Pressed effect */
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #1976d2, 0 1px 8px rgba(0, 0, 0, 0.18);
}

#instructions {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.2rem;
  display: none;
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  /* width: 35%; */
  width: fit-content;
  line-height: 1.4;
  text-align: center;
  z-index: 1000;
}

#instructions p {
  margin: 0;
  padding: 0.5rem 0;
  /* border-top: 1px solid rgba(255, 255, 255, 0.3); */
}

#instructions span {
  /* text-decoration: ita; */
  /* font-style: oblique; */
  font-weight: bold;
}

#instructions strong {
  color: #4fc3f7;
  /* background-color: rgb(2, 136, 209, 0.6); */
  padding: 0 0.2rem;
  border-radius: 4px;
}

#close-instructions {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1100;
}

.key {
  border: 1px white solid;
  padding: 0.2rem;
}

/* For laptop 13in (Chrome: width:998px, height:551px ) */
@media (max-height: 600px) {
  #show-instructions-btn {
    width: 160px;
  }

  #instructions {
    top: 35%;
    font-size: 0.75rem;
    width: 700px;
    padding: 0.2rem 1rem;
  }
}
