/* =========================================
   Kaohtic pastel theme
   ========================================= */

:root {
  --pink: #ff8fab;
  --hot-pink: #e75480;
  --light-pink: #ffe5ec;
  --lavender: #cdb4db;
  --light-lavender: #eadcf8;
  --blue: #a2d2ff;
  --cream: #fffaf5;
  --purple: #5e548e;
  --white: #ffffff;
  --shadow-pink: #e36b8a;
  --dark-pink: #c94f72;
}

/* Prevent padding and borders from causing overflow */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Page layout */
html {
  min-height: 100%;
  background-color: var(--cream);
}

body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 20px;
  background-color: var(--cream);
  background-image: url("/tinybackred.gif");
  background-repeat: repeat;
  color: var(--purple);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.3px;
  overflow-wrap: break-word;

  /* Remove this line if the cursor file does not load correctly */
  cursor: url("/hello-kitty.cur"), auto;
}

/* Images and embedded content */
img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

/* Links */
a {
  display: inline-block;
  padding: 2px 6px;
  color: var(--purple);
  background-color: var(--white);
  border: 2px dotted var(--pink);
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

a:visited {
  color: var(--hot-pink);
  background-color: var(--light-pink);
}

a:hover,
a:focus-visible {
  color: var(--hot-pink);
  background-color: var(--white);
  border-color: var(--hot-pink);
  border-style: dashed;
  text-decoration: underline;
  transform: translateY(-1px);
}

a:active {
  color: var(--dark-pink);
  transform: translateY(0);
}

/* Headings */
h1,
h2,
h3 {
  margin-top: 1em;
  color: var(--hot-pink);
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  line-height: 1.25;
  text-shadow: 2px 2px 0 #ffd6e0;
}

h1 {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 20px;
  padding: 12px 18px;
  background-color: var(--light-pink);
  border: 3px dashed var(--pink);
  border-radius: 20px;
}

h2 {
  padding-bottom: 4px;
  border-bottom: 2px dotted var(--pink);
}

h3 {
  color: var(--purple);
}

/* Paragraphs and lists */
p {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.5em;
}

/* Tables */
table {
  max-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  padding: 8px 12px;
  color: var(--purple);
  text-align: left;
  vertical-align: top;
}

th {
  background-color: var(--light-pink);
  border-bottom: 2px solid var(--pink);
}

/* Forms */
input,
textarea,
select,
button {
  max-width: 100%;
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  color: var(--purple);
  background-color: var(--white);
  border: 2px solid var(--lavender);
  border-radius: 12px;
  outline: none;
  box-shadow: 2px 3px 0 var(--light-lavender);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--light-pink);
}

/* Buttons */
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  width: auto;
  padding: 10px 18px;
  color: var(--white);
  background-color: var(--pink);
  border: 0;
  border-radius: 15px;
  box-shadow: 3px 4px 0 var(--shadow-pink);
  cursor: pointer;
  font-weight: bold;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  background-color: #9b5de5;
  box-shadow: 3px 5px 0 #7541b5;
  transform: translateY(-2px);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active {
  box-shadow: 1px 2px 0 #7541b5;
  transform: translateY(1px);
}

/* Content box */
.cute-box {
  width: min(100%, 700px);
  margin: 20px auto;
  padding: 20px;
  background-color: var(--white);
  border: 3px solid var(--lavender);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--light-lavender);
}

/* Divider */
hr {
  margin: 25px 0;
  border: 0;
  border-top: 3px dotted var(--pink);
}

/* Enter screen */
.enter1 {
  display: flex;
  width: min(200px, 80vw);
  height: 200px;
  margin: 100px auto 40px;
  padding: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--light-pink);
  border: 2px dashed var(--pink);
  border-radius: 20px;
}

/* Useful for long words, badges, and small decorative images */
.nowrap {
  white-space: nowrap;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  body {
    padding: 12px;
    font-size: 15px;
  }

  h1 {
    padding: 10px 14px;
    font-size: 1.7rem;
  }

  .cute-box {
    padding: 15px;
    border-radius: 18px;
    box-shadow: 4px 4px 0 var(--light-lavender);
  }

  .enter1 {
    margin-top: 50px;
  }

  th,
  td {
    padding: 6px 8px;
  }
}

/* Respect users who prefer less animation */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
