html, body {
  text-align: center;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #3b65ff 0%, #1a3cb8 50%, #0a2479 100%);
  background-image: url('background.jpg'), linear-gradient(135deg, #3b65ff 0%, #1a3cb8 50%, #0a2479 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: overlay;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html {
  border: 25px solid #3b65ff;
  box-sizing: border-box;
}

.bordaa, .bordab {
  background: linear-gradient(to right, #3b65ff, #6989ff, #3b65ff);
  height: 25px;
  width: 100vw;
  position: fixed;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bordaa {
  top: 0;
}

.bordab {
  bottom: 0;
}

iframe {
  width: 425px;
  height: 425px;
  border: 2px solid white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

* {
  color: white;
  text-decoration: none;
}

.fandom {
  width: 400px;
  max-width: 100%;
  height: auto;
}

.container {
  display: flex;
  flex-direction: column;
  margin: 50px;
  width: 420px;
  background: linear-gradient(145deg, rgba(59, 101, 255, 0.9), rgba(105, 137, 255, 0.8));
  background-image: url('fundo.jpg'), linear-gradient(145deg, rgba(59, 101, 255, 0.9), rgba(105, 137, 255, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.container iframe, .container a {
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.container a {
  padding: 8px 15px;
  background: linear-gradient(45deg, #3b65ff, #6989ff);
  display: inline-block;
  margin: 5px;
}

.container a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.title {
  border-bottom: 2px solid white;
  margin: 0 20vw;
  padding-bottom: 10px;
}

.row {
  text-align: center;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  margin: 0 20px;
  gap: 20px;
}

h1 {
  background: linear-gradient(45deg, #3b65ff, #6989ff);
  border-radius: 20px;
  margin: 0 100px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.voltar {
  border-bottom: 2px solid white;
  display: flex;
  justify-content: center;
  position: fixed;
  padding: 8px 15px;
  left: 20px;
  top: 20px;
  background: linear-gradient(45deg, #3b65ff, #6989ff);
  border-radius: 8px;
}

.container iframe {
  width: 380px;
  margin: 10px auto;
}

h3 {
  margin: 0 10vw;
  padding: 10px;
}

.textos {
  background: linear-gradient(45deg, #3b65ff, #6989ff);
  border-radius: 20px;
  margin: 0 100px;
  padding: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

h2 {
  background: linear-gradient(45deg, #3b65ff, #6989ff);
  border-radius: 20px;
  margin: 0 25vw;
  padding: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.botao {
  background: linear-gradient(45deg, #3b65ff, #6989ff);
  border-radius: 20px;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  height: auto;
  min-height: 120px;
  width: 25vw;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.botao:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

img {
  border-radius: 20px;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

img:hover {
  transform: scale(1.05);
}

.fileira {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  scroll-behavior: smooth;
  margin: 20px 0;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: linear-gradient(145deg, rgba(59, 101, 255, 0.8), rgba(105, 137, 255, 0.6));
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.containerbutton {
  display: flex;
  flex-direction: column;
  margin: 20px;
  width: 300px;
  height: 250px;
  background: linear-gradient(145deg, rgba(59, 101, 255, 0.9), rgba(105, 137, 255, 0.8));
  background-image: url('fundo.jpg'), linear-gradient(145deg, rgba(59, 101, 255, 0.9), rgba(105, 137, 255, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  border: 5px solid #3752cc;
  border-radius: 15px;
  padding: 20px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.categoria {
  display: flex;
  margin: 20px;
  max-width: 1100px;
  min-width: 530px;
  max-height: 450px;
  min-height: 250px;
  background: linear-gradient(145deg, rgba(59, 101, 255, 0.9), rgba(105, 137, 255, 0.8));
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

/* Melhorias de responsividade */
@media (max-width: 768px) {
  .container, .containerbutton {
    width: 90%;
    margin: 20px auto;
  }
  
  iframe {
    width: 100%;
    height: 300px;
  }
  
  .botao {
    width: 80%;
    margin: 10px auto;
  }
  
  h1, .textos {
    margin: 0 20px;
  }
  
  h2 {
    margin: 0 10vw;
  }
}

/* Animações suaves */
* {
  transition: all 0.3s ease;
}

/* Scrollbar personalizada */
.fileira::-webkit-scrollbar {
  height: 8px;
}

.fileira::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.fileira::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #3b65ff, #6989ff);
  border-radius: 10px;
}