
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 75%;
  margin-inline: auto;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../img/bg.JPEG");
  background-repeat: repeat;
  background-position: center;
  opacity: 0.5;
  z-index: -1;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  width: min-content;
  white-space: nowrap;
  background-color: #ffffff;
}

.sub-title {
  background-color: #008e5c;
  color: #ffffff;
  text-align: center;
}

header h1 span:nth-child(1) {
  color: #ffdd00;
}

header h1 span:nth-child(2) {
  color: #008e5c;
}

header h1 span:nth-child(3) {
  color: #d60f3c;
}

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  main {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
  }
}

.card {
  background-color: #ffdd00;
}

.card-title {
  color: #ffdd00;
  background-color: #d60f3c;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title:before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: url('../img/soccer_icon.png') no-repeat center / contain;
}

.card-content {
  padding-inline: 0.75rem;
}

p#vim-brag {
  text-align: center;
}

p#vim-brag:not(:hover) {
  animation: flash-blink 0.8s steps(1, end) infinite;
}

p#vim-brag:hover {
  animation: rotate-spin 1s linear infinite;
}

h1:hover, h2:hover  {
  animation: rotate-spin 1s linear infinite;
}

@keyframes flash-blink {
  0%, 50% {
    visibility: visible;
    opacity: 1;
  }
  50.01%, 100% {
    visibility: hidden;
    opacity: 0;
  }
}

@keyframes rotate-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
