* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
  background-color: #3f444d;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
}

/* ==================== HEADER ==================== */ 
.header {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0 10px;
  background-color: #222831;
  color: #ffffff;
}

.header__title {
  font-size: 1.5rem;
  font-weight: normal;
  display: none;
}

.header__time {
  font-size: 1.2rem;
}

.header__button {
  display: block;
}

.button {
  width: 100%;
  display: inline-flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: #47a386;
  border: 1px solid #47a386;
  border-radius: 5px;
  color: #ffffff;
  font-size: 0.9rem;
  width: 3rem;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  /* Elimina resplandor cuando recibe el focus */
  outline: none;
}

.button--close {
  width: 6rem;
  padding: 0.5rem;
  margin: auto;
}

.button__img {
  width: 1.5rem;
  height: 1.5rem;
}

.button__text {
  display: none;
}

/* ==================== MAIN ==================== */
.main {
  width: 100%;
  height: calc(100vh - 60px);
  display: flex;
  align-items: center;
}    

.board {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: auto;
  /* background-color: crimson; */
}

.board__img {
  width: 64px;
  height: 64px;
  margin: 0.3rem;
  border-radius: 0.3rem;
  cursor: pointer;
}

/* ==================== MODAL ==================== */
.container {
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  /* Controla si puede o no recibir eventos del cursor */
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
}

.show {
  pointer-events: auto;
  opacity: 1;
}

.modal {
  width: 100%;
  max-width: 300px;
  padding: 1rem;
  margin: 1rem;
  background-color: #ffffff;
  text-align: center;
  border-radius: 5px;
}

.modal__box {
  width: 60px;
  height: 60px;
  border-radius: 3.2rem;
  overflow: hidden;
  border: 3px solid #bbbbbb;
  margin: auto;
}

.modal__img {
  width: 100%;
  height: 100%;
}

.modal__text {
  width: 100%;
  font-size: 0.8rem;
  margin: 2rem auto;
  color:  #3f444d;
}

/* ==================== DIV WRAPPER ==================== */
.wrapper {
  max-width: 900px;  
  flex: 1; 
  height: inherit;
  margin: 0px auto;
  display: inherit;
  flex-wrap: inherit;
  justify-content: inherit;
  align-items: inherit;   
}

/* ==================== MEDIA QUERIES ==================== */
@media screen and (min-width: 400px) {
  .board {
    max-width: 360px;
  }

  .board__img {
    width: 80px;
    height: 80px;
  }
}

@media screen and (min-width: 768px) {
  .header {
    justify-content: space-between;
  }

  .header__title {
    display: block;
  }

  .header__time {
    font-size: 1.5rem;
  }

  .button {
    width: 8rem;
    font-size: 1rem;
  }

  .button--close {
    width: 8rem;
    padding: 0.7rem;
  }

  .button__text {
    display: block;
  }

  .board {
    max-width: 680px;
  }

  .board__img {
    width: 100px;
    height: 100px;
  }

  .modal {
    max-width: 477px;
    height: 300px;
  }

  .modal__box {
    width: 100px;
    height: 100px;
  }

  .modal__text {
    font-size: 1.3rem;
    margin: 3rem auto;
  }
}