:root {
  --light-green: rgb(2, 181, 2);
  --light-blue: rgb(0, 195, 255);
  --light-red: rgb(251, 115, 115);
  --length-label: 250px;
}

.container {
  /* max-width: 600px; */
  width:510px;
  min-height: 200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

form {
  margin-top: 20px;
}

label {
  display: block;
  margin-bottom: 10px;
  color: #555;
}


input[type="submit"] {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 4px;
  background-color: green;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.btn-submit-success:hover {
  background-color:  var(--light-green);
}

button:hover {
  font-size: large;
  font-weight: bold;
  transform: scale(1.1);
}

/* ********************************************* */

* {
  font-family: 'Exo', cursive;
} 

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(to right, #7f7fd5, #86a8e7, #91eae4);
}


  
.board {
  display: flex;
  flex-wrap: wrap;
  width: 510px;
  height: 510px;
  background-color: #fff;
  border: 10px solid #333;
  margin-top: 0px;
  padding-top: 0px;
  margin-bottom: 5px;
}
  
.container_score {
  width:510px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.items-line {
  flex: 1;
  word-wrap: break-word;
}

.items {
  width: 45%;
  margin: 3px;
  border-radius: 10px;
  font-weight: bold;
  border: 2px solid rgb(34, 31, 29);
  transition: all 0.2s ease-in-out;
  box-shadow: 0px 0px 5px 2px #322d2d;
}

.btn-outline-info.selected  {
  background-color: var(--light-blue);
  color: white;
}

.items-emoji.selected  {
  background-color: var(--light-green);
}

.btn-outline-danger.selected  {
  background-color: var(--light-red);
  color: white;
}

.items:hover  {
  color: white;
  transform: scale(1.2);
}

.items-emoji {
  width: 10%;
  margin: 3px;
  border-radius: 10px;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
  box-shadow: 0px 0px 5px 2px #322d2d;
}

.items-emoji:hover  {
  transform: scale(3);
}



.square {
  width: 33.3%;
  height: 33%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  color: #333;
}

.square:nth-child(odd) {
  background-color: #ddd;
}

.square:nth-child(even) {
  background-color: #ccc;
}

.level-easy {
  padding: 4px 8px; /* Adjust padding for spacing */
  background-color: transparent; /* Set background to transparent */
  border: 3px solid green; /* Add a black border */
  border-radius: 5px;
  font-weight: bold;
  color: green; /* Text color */
  display: inline-block; /* Display as an inline block element */
  transition: background-color 0.3s, color 0.3s; /* Add a transition effect */
}

.level-medium {
  padding: 4px 8px; /* Adjust padding for spacing */
  background-color: transparent; /* Set background to transparent */
  border: 3px solid orange; /* Add a black border */
  border-radius: 5px;
  font-weight: bold;
  color: orange; /* Text color */
  display: inline-block; /* Display as an inline block element */
  transition: background-color 0.3s, color 0.3s; /* Add a transition effect */
  max-width: var(--length-label);
}

.level-insane {
  padding: 4px 8px; /* Adjust padding for spacing */
  background-color: transparent; /* Set background to transparent */
  border: 3px solid rgb(246, 137, 107); /* Add a black border */
  border-radius: 5px;
  font-weight: bold;
  color: rgb(246, 137, 107); /* Text color */
  display: inline-block; /* Display as an inline block element */
  transition: background-color 0.3s, color 0.3s; /* Add a transition effect */
  max-width: var(--length-label);
}

.level-impossible {
  padding: 4px 8px; /* Adjust padding for spacing */
  background-color: transparent; /* Set background to transparent */
  border: 3px solid rgb(46, 27, 21); /* Add a black border */
  border-radius: 5px;
  font-weight: bold;
  color: rgb(46, 27, 21); /* Text color */
  display: inline-block; /* Display as an inline block element */
  transition: background-color 0.3s, color 0.3s; /* Add a transition effect */
}

#label-round {
  padding: 4px 8px; /* Adjust padding for spacing */
  background-color: transparent; /* Set background to transparent */
  border: 3px solid rgb(91, 91, 4); /* Add a black border */
  border-radius: 5px;
  font-weight: bold;
  color:rgb(91, 91, 4); /* Text color */
  display: inline-block; /* Display as an inline block element */
  transition: background-color 0.3s, color 0.3s; /* Add a transition effect */
  max-width: var(--length-label);
}

.container_score.below {
  margin-top: 10px;
}

#reset-button, #restart-button{
  padding: 4px 8px;
  font-size: 18px;
  border-radius: 10px;
  background-color: rgb(4, 80, 106);
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
  outline: none;

  margin-left: 10px;
  margin-bottom: 10px;
}

#textplayer {

  text-align: center;
  padding-top: 0px;
  padding-bottom: 0px;
  font-size: 20px;
  margin-top: 0px;
  margin-bottom: 0px;
}

#reset-button:hover, #restart-button:hover {
  background-color: rgb(248, 84, 98);
  transform: scale(1.25);
}

h1 {
  margin-top: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  align-items: center;
  color: rgb(232, 232, 8);
  border-radius: 10px;
  background-color: rgb(4, 80, 106);
  display: flex;
  justify-content: center;
  padding: 10px 10px;
  }

/* Styles for the easy level */
.easy {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(to right, #E0E0E0, #90f0cd); /* Softer gradient */
  color: #333; /* Darker text color for better readability */
  font-size: 24px;
  font-weight: bold;
}

/* Styles for the medium level */
.medium {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(to right, #f4e4c7, #f3d7a2); /* Blue to orange gradient */
  color: #333;
  font-size: 24px;
  font-weight: bold;
}

/* Styles for the difficult level */
.insane {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(to right, #f6dbd5, #c58496);
  color: #333;
  font-size: 24px;
  font-weight: bold;
}

/* Styles for the insane level */
.impossible {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(to right, #8a898a, #5a565d); /* Purple gradient */
  color: #333;
  font-size: 24px;
  font-weight: bold;
}

.btn-outline-warning.selected {
  background-color: #ffc107;
  color: #000; /* Text color for contrast */
}

.btn-outline-dark.selected {
  background-color: #343a40;
  color: #fff; /* Text color for contrast */
}



.orange {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(to right, rgb(253, 177, 34), rgb(235, 184, 88), rgb(244, 164, 16));
}

#name-player1, #name-player2 {
  font-weight: bold;
  font-size: 16;
}

#score-player1, #score-player2 {
  font-weight: bold;
  font-size: 24;
}


#scorePlayer1 {
  text-align: left;
}

#scorePlayer2 {
  text-align: right;
}

/* ************** POPUP  */
.modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1;
}
.modal[open] {
  display: flex;
}
.modal-inner {
  background-color: white;
  border-radius: 0.5em;
  max-height: 600px;
  padding: 20px;
  margin: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid black;
}
#modal-overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  background-color: black;
  opacity: 0.5;
}
