body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;

  /* placeholder background color in case image doesn’t load */
  background: white;
  color: #333;
  overflow-x: hidden; /* prevent sideways scroll from rotation */
}

body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140vw;
  height: 140vh;
  background-image: url("images/body-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center center;
  z-index: -1;
  transform: rotate(var(--bg-rotation, 0deg));
}

section {
  text-align: center;
}

header {
  background-image: url("images/header-bg.png"); /* your image */
  background-size: 100% 100%;  /* force width and height to match header */
  background-position: center;
  background-repeat: no-repeat;

  padding: 2rem;
  color: black;
  padding: 1rem;
  text-align: center;
}

h1 {
    text-align: center;
}

h2 {
    text-align: center;
}

p {
    text-align: center;
}

nav a {
  color: black;
  margin: 0 1rem;
  text-decoration: none;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  background: #0077ff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #005ecc;
}

form {
  margin: 20px auto;
  max-width: 300px;
  display: flex;
  gap: 10px;
}

input[type="email"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

form button {
  padding: 8px 15px;
  border: none;
  background: #0077ff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background: #005ecc;
}

#music-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
}

.album-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.album-tile img {
  width: 100%;
  aspect-ratio: 1 / 1; /* ensures a perfect square */
  object-fit: cover;
  border-radius: 8px; /* optional rounded corners */
  transition: transform 0.3s;
}

.album-tile img:hover {
  transform: scale(1.05); /* subtle zoom on hover */
}

.album-name {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #333;
}

#greeting {
  display: flex;
  justify-content: center; /* centers the whole row horizontally */
  flex-wrap: nowrap;       /* prevents wrapping to next line */
  overflow-x: visible;     /* allows overflow */
  gap: 20px;               /* optional spacing between h1s */
}

#greeting h1.spin {
  white-space: nowrap;     /* ensures each h1 doesn't wrap */
  margin: 0;
}

.spin {
  display: inline-block;
  animation: spin 5s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vibe {
  display: inline-block;
  animation: vibrate 1s ease-in-out infinite;
}

@keyframes vibrate {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}