/* ==== CSS Variables ==== */
:root {
  --bg-color: #333;
  --bg-color-alt: #444;
  --text-color: white;
  --text-color-alt: lightgray;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  --font-family: Arial, sans-serif;
}

/* ==== Global Reset ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* outline: 1px red dashed; */
}

/* ==== App Layout ==== */
body {
  background-color: var(--bg-color);
  font-family: var(--font-family);
}

.app {
  max-width: 370px;
  position: relative;
  background-color: var(--bg-color-alt);
  color: var(--text-color);
  box-shadow: var(--shadow);
  border-radius: 12px;
  margin: 10px auto;
}

/* ==== Header ==== */
.header {
  max-width: 370px;
  height: 140px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
  color: var(--text-color);
  text-shadow: 2px 2px 4px black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-title {
  font-size: 48px;
  font-weight: normal;
  margin: 5px;
}

.header-subtitle {
  font-size: 24px;
  font-weight: normal;
  margin: 5px;
  padding-bottom: 20px;
}

/* ==== Main ==== */
.main {
  max-width: 370px;
  height: 470px;
}

.main-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  justify-content: center;
  gap: 10px;
  margin: 0 10px;
}

.main-list a img {
  width: 170px;
  object-fit: cover;
  border: 1px solid black;
  border-radius: 12px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-list a:hover img {
  transform: translateY(-4px);
  box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
}

/* ==== Footer ==== */
.footer {
  max-width: 370px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
  font-size: 10px;
  color: var(--text-color-alt);
}

.footer a {
  color: var(--text-color-alt);
  text-decoration: none;
}
