@import url('https://fonts.googleapis.com/css2?family=Lucida+Sans+Unicode&display=swap');

:root {
  --aim-blue: #0066CC;
  --aim-grey: #D4D0C8;
  --aim-window: #ECE9D8;
  --aim-text: #000000;
  --aim-border: #808080;
  --aim-toolbar: #D4D0C8;
  --aim-menu: #FFFFFF;
}

/* AOL Toolbar */
.aol-toolbar {
  background: var(--aim-toolbar);
  border: 2px outset var(--aim-grey);
  padding: 8px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.aol-toolbar button:nth-child(4),
.aol-toolbar button:nth-child(5) {
  grid-column: span 1.5;
}

.aol-toolbar button {
  font-size: 12px;
  padding: 8px;
  background: var(--aim-grey);
  border: 2px outset var(--aim-grey);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .aol-toolbar {
    padding: 4px;
    gap: 3px;
  }
  
  .aol-toolbar button {
    font-size: 10px;
    padding: 6px 3px;
    min-width: 45px;
    flex: 0 1 auto;
  }
  
  .aol-toolbar button:nth-child(n+5) {
    font-size: 9px;
  }
}

.aol-toolbar button:active {
  border-style: inset;
}

/* AOL Window Style */
.aol-window {
  border: 2px outset var(--aim-grey);
  background: var(--aim-window);
  margin: 10px auto;
  max-width: 800px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.aol-titlebar {
  background: linear-gradient(to right, var(--aim-blue), #4287f5);
  color: white;
  padding: 3px 6px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aol-content {
  padding: 10px;
  background: var(--aim-window);
}

body {
  font-family: 'Lucida Sans Unicode', 'Arial', sans-serif;
  background: var(--aim-grey);
  color: var(--aim-text);
  padding: 1em;
  text-align: center;
  line-height: 1.6;
}

h1, h2 {
  font-family: 'Lucida Sans Unicode', sans-serif;
  color: var(--aim-blue);
  text-shadow: none;
  margin: 1rem 0;
  font-weight: bold;
}

nav {
  margin: 20px auto;
  background: var(--aim-window);
  padding: 1rem;
  border: 2px outset var(--aim-grey);
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  max-width: 800px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: var(--aim-text);
  text-decoration: none;
  font-weight: normal;
  padding: 5px 15px;
  border: 2px outset var(--aim-grey);
  background: var(--aim-grey);
  font-size: 0.9rem;
}

nav a:hover {
  background: var(--aim-blue);
  color: white;
  border: 2px inset var(--aim-grey);
}

nav a:active {
  border: 2px inset var(--aim-grey);
}

.logo-wrapper {
  background: var(--aim-window);
  padding: 15px;
  border: 2px outset var(--aim-grey);
  margin: 20px auto;
  max-width: 200px;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
  position: relative;
  top: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-wrapper:active {
  border-style: inset;
  top: 2px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
  background: #e5e2d1;
  transform: scale(0.95);
  opacity: 0.8;
}



.logo-wrapper img {
  max-width: 150px;
  margin-bottom: 0.5rem;
}

input, textarea, button {
  font-family: 'Lucida Sans Unicode', sans-serif;
  background: white;
  border: 2px inset var(--aim-grey);
  color: var(--aim-text);
  padding: 5px 10px;
}

button {
  background: var(--aim-grey);
  border: 2px outset var(--aim-grey);
  cursor: pointer;
}

button:active {
  border: 2px inset var(--aim-grey);
}

.result-display {
  background: var(--aim-window);
  border: 2px inset var(--aim-grey);
  padding: 1rem;
  margin: 0.5rem auto;
}

.back-to-top {
  background: var(--aim-grey);
  border: 2px outset var(--aim-grey);
  color: var(--aim-text);
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
 background: var(--aim-blue);
 color: white;
}

ul {
  background: var(--aim-window);
  border: 2px inset var(--aim-grey);
  list-style: none;
  padding: 1rem;
  max-width: 600px;
  margin: 1rem auto;
}

li {
  border-bottom: 1px solid var(--aim-border);
  padding: 0.5rem;
  text-align: left;
  margin: 1rem 0;
}

/* Wheel styling and animation */
.wheel-container {
  margin: 20px auto;
  width: 300px;
  height: 300px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 8px solid var(--aim-blue);
  box-shadow: 0 0 20px var(--aim-blue);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-content {
  width: 100%;
  height: 100%;
  position: absolute;
  background: conic-gradient(from 0deg,
    red 0%,
    orange 16.66%,
    yellow 33.33%,
    green 50%,
    blue 66.66%,
    purple 83.33%,
    red 100%
  );
}

.result-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid var(--aim-blue);
  z-index: 10;
  font-size: 1.2rem;
  min-width: 200px;
  text-align: center;
  display: none;
}

.wheel.spinning {
  animation: spin 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

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

.results-container {
  max-width: 600px;
  margin: 0 auto 20px;
}

.result-display h3 {
  margin: 0 0 0.5rem;
  color: var(--aim-blue);
}

.wheel-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s;
  box-shadow: 0 0 20px var(--aim-blue);
  border: 8px solid var(--aim-blue);
}

.wheel-button.pulse {
  animation: pulse 2s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 20px var(--aim-blue);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--aim-blue);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px var(--aim-blue);
  }
}

.wheel-button.spinning {
  animation: none;
}

.wheel-button:active {
  transform: scale(0.95);
}

.wheel-button.spinning {
  animation: spin 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.spin-button-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.speech-bubble {
  position: absolute;
  background: var(--aim-blue);
  border-radius: 15px;
  padding: 15px;
  color: var(--aim-text);
  font-weight: bold;
  font-size: 1.2rem;
  right: -20px;
  top: 30%;
  opacity: 0;
  transform: scale(0);
  transform-origin: left center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.speech-bubble:before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-right: 10px solid var(--aim-blue);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.speech-bubble.show {
  opacity: 1;
  transform: scale(1);
}

.spin-button {
  font-size: 1.5rem;
  padding: 1rem 2rem;
  margin-top: 2rem;
}

#choice-buttons {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.choice-button {
  padding: 10px 30px;
  font-size: 1.2rem;
  background: var(--aim-window);
  border: 2px solid var(--aim-blue);
  color: var(--aim-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.choice-button:hover {
  background: var(--aim-blue);
  color: white;
}

.choice-button.selected {
  background: var(--aim-blue);
  color: white;
}

/* Card styling for content sections */
div[style*="margin-bottom: 2rem"] {
  background: var(--aim-window);
  border: 2px inset var(--aim-grey);
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

div[style*="margin-bottom: 2rem"]:hover {
  transform: translateY(-2px);
}

/* Buddy List Status Icons */
.buddy-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.status-online { background: #00ff00; }
.status-away { background: #ffff00; }
.status-offline { background: #ff0000; }

.photo-grid {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 10px;
  padding: 10px;
}

.photo-cell {
  display: inline-block;
  width: 200px;
  margin: 10px;
  text-align: center;
  background: #fff;
  border: 2px solid var(--aim-blue);
  padding: 5px;
}

.photo-link {
  text-decoration: none;
  color: var(--aim-blue);
}

/* Hotline Styles */
.hotline-instructions {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: #000;
  color: #fff;
  border: 2px solid var(--aim-grey);
  border-radius: 8px;
  text-align: left;
}

.hotline-instructions h2 {
  text-align: center;
  color: #ff0;
  margin-bottom: 15px;
}

.hotline-instructions ol {
  margin: 15px 0;
  padding-left: 25px;
}

.hotline-instructions li {
  margin: 8px 0;
  color: #0f0;
}

.hotline-instructions .warning {
  margin-top: 15px;
  color: #f00;
  text-align: center;
  font-style: italic;
}

.hotline-form {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: var(--aim-window);
  border: 2px inset var(--aim-grey);
}

.hotline-form input,
.hotline-form select {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  border: 2px inset var(--aim-grey);
  background: white;
}

.record-controls {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.hotline-button {
  padding: 10px 20px;
  background: var(--aim-grey);
  border: 2px outset var(--aim-grey);
  cursor: pointer;
  font-weight: bold;
}

.hotline-button:active {
  border-style: inset;
}

.hotline-button.recording {
  background: #ff4444;
  color: white;
}

.message-log {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.messages-container {
  max-height: 600px;
  overflow-y: auto;
  padding: 10px;
}

.message-entry {
  background: var(--aim-window);
  border: 2px solid var(--aim-blue);
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  transition: transform 0.2s ease;
}

.message-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.message-header {
  margin-bottom: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.audio-container {
  background: rgba(0, 0, 0, 0.05);
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
}

.message-audio {
  width: 100%;
  margin: 5px 0;
}

.no-messages {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
}

.message-type {
  float: right;
  background: var(--aim-blue);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

.message-time {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.message-audio {
  width: 100%;
}

.photo-item {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 1px solid #999;
  padding: 2px;
  background: #fff;
}

.photo-caption {
  font-size: 12px;
  margin-top: 5px;
  color: var(--aim-blue);
  text-decoration: underline;
  font-family: "Comic Sans MS", cursive;
}

.photo-cell:hover {
  background: #f0f0f0;
  border-color: #ff0000;
}

.photo-cell:hover .photo-caption {
  color: #ff0000;
  font-weight: bold;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes rainbow {
  0% { color: red; }
  20% { color: orange; }
  40% { color: yellow; }
  60% { color: green; }
  80% { color: blue; }
  100% { color: purple; }
}

.blink {
  animation: blink 1s step-end infinite;
}

.rainbow {
  animation: rainbow 3s linear infinite;
}

.retro-border {
  border: 2px solid var(--aim-blue);
  padding: 10px;
  animation: blink 2s step-end infinite;
}

.promo-form {
  max-width: 500px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-form input {
  padding: 8px;
  font-size: 16px;
  border: 2px inset var(--aim-grey);
}

.promo-button {
  background: var(--aim-blue);
  color: white;
  padding: 10px;
  font-size: 18px;
  border: 2px outset var(--aim-grey);
  cursor: pointer;
  margin: 10px 0;
}

.promo-button:hover {
  background: #0052a3;
}

.promo-result {
  margin: 20px auto;
  max-width: 600px;
  padding: 20px;
  background: var(--aim-window);
  border: 2px inset var(--aim-grey);
}

.promo-text {
  font-size: 18px;
  line-height: 1.6;
  margin: 15px 0;
  padding: 15px;
  background: black;
  color: yellow;
  border: 2px solid var(--aim-blue);
  font-family: 'Impact', sans-serif;
  text-align: center;
}

.saved-promos {
  margin-top: 30px;
  border-top: 2px solid var(--aim-blue);
  padding-top: 20px;
}

.saved-promo {
  margin: 15px 0;
  padding: 10px;
  background: var(--aim-window);
  border: 2px inset var(--aim-grey);
}

.promo-date {
  font-size: 12px;
  color: var(--aim-blue);
  margin-bottom: 5px;
}

#astroSign {
  padding: 8px;
  font-size: 16px;
  border: 2px inset var(--aim-grey);
  background: white;
  width: 100%;
}