/* Copyright 2024 Mark T. Tomczak
 *
 * Released under the ISC license; see file ./LICENSE for more details.
 */

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

section {
  border: 1px solid black;
  border-radius: 3px;
  margin: 2px;
  padding: 5px;
}

section h2 {
  font-size: medium;
  font-weight: bold;
}

textarea {
  margin-bottom: 5px;
}

.error {
  font-weight: bold;
  color: red;
}

.card-frame {
  width: 50%;
  min-height: 300px;
  margin: auto;
  border: 2px solid black;
  border-radius: 5px;
}

.action-link {
    display: block;
    width: 115px;
    height: 25px;
    background: #4E9CAF;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    line-height: 25px;
    margin: 2px;
}

@media only screen and ((max-device-width: 600px) or (min-resolution: 200dpi)) {
  .card-frame {
    margin-left: 20px;
    margin-right: 20px;
    min-height: 600px;
    width: 90%;
  }

  body {
    font-size: 32pt;
  }

  button {
    font-size: 32pt;
  }

  textarea {
    font-size: 32pt;
  }

  section h2 {
    font-size: 40pt;
  }

  .action-link {
    width:320px;
    padding: 15px;
  }
}


#card {
  margin: 30px;
}

#cur-card-counter {
  margin: 5px;
  text-align: center;
}

.nav-panel {
  margin: 15px;
}

.flip {
  animation-duration: 0.5s;
  animation-name: flip;
}

@keyframes flip {
  from {
    transform: scaleX(1);
  }

  50% {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.drop {
  animation-duration: 0.5s;
  animation-name: drop;
}

@keyframes drop {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateY(200px) rotateZ(10deg);
  }
}
