@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Space+Grotesk:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@400..700&display=swap');

/* body, config padrão */
/* Cormorant e Space Grotesk */
:root {
  --cinza: #fcf8f8;
  --amarelo: #d4af37;
  --verde: #6CC959;
  --azul: #26daf1;
  /* 5733F5  40ce8c  EEEDF2 */
  --verm: #f54f57;
  --preto: #22252A;
  /* 1C1C1C */
  --roxo1: rgb(73, 70, 92);

}

/* marca texto */
#amarelo {
  background: #f4cf546e;
}

#verde {
  background: #6cc95956;
}

#azul {
  background: #13dadd59;
}

#verm {
  background: #ff000d23;
}

#underli {
  text-decoration: underline var(--amarelo);
}

#verm-color {
  color: var(--verm);
}

#ama-color {
  color: var(--amarelo);
}

#azu-color {
  color: var(--azul);
}

body {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  color: var(--preto);
  margin: 0px;
  background-color: #b8dde2;
  padding-bottom: 50px;
}

/* barra de navegação, logo */
.logo-alinhamento {
  display: flex;

}

.logo-code {
  width: 65px;
  height: 60px;
  padding-right: 10px;
}

header {
  background-color: var(--preto);
  display: flex;
  align-items: center;
  padding: 10px 20px;
  height: 70px;
  width: auto;
  font-family: "Space Grotesk", sans-serif;
}

.card-titulo h1 {
  margin: 20px;
  font-size: 20px;
  color: #f7737a;
  ;
  font-style: italic;
  font-weight: 500;

  font-family: "Kode Mono", monospace;
  font-size: 40px;
  text-align: center;
  background-color: var(--verm);
  border-radius: 5px;
  border: 1px solid var(--preto);
  font-weight: 500;
  color: var(--cinza);
  padding: 5px;
  margin: 90px;
  margin-bottom: 0px;
  margin-right: 150px;
  margin-left: 150px;
}

.card2 {
  background-color: var(--cinza);
  border-radius: 5px;
  border: 1px solid var(--preto);
  font-weight: 500;
  font-size: 23px;
  color: var(--preto);
  padding: 20px;
  padding-right: 50px;
  padding-left: 50px;
  margin: 90px;
  margin-top: 20px;
  margin-bottom: 30px;
  margin-right: 150px;
  margin-left: 150px;
  text-indent: 50px;
}

.alinhar {
  display: flex;
  flex-wrap: wrap;
  padding: 70px;
  justify-content: center;
}

.card {


  width: 300px;
  height: 100%;
  background: white;
  padding: 8px;
  border-radius: 6px;
  font-family: "Space Grotesk", sans-serif;
  border: 1px solid var(--roxo1);
  margin: 40px;
}

#img-card {
  background-color: rgb(236, 236, 236);
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--roxo1);
}

.card:hover {
  transform: scale(0.98);
}

.category {
  text-transform: uppercase;
  font-size: 0.8em;
  font-weight: 600;
  color: rgb(63, 121, 230);
  padding: 10px 7px 0;
}

.category:hover {
  cursor: pointer;
}

.heading {
  font-weight: 600;
  font-size: 25px;
  color: rgb(88, 87, 87);
  padding: 7px;
}

.heading:hover {
  cursor: pointer;
}

.author {
  color: gray;
  font-weight: 400;
  font-size: 15px;
  padding-top: 20px;
}

.name {
  font-weight: 600;
}

#link {
  text-decoration: none;
}


/* botão */
.botao {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 0px;
}

.btn {
  display: block;
  padding: 0.7em 1em;
  background: transparent;
  outline: none;
  border: 0;
  color: #d4af37;
  letter-spacing: 0.1em;
  font-family: monospace;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
}

.cube {
  position: relative;
  margin: 0;
  transition: all 0.5s;
}

.cube .bg-top {
  position: absolute;
  height: 10px;
  background: #d4af37;
  bottom: 100%;
  left: 5px;
  right: -5px;
  transform: skew(-45deg, 0);
  margin: 0;
  transition: all 0.4s;
}

.cube .bg-top .bg-inner {
  bottom: 0;
}

.cube .bg {
  position: absolute;
  left: 0;
  bottom: 0;
  top: 0;
  right: 0;
  background: #d4af37;
  transition: all 0.4s;
}

.cube .bg-right {
  position: absolute;
  background: #d4af37;
  top: -5px;
  z-index: 0;
  bottom: 5px;
  width: 10px;
  left: 100%;
  transform: skew(0, -45deg);
  transition: all 0.4s;
}

.cube .bg-right .bg-inner {
  left: 0;
}

.cube .bg-inner {
  background: var(--preto);
  position: absolute;
  left: 2px;
  right: 2px;
  top: 2px;
  bottom: 2px;
}

.cube .text {
  position: relative;
  transition: all 0.4s;
}

.cube:hover .bg-inner {
  background: #d4af37;
  transition: all 0.4s;
}

.cube:hover .text {
  color: var(--preto);
  transition: all 0.4s;
}

.cube:hover .bg-right,
.cube:hover .bg,
.cube:hover .bg-top {
  background: var(--preto);
}

.cube:active {
  z-index: 9999;
  animation: bounce 0.1s linear;
}

@keyframes bounce {
  50% {
    transform: scale(0.9);
  }
}

@media screen and (max-width: 1020px) {
  .card-code2 {
    margin: auto;
    width: 100%;
    padding: 0px;
  }

  .logo-code {
    width: auto;
    height: 50px;
  }

  header {
    height: 45px;
  }
  .card-titulo h1 {
    margin: auto;
    width: 370px;
    font-size: 40px;
    padding: 20px;
    margin-top: 12px;
    margin-bottom: 12px;
  }
  .card2 {
    margin: auto;
    width: 370px;
    font-size: 20px;
    padding: 20px;
  }

  .card {
    margin: auto;
    margin-bottom: 30px;
    width: 400px;
  }
}
