* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font: normal 14px/100% "Andale Mono", AndaleMono, monospace;
  color: #fff;
  width: 300px;
  margin: 0 auto;
  background-color: #374954;
  padding-top: 30px;
}

input {
  color: white !important;
  background-color: #4f6877;
  display: block;
  padding: 8px 20px 5px 10px;
  min-height: 25px;
  line-height: 24px;
  overflow: hidden;
  width: 300px;
  font-size: 1.5em;
  transition: all 0.5s;
  margin-bottom: 10px;
}

input:focus {
  scale: 1.1;
}

button {
  background-color: #ea1010;
  width: 300px;
  border: 0;
  padding: 10px 0;
  margin: 5px 0;
  text-align: center;
  color: #fff;
  font-weight: bold;
  transition: all 0.5s;
}

button:hover {
  scale: 1.1;
  border-radius: 5px;
}

body h2,
h3 {
  text-align: center;
  margin: 40px 0;
}

h3 {
  font-size: 1.6em;
}

hr {
  height: 4px;
}

#borders {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* ---------- Card Flip Styles ---------- */
.card {
  width: 300px;
  height: 350px;
  perspective: 1000px; /* enables 3D effect */
  margin-bottom: 50px;
  position: relative;
  line-height: 25px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
  border-radius: 20px;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front img {
  user-select: none;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.2);
  background: #4f6877;
  color: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.card-front img {
  width: 100%;
  height: 60%;
  object-fit: cover;
}

.card-front h2,
.card-front p {
  text-align: center;
  margin-top: 10px;
}

.card-back {
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
}

.card-back h3 {
  margin-bottom: 10px;
  font-size: 1.3em;
}

.card-back p {
  margin: 5px 0;
}

/* Corner button (on both sides) */
.corner-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: rgba(234, 16, 16, 0.8);
  border-top-left-radius: 100% 100%;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corner-btn::after {
  content: "↺";
  color: white;
  font-size: 1.8em;
  position: relative;
  left: 5px;
  top: 5px;
}

.MDJAminDiv {
  z-index: 4444;
  position: fixed;
  bottom: 5%;
  left: 2%;
}

.MDJAmin {
  text-decoration: none;
  border-bottom: 1px dashed rgb(204, 204, 204);
  border-top: 1px dashed rgb(204, 204, 204);
  /* border-bottom: 1px dashed rgb(44, 44, 44); */
  /* border-top: 1px dashed rgb(44, 44, 44); */
  padding: 4px 0;
  /* color: rgba(44, 44, 44, 0.525); */
  color: rgba(204, 204, 204, 0.414);
  font-family: monospace;
  font-style: italic;
  font-size: 1.1em;
  transition: all 0.5s;
}

.MDJAmin:hover {
  /* color: #000000; */
  color: white;
}
