@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
  --bg: #0B2E33;
  --card-bg: #4F7C82;
  --accent: #B8E3E9;
  --muted: #93B1B5;
  --text: #EAF6F7;
  --shadow: rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0B2E33, #4F7C82);
  color: var(--text);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--card-bg);
  box-shadow: 0 4px 10px var(--shadow);
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

h1 {
  font-weight: 600;
  font-size: 1.6em;
  color: var(--accent);
}

/* Container */
.container {
  background: rgba(79, 124, 130, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 20px var(--shadow);
  padding: 25px;
  margin: 40px auto;
  width: 90%;
  max-width: 650px;
  text-align: center;
}

/* Upload Button */
.upload-label {
  background: var(--accent);
  color: #0B2E33;
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-block;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px var(--shadow);
}

.upload-label:hover {
  background: var(--muted);
  color: #fff;
}

/* Controls */
.controls {
  margin: 15px 0;
  color: var(--accent);
}

.controls select {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: #0B2E33;
  color: var(--accent);
  font-size: 1em;
  font-weight: 500;
}

/* ASCII Box */
.ascii-box {
  background: #0B2E33;
  color: #B8E3E9;
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre;
  text-align: left;
  font-size: 6px;
  line-height: 1;
  max-height: 400px;
  border: 1px solid var(--muted);
  margin-top: 20px;
}

/* Buttons */
.button-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn {
  background: var(--accent);
  color: #0B2E33;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--shadow);
}

.btn:hover {
  background: var(--muted);
  color: #fff;
  transform: translateY(-2px);
}

.hidden {
  display: none;
}

/* Footer */
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9em;
  padding: 15px 0;
  margin-top: auto;
  background: #0B2E33;
}

.highlight {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 1.3em;
  }

  .logo {
    font-size: 1.8em;
    width: 40px;
    height: 40px;
  }

  .ascii-box {
    font-size: 4.5px;
  }
}
