@font-face {
  font-family: 'Anton';
  src: url('../static/Anton-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg: #0c0c0d;
  --panel: #111113;
  --text: #e8e8ea;
  --text-dim: #6f6f76;
  --accent: #ffffff;
  --border: #1a1a1d;

  --button-bg: #17171a;
  --button-bg-hover: #232327;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
  padding: 32px;
}

main {
  width: 100%;
  max-width: 880px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.65);
}

h1 {
  text-align: center;
  margin: 0 0 28px;
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--text);
}

.subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: -12px;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
}

.actions button {
  padding: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--button-bg);
  border: none;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.actions button:hover {
  background: var(--button-bg-hover);
  transform: translateY(-1px);
}

.actions button:active {
  transform: translateY(0) scale(0.98);
}

.actions i {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

canvas#meme {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000;
  display: block;
  margin-top: 8px;
}

@media (max-width: 600px) {
  body {
    padding: 16px;
  }

  main {
    padding: 20px;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .actions button {
    width: 100%;
  }
}
