body {
  margin: 0;
  padding-top: 3% !important;
  font-family: Arial, sans-serif;
  background-color: #024873;
  color: #F22233;
  text-align: center;
  padding: 20px;
}

.tela {
  display: none;
}

.tela.ativa {
  display: block;
}

.logo {
  max-width: 250px;
  margin-bottom: 20px;
}

.frame-options {
  max-width: 800px;
  margin: 0 auto 20px;
}

.frame-type {
  margin-bottom: 20px;
}

/* Garante que o modal está sempre no topo */
#cameraModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 1000;
  display: none;
}

/* Estilo para quando a permissão é negada */
.permission-denied {
  color: white;
  text-align: center;
  padding: 20px;
}

#cameraError {
  color: #F22233;
  background-color: #025373;
  padding: 15px;
  border-radius: 8px;
  margin: 10px;
  font-size: 0.9em;
  border: 1px solid #F22233;
}

.frame-previews {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.frame-preview {
  cursor: pointer;
  transition: transform 0.2s;
}

.frame-preview:hover {
  transform: scale(1.05);
}

.frame-preview img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 2px solid #F22233;
  border-radius: 5px;
}

.frame-preview span {
  display: block;
  margin-top: 5px;
}

.upload-box {
  background-color: #025373;
  border-radius: 10px;
  padding: 30px 20px;
  max-width: 400px;
  margin: auto;
  border: 1px solid rgba(255,255,255,0.2);
}

.camera-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.botao-amarelo {
  background-color: #F22233;
  color: #ffffff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  font-size: 1em;
  width: 100%;
  max-width: 360px;
}

.botao-branco {
  background-color: #ffffff;
  color: #024873;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 12px;
  font-size: 1em;
  width: 100%;
  max-width: 360px;
}

.canvas-container {
  position: relative;
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 9 / 16;
  border: 4px solid #F22233;
  background-color: #ffffff;
  margin: 10px auto;
}

.canvas-container.profile {
  max-width: 800px;
  aspect-ratio: 1 / 1;
}

.canvas-container.post {
  max-width: 1080px;
  aspect-ratio: 4 / 5;
}

canvas {
  width: 100%;
  height: 100%;
}

.controls button {
  margin: 5px;
  padding: 10px 15px;
  background-color: #F22233;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

a {
  color: #ffffff;
  text-decoration: underline;
  font-size: 0.9em;
}

.botao-branco {
  background-color: #ffffff;
  color: #001F5F;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  font-size: 0.95em;
  display: inline-block;
}

/* Add this to your existing CSS */
.frame-preview img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 2px solid transparent;
}

.frame-preview.profile img {
  border-radius: 0;
  aspect-ratio: 1/1;
}

.frame-preview.story img {
  border-radius: 0;
  aspect-ratio: 9/16;
  height: 200px; /* Slightly taller for better preview */
}

.frame-preview.selected img {
  border: 3px solid #F22233;
}

.frame-preview span {
  display: none; /* Hides the frame titles */
}

/* Add these styles to your existing CSS */
.frame-row {
  margin-bottom: 20px;
}

.frame-row h3 {
  color: #F22233;
  margin-bottom: 10px;
}

.frame-previews {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.frame-preview {
  cursor: pointer;
}

.frame-preview img {
  width: 150px;
  object-fit: cover;
  border: 2px solid transparent;
}

.frame-preview.profile img {
  height: 150px;
  aspect-ratio: 1/1;
}

.frame-preview.story img {
  height: 250px;
  aspect-ratio: 9/16;
}

.frame-preview.post img {
  height: 200px;
  aspect-ratio: 4/5;
}

.frame-preview.selected img {
  border: 3px solid #FFCC00;
}

/* Adicione estas regras */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.botao-amarelo {
  /* Mantenha as propriedades existentes e adicione: */
  box-sizing: border-box;
}

#cameraModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.camera-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
}

.camera-container.profile {
  aspect-ratio: 1 / 1;
  max-width: 400px;
}

.camera-container.story {
  aspect-ratio: 9 / 16;
  max-width: 300px;
}

.camera-container.post {
  aspect-ratio: 4 / 5;
  max-width: 400px;
}

#cameraView {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.camera-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  border-radius: 10px;
}

.camera-controls {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.capture-btn {
  background-color: #F22233;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
}

.close-camera {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.camera-btn {
  background-color: #025373;
  color: #F22233;
  border: 2px solid #F22233;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.camera-btn:hover {
  background-color: #024873;
}

.camera-controls {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

#cameraView {
  transform: scaleX(var(--camera-scale, 1));
  transition: transform 0.2s;
}

