body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f0f0f0;
  position: relative;
  min-height: 100vh;
  background: url('background.png') no-repeat center center fixed;
  background-size: cover;
}

/* Vignette overlay */
body::before {
  content: "";
  position: fixed; /* fixed to stay behind content */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* allows clicks to pass through */
  background: radial-gradient(circle, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.8) 100%);
  z-index: 0; /* behind content */
}
.main-header,
.content,
.form-box,
.hero,
.hero-text {
  position: relative;
  z-index: 1;
}
h2 {
    background-color: rgba(0, 0, 0, 0.5); /* light blue bubble */
    border: 1px solid #00bfff;               /* blue border */
    color: #00bfff;                           /* title text color */
    padding: 10px 20px;
    border-radius: 8px;
    margin: 0 auto 20px auto;                /* center horizontally, 20px bottom margin */
    font-weight: bold;
    max-width: 500px;                         /* optional, keeps bubble neat */
    text-align: center;                       /* center text inside bubble */
    display: block;                           /* ensures margin auto works */
    font-size: 24px;                          /* adjust size if needed */
}

.main-header {
  background-color: #222;
  padding: 15px 0;
  box-shadow: 0 2px 5px #000;
}

.container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #00bfff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #ccc;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #00bfff;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  text-align: center;
  background: url('images/dbobg.jpg') no-repeat center center/cover;
  color: white;
}

.hero-text {
  background: rgba(0,0,0,0.6);
  padding: 20px;
  border-radius: 10px;
}

.cta-button {
  background: #00bfff;
  color: black;
  padding: 10px 20px;
  margin-top: 15px;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #009acd;
}

.content {
  padding: 40px;
  text-align: center;
}

.download-link {
  background: #444;
  padding: 10px 20px;
  color: #00bfff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.form-box {
  display: inline-block;
  background: #333;
  padding: 20px;
  border-radius: 10px;
}

.form-box input {
  display: block;
  margin: 10px auto;
  padding: 10px;
  width: 80%;
  border: none;
  border-radius: 5px;
}

.button-row button {
  margin: 10px;
  padding: 10px 15px;
  border: none;
  background: #00bfff;
  color: #000;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.button-row button:hover {
  background: #009acd;
}

.error-msg {
    background-color: rgba(0, 0, 0, 0.75);
    border: 1px solid red;
    color: red;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 0 auto 15px auto;  /* top 0, bottom 15px, centered horizontally */
    font-weight: bold;
    max-width: 400px;
    text-align: center;
    display: block;             /* ensures margin auto works */
}
.download-page p {
    margin-top: 400px;  /* moves only the link down */
    text-align: center; /* ensure the link is centered */
}

.bubble-title,
.character-bubble {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #00bfff;
    border-radius: 10px;
    padding: 15px 20px;
    color: #00bfff;
    font-weight: bold;
    text-align: center;
    max-width: 500px;
    margin: 0 auto 15px auto; /* 15px bottom spacing */
}
