@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap");

* {
  padding: 0;
  margin: 0;
}

html {
  font-family: "Poppins", sans-serif;
  height: 100%;
}

body {
  margin: 0;
}

.bg {
  animation: slide 3s ease-in-out infinite alternate;
  background-image: linear-gradient(
    -60deg,
    rgb(225, 237, 255) 50%,
    rgb(136, 164, 241) 50%,
    rgb(119, 194, 245) 50%
  );
  bottom: 0;
  left: -50%;
  opacity: 0.5;
  position: fixed;
  right: -50%;
  top: 0;
  z-index: -1;
}

.bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 4s;
}

.bg3 {
  animation-duration: 5s;
}

@keyframes slide {
  0% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(25%);
  }
}

/*caixa dos botões*/
.barra {
  float: right;
  justify-content: center;
  width: 45%;
  height: 35px;
  display: flex;
  margin-top: -45px;
  gap: 6px;
}

/*botão de cadastro*/
.bnt {
  height: 30px;
  width: 100px;
  display: inline-block;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 3px;
  padding: 10px 22px;
  border: 0;
  color: #3a4149;
  background: #e7ebee;
  line-height: 0.9;
  font-size: 12px;
}

.bnt:hover {
  transition: all 0.1s ease;
  box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6;
}

/*botão login*/
.bnt2 {
  height: 30px;
  width: 100px;
  display: inline-block;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 3px;
  padding: 10px 22px;
  border: 0;
  color: #3a4149;
  background: #e7ebee;
  line-height: 0.9;
  font-size: 12px;
}

.bnt2:hover {
  transition: all 0.1s ease;
  box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6;
}

header {
  justify-content: center;
  text-align: center;
  width: 100%;}

img {
  width: 220px;
  height: 110px;}

.box-menu{
    margin-top: 25px;
    margin-left: 80px;
    width: 70%; }

.container {
  width: auto;
  height: auto;
}

.temas {
  display: grid;
  height: auto;
  width: auto;
  margin: 10px;
  grid-template-columns: repeat(1, 1fr); /* largura da colunas em fração*/
  grid-template-rows: 150px 150px 150px 150px 150px 150px 150px 150px 150px 150px 150px 150px;
  gap: 50px; /* distançia das colunas e linhas*/
  padding: 30px;
}

.item {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0.25em;
  box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  padding: 3px;
}

.imgmenu {
  width: 100%;
  height: 100%;
  transition: all 0.5s;
  cursor: pointer;
}

.letra {
  width: 100%;
  height: 7%;
  padding-top: 7%;
}

h2 {
  font-size: 20px;
  text-align: center;
  margin-top: -6%;
}

.imgmenu:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

/********************************************Media Query Tablet**************************************************************/

@media screen and (min-width: 600px) {
  * {
    padding: 0;
    margin: 0;
  }

  html {
    height: 100%;
  }

  body {
    margin: 0;
  }

  .bg {
    animation: slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(
      -60deg,
      rgb(225, 237, 255) 50%,
      rgb(136, 164, 241) 50%,
      rgb(119, 194, 245) 50%
    );
    left: -50%;
    opacity: 0.5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
  }

  .bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 4s;
  }

  .bg3 {
    animation-duration: 5s;
  }

  @keyframes slide {
    0% {
      transform: translateX(-25%);
    }
    100% {
      transform: translateX(25%);
    }
  }

  header {
    text-align: center;
    width: 100%;
  }

  /*caixa dos botões*/
  .barra {
    float: right;
    justify-content: center;
    width: 25%;
    height: 35px;
    display: flex;
    margin-top: -40px;
    gap: 6px;
  }

  /*botão de cadastro*/
  .bnt {
    height: 30px;
    width: 100px;
    display: inline-block;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 3px;
    padding: 10px 22px;
    border: 0;
    color: #3a4149;
    background: #e7ebee;
    line-height: 0.9;
    font-size: 12px;
  }

  .bnt:hover {
    transition: all 0.1s ease;
    box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6;
  }

  /*botão login*/
  .bnt2 {
    height: 30px;
    width: 100px;
    display: inline-block;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 3px;
    padding: 10px 22px;
    border: 0;
    color: #3a4149;
    background: #e7ebee;
    line-height: 0.9;
    font-size: 12px;
  }

  .bnt2:hover {
    transition: all 0.1s ease;
    box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6;
  }

  header {
    justify-content: center;
    text-align: center;
    width: 100%;}
  
  img {
    width: 220px;
    height: 110px;}
  
  .box-menu{
      margin-top: 25px;
      margin-left: 130px;
      width: 70%; }

  .container {
    width: 98%;
    height: 100%;
    padding: 10px;
  }

  .temas {
    width: auto;
    height: auto;
    margin: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* largura da colunas em fração*/
    grid-template-rows: 200px 200px 200px 200px 200px 200px 200px;
    gap: 20px 20px; /* distançia das colunas e linhas*/
    padding: 5px;
  }

  .item {
    width: auto;
    height: auto;
    border-radius: 0.25em;
    box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    padding: 1px;
    margin-top: 13px;
  }

  .imgmenu {
    width: 100%;
    height: 100%;
    transition: all 0.5s;
    cursor: pointer;
  }

  .letra {
    display: grid;
    width: 100%;
    height: auto;
    padding-top: 6%;
  }

  h2 {
    font-size: 20px;
    display: block;
    text-align: center;
  }

  .imgmenu:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}

