/* ==========================
   ALPACA JACKPOT EDITION
   ========================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overscroll-behavior-y: none;

  background: #2B0057;
  color: #39FF14;

  font-family: Arial, sans-serif;
  font-size: 22px;
}

/* PAGE */

.page-container {
  width: 800px;
  padding: 15px;

  display: flex;
  justify-content: center;
}

/* MAIN FRAME */

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 20px;

  width: 75%;
  max-width: 750px;

  margin: 0 auto;

  padding: 20px;

  background: #3F007F;

  border: 6px solid #39FF14;
  border-radius: 20px;

  box-shadow:
    0 0 20px #39FF14,
    0 0 40px rgba(57,255,20,.4);

  animation: jackpotGlow 2s infinite alternate;
}

/* PANELS */

.container {
  padding: 15px;

  background: #FF1493;

  border: 5px solid #00FF66;

  border-radius: 16px;

  box-shadow:
    0 0 15px rgba(0,255,102,.7);
}

/* TITLE */

h1,
h2 {
  text-align: center;

  color: #39FF14;

  font-size: 2.5rem;
  font-weight: 900;

  text-shadow:
    0 0 10px #39FF14,
    0 0 20px #39FF14,
    0 0 35px #39FF14;
}

/* SLOT MACHINE LOOK */

h1::before {
  content: "🎰 ";
}

h1::after {
  content: " 🎰";
}

/* CHAT BOX */

.chatbox {
  background: #120024;

  color: white;

  border: 5px solid #39FF14;
  border-radius: 15px;

  min-height: 200px;

  padding: 15px;

  display: flex;
  flex-direction: column;

  resize: both;
  overflow: hidden;

  font-size: 24px;
  font-weight: bold;
}

/* MESSAGES */

#messages {
  flex: 1;

  overflow-y: auto;
  overflow-x: hidden;

  min-height: 200px;

  padding: 10px;

  border: 4px solid #FF1493;
  border-radius: 10px;

  background: #1A0033;
}

#messages div {
  margin-bottom: 15px;
  font-size: 22px;
}

/* USER */

.user-msg {
  color: #39FF14;
  font-weight: 900;
}

/* ALPACA */

.alpaca-msg {
  color: #FF66CC;
  font-weight: 900;
}

/* FORM */

#chatForm {
  display: flex;
  gap: 10px;

  margin-top: 15px;

  flex-shrink: 0;
}

/* INPUT */

#userInput {
  flex: 1;

  padding: 15px;

  background: #2B0057;

  color: white;

  border: 4px solid #FF1493;
  border-radius: 12px;

  font-size: 22px;
  font-weight: bold;
}

#userInput::placeholder {
  color: #CCCCCC;
}

/* BUTTON */

button {
  padding: 15px 25px;

  background: #39FF14;

  color: black;

  border: 4px solid #FF1493;
  border-radius: 12px;

  font-size: 22px;
  font-weight: 900;

  cursor: pointer;

  box-shadow:
    0 0 10px #39FF14,
    0 0 20px #39FF14;

  transition: all .25s ease;
}

button:hover {
  transform: scale(1.05);

  background: #66FF33;
}

/* SCROLLBAR */

::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: #2B0057;
}

::-webkit-scrollbar-thumb {
  background: #39FF14;
  border-radius: 20px;
}

/* SLOT MACHINE FLASH */

@keyframes jackpotGlow {

  from {
    box-shadow:
      0 0 10px #39FF14,
      0 0 25px #39FF14;
  }

  to {
    box-shadow:
      0 0 20px #FF1493,
      0 0 45px #39FF14,
      0 0 60px #FF1493;
  }
}

/* MOBILE */

@media (max-width: 90%) {

  .grid-container {
    grid-template-columns: 1fr;
  }

  h1,
  h2 {
    font-size: 2rem;
  }
}
