body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #999999;
  font-family: "Raleway", sans-serif;
  font-style: normal;
  font-weight: 400;
}

.card-container {
  perspective: 1000px;
  width: 50%;
  height: 70%;
  position: relative;
}

.card {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s;
  position: relative;
  background-color: rgb(255, 255, 255);
  border-radius: 20px;
  padding: 15px 15px 0 15px;
  box-shadow: 0 4px 8px #636b5b;
}

.card-front,
.card-back {
  position: absolute;
  left: 15px;
  width: 97%;
  height: 95%;
  backface-visibility: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%;
}

.card-front {
  background-image: url(imgs/logo.svg);
}

.card-back {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
}

.card-back main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 85.2%;
  height: 80%;
  background-color: #636B5B;
  color: white;
}


.card-back main h2 {
  font-size: 3rem;
}

.card-back main #loc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
}

.card-back main a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
}

.flip-horizontal {
  transform: rotateY(180deg);
}

@media (max-width: 1200px)  {

  .card-back main h2 {
    font-size: 2.5rem;
  }

  .card-back main p,
  .card-back main a {
    font-size: 1.5rem;
  }
}

@media (max-width: 1200px) and (max-height: 800px) {
  .card-back main h2 {
    font-size: 1.5rem;
  }

  .card-back main p,
  .card-back main a {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .card-container {
    width: 90%;
    height: 40%;
    left: -2.5%;
  }

  .card {
    padding: 10px;
  }

  .card-front,
  .card-back {
    left: 10px;
    width: 95%;
    height: 90%;
  }

  .card-back main {
    width: 90%;
    height: 85%;
  }

  .card-back main h2 {
    font-size: 1.5rem;
  }

  .card-back main p,
  .card-back main a {
    font-size: 1rem;
  }
}

@media (max-width: 768px) and (max-height: 600px) {
  .card-container {
    width: 80%;
    height: 70%;
    left: -2.5%;
  }
}