/******************************************Media Query PC*********************************************************************/

@media screen and (min-width: 998px) {
  * {
    padding: 0;
    margin: 0;
  }

  html {
    height: 100%;
  }

  body {
    margin: 0;
  }

  .bg {
    animation: slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(
      -60deg,
      rgb(225, 237, 255) 50%,
      rgb(136, 164, 241) 50%,
      rgb(119, 194, 245) 50%
    );
    left: -50%;
    opacity: 0.5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
  }

  .bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 4s;
  }

  .bg3 {
    animation-duration: 5s;
  }

  @keyframes slide {
    0% {
      transform: translateX(-25%);
    }
    100% {
      transform: translateX(25%);
    }
  }

  header {
    text-align: center;
    width: 100%;
  }

  .barra {
    width: auto;
    margin-top: -54px;
    margin-left: 1%;
    padding: -3%;
  }

  /*caixa dos botões*/
  .barra {
    float: right;
    justify-content: center;
    width: 18%;
    height: 35px;
    display: flex;
    margin-top: -40px;
    gap: 6px;
  }

  /*botão de cadastro*/
  .bnt {
    height: 30px;
    width: 100px;
    display: inline-block;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 3px;
    padding: 10px 22px;
    border: 0;
    color: #3a4149;
    background: #e7ebee;
    line-height: 0.9;
    font-size: 12px;
  }

  .bnt:hover {
    transition: all 0.1s ease;
    box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6;
  } /* efeito na sombra da caixa*/

  /*botão login*/
  .bnt2 {
    height: 30px;
    width: 100px;
    display: inline-block;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 3px;
    padding: 10px 22px;
    border: 0;
    color: #3a4149;
    background: #e7ebee;
    line-height: 0.9;
    font-size: 12px;
  }

  .bnt2:hover {
    transition: all 0.1s ease;
    box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6;
  }

  header {
    justify-content: center;
    text-align: center;
    width: 100%;}
  
  img {
    width: 220px;
    height: 110px;}
  
  .box-menu{
      margin-top: 25px;
      margin-left: 200px;
      width: 70%; }

  .container {
    width: auto;
    height: auto;
  }

  .temas {
    width: auto;
    height: auto;
    margin: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* largura da colunas em fração*/
    grid-template-rows: 250px 250px 250px;
    gap: 50px 50px; /* distançia das colunas e linhas*/
    padding: 20px;
  }

  .item {
    width: 100%;
    height: 100%;

    border-radius: 0.25em;
    box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    padding: 3px;
  }

  .imgmenu {
    width: 100%;
    height: 100%;
    transition: all 0.5s;
    cursor: pointer;
  }

  .letra {
    width: 100%;
    height: 7%;
    padding-top: 7%;
  }

  h2 {
    font-size: 20px;
    text-align: center;
    margin-top: -6%;
  }

  .imgmenu:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}
