body {
  font-family: 'Montserrat', sans-serif;
  background: url('https://www.transparenttextures.com/patterns/paper-fibers.png'), linear-gradient(to bottom, #d2b48c, #c19a6b);
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

header.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #4a2c0b, #8b4513);
  border-radius: 10px;
  padding: 10px 20px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 450px;
  box-sizing: border-box;
}

.title {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  color: white;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 450px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.photo-section {
  margin-bottom: 20px;
}

.photo-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  border: 5px solid #4a2c0b;
  border-radius: 10px;
  margin: 0 auto 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#user-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-btn {
  display: inline-block;
  background: linear-gradient(to right, #8b4513, #d2691e);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: 'Anton', sans-serif;
  font-size: 16px;
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
}

.upload-btn:hover {
  background: linear-gradient(to right, #d2691e, #8b4513);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-section {
  background: rgba(74, 44, 11, 0.1);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

.reward-crime {
  margin: 0;
}

.reward-text {
  font-family: 'Anton', sans-serif;
  font-size: 36px;
  color: #4a2c0b;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.crime-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  color: #5c4033;
  margin-top: 5px;
}

.gender-section {
  margin-bottom: 20px;
}

.section-label {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  color: #4a2c0b;
  display: block;
  margin-bottom: 10px;
}

input[type="number"],
input[type="text"] {
  font-family: 'Montserrat', sans-serif;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 2px solid #4a2c0b;
  background: white;
  color: #5c4033;
  width: 100%;
  max-width: 200px;
  margin-bottom: 10px;
}

input[type="number"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #8b4513;
}

select {
  font-family: 'Montserrat', sans-serif;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 2px solid #4a2c0b;
  background: white;
  color: #5c4033;
  width: 100%;
  max-width: 200px;
  margin-bottom: 10px;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: #8b4513;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.action-btn {
  font-family: 'Anton', sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(to right, #8b4513, #d2691e);
  color: white;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
}

.action-btn:hover {
  background: linear-gradient(to right, #d2691e, #8b4513);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Styles for the downloadable/shareable poster */
.styled-poster {
  display: none;
  width: 800px;
  height: 1200px;
  border: 10px solid #3c2f2f;
  text-align: center;
  padding: 30px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  position: relative;
  background: url('https://www.transparenttextures.com/patterns/old-wall.png'), #f4e4bc;
  background-blend-mode: overlay;
  filter: sepia(0.3);
}

.styled-poster.parchment {
  background: url('https://www.transparenttextures.com/patterns/old-wall.png'), #f4e4bc;
  background-blend-mode: overlay;
}

.styled-poster.wood {
  background: url('https://www.transparenttextures.com/patterns/wood-pattern.png'), #8b4513;
  background-blend-mode: overlay;
}

.styled-poster.wanted {
  background: url('https://www.transparenttextures.com/patterns/paper-fibers.png'), #d2b48c;
  background-blend-mode: overlay;
}

.styled-poster.romantic {
  background: url('https://www.transparenttextures.com/patterns/hearts.png'), linear-gradient(to bottom, #ffcccc, #ff99cc);
  background-blend-mode: overlay;
  border-color: #ff6666;
  filter: none;
}

.styled-poster.superhero {
  background: url('https://www.transparenttextures.com/patterns/45-degree-fabric-light.png'), linear-gradient(to bottom, #ff0000, #0000ff);
  background-blend-mode: overlay;
  border-color: #ffff00;
  filter: none;
}

.styled-poster.vintage-movie {
  background: url('https://www.transparenttextures.com/patterns/noisy.png'), linear-gradient(to bottom, #000000, #333333);
  background-blend-mode: overlay;
  border-color: #d4af37;
  filter: grayscale(0.8);
}

.poster-title {
  font-family: 'Special Elite', cursive;
  font-size: 100px;
  color: #3c2f2f;
  margin: 0 0 10px 0;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.styled-poster.romantic .poster-title {
  font-family: 'Dancing Script', cursive;
  color: #ff3333;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.styled-poster.superhero .poster-title {
  font-family: 'Bangers', cursive;
  color: #ffffff;
  text-shadow: 3px 3px 0 #ff0000, -3px -3px 0 #0000ff;
}

.styled-poster.vintage-movie .poster-title {
  font-family: 'Cinzel', serif;
  color: #d4af37;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.poster-subtitle {
  font-family: 'Special Elite', cursive;
  font-size: 40px;
  color: #3c2f2f;
  margin: 0 0 20px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.styled-poster.romantic .poster-subtitle {
  font-family: 'Dancing Script', cursive;
  color: #ff6666;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.styled-poster.superhero .poster-subtitle {
  font-family: 'Bangers', cursive;
  color: #ffff00;
  text-shadow: 2px 2px 0 #000000;
}

.styled-poster.vintage-movie .poster-subtitle {
  font-family: 'Cinzel', serif;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.poster-photo-frame {
  width: 60%;
  max-width: 600px;
  aspect-ratio: 3 / 4;
  border: 8px solid #3c2f2f;
  margin: 20px auto;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.styled-poster.romantic .poster-photo-frame {
  border-color: #ff9999;
  box-shadow: 0 4px 8px rgba(255, 102, 102, 0.5);
}

.styled-poster.superhero .poster-photo-frame {
  border-color: #ffff00;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.styled-poster.vintage-movie .poster-photo-frame {
  border-color: #d4af37;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

#poster-user-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.poster-reward-crime {
  margin-top: 20px;
  max-width: 100%;
}

.poster-reward-text {
  font-family: 'Special Elite', cursive;
  font-size: 60px;
  color: #3c2f2f;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
  min-height: 60px;
}

.styled-poster.romantic .poster-reward-text {
  font-family: 'Dancing Script', cursive;
  color: #ff3333;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.styled-poster.superhero .poster-reward-text {
  font-family: 'Bangers', cursive;
  color: #ffffff;
  text-shadow: 2px 2px 0 #ff0000;
}

.styled-poster.vintage-movie .poster-reward-text {
  font-family: 'Cinzel', serif;
  color: #d4af37;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.poster-reward-text::before {
  content: '$';
}

.styled-poster.romantic .poster-reward-text::before {
  content: '♥ ';
}

.styled-poster.superhero .poster-reward-text::before {
  content: '⚡ ';
}

.styled-poster.vintage-movie .poster-reward-text::before {
  content: '★ ';
}

.poster-crime-text {
  font-family: 'Special Elite', cursive;
  font-size: 30px;
  color: #3c2f2f;
  margin-top: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  overflow-wrap: break-word;
  line-height: 1.2;
}

.styled-poster.romantic .poster-crime-text {
  font-family: 'Dancing Script', cursive;
  color: #ff6666;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.styled-poster.superhero .poster-crime-text {
  font-family: 'Bangers', cursive;
  color: #ffff00;
  text-shadow: 1px 1px 0 #000000;
}

.styled-poster.vintage-movie .poster-crime-text {
  font-family: 'Cinzel', serif;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.wanted-stamp {
  position: absolute;
  top: 10%;
  left: 10%;
  font-family: 'Special Elite', cursive;
  font-size: 50px;
  color: rgba(255, 0, 0, 0.3);
  transform: rotate(-45deg);
  pointer-events: none;
}

.styled-poster.romantic .wanted-stamp {
  content: 'LOVE';
  font-family: 'Dancing Script', cursive;
  color: rgba(255, 102, 102, 0.5);
  font-size: 60px;
}

.styled-poster.superhero .wanted-stamp {
  content: 'HERO';
  font-family: 'Bangers', cursive;
  color: rgba(255, 255, 0, 0.5);
  font-size: 60px;
  text-shadow: 1px 1px 0 #000000;
}

.styled-poster.vintage-movie .wanted-stamp {
  content: 'STAR';
  font-family: 'Cinzel', serif;
  color: rgba(212, 175, 55, 0.5);
  font-size: 50px;
  text-shadow: 1px 1px 0 #000000;
}

/* Responsive Design for Mobile */
@media (max-width: 500px) {
  header.header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .back-home-btn {
    align-self: flex-end;
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
    background: linear-gradient(to right, #8b4513, #d2691e);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s, box-shadow 0.3s
  }

  .container {
    padding: 15px;
    margin: 10px;
  }

  .photo-frame {
    max-width: 250px;
  }

  .reward-text {
    font-size: 28px;
  }

  .crime-text {
    font-size: 16px;
  }

  .action-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* Desktop Optimizations for Windows Users */
@media (min-width: 768px) {
  header.header {
    max-width: 800px;
    padding: 15px 30px;
  }

  .title {
    font-size: 48px;
  }

  .container {
    max-width: 800px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
  }

  .photo-section {
    grid-column: 1 / 2;
    margin-bottom: 0;
  }

  .photo-frame {
    max-width: 400px;
  }

  .upload-btn {
    padding: 12px 30px;
    font-size: 20px;
  }

  .info-section {
    grid-column: 2 / 3;
    padding: 20px;
    margin-bottom: 0;
  }

  .reward-text {
    font-size: 48px;
  }

  .crime-text {
    font-size: 24px;
  }

  .gender-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .section-label {
    font-size: 22px;
    margin-bottom: 15px;
  }

  input[type="number"],
  input[type="text"],
  select {
    padding: 12px;
    font-size: 18px;
    max-width: 300px;
  }

  .action-buttons {
    grid-column: 1 / -1;
    gap: 15px;
  }

  .action-btn {
    font-size: 20px;
    padding: 12px 30px;
  }

  .action-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }

  .styled-poster {
    width: 800px;
    height: 1200px;
    padding: 40px;
  }

  .poster-title {
    font-size: 120px;
  }

  .poster-subtitle {
    font-size: 50px;
  }

  .poster-reward-text {
    font-size: 80px;
    min-height: 80px;
  }

  .poster-crime-text {
    font-size: 40px;
    margin-top: 40px;
  }

  .wanted-stamp {
    font-size: 70px;
  }

  .styled-poster.romantic .wanted-stamp,
  .styled-poster.superhero .wanted-stamp {
    font-size: 80px;
  }

  .styled-poster.vintage-movie .wanted-stamp {
    font-size: 70px;
  }
}
.back-home-btn {
    align-self: flex-end;
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
    background: linear-gradient(to right, #8b4513, #d2691e);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s, box-shadow 0.3s
  }