/*** VARIABLES & THEMES ***/
body {
    transition: background-color 0.3s ease, color 0.3s ease;
   

}

:root {
    --primary-color: #cf0f0f;
    --primary-color-contrast: #ffffff;
    --field-background-color: #000;
    --default-font: 'Arial', sans-serif;
  }
  
  .light-theme {
    --page-background: linear-gradient(
      180deg,
      #ffffff 0%,
      #ffffff 65%,
      rgba(255, 255, 255, 0.75) 100%
    );
    --header-background-color: #e3e3e3;
    --highlight-color: #000000;
    --featured-font-family: "Archivo", sans-serif;
    --character-top-image-src: url("../images/characters/kids-on-the-bike.svg");
    --character-top-image-color: #ffffff;
    --character-bottom-image-src: url("../images/characters/inverted-world-monster.svg");
    --character-bottom-image-color: #e5e5e5;
    --background-lamp-image: url("../images/backgrounds/lamps.png");
    --footer-background-color: #b5bbbf;
  }
  
  .dark-theme {
    --page-background: linear-gradient(
      180deg,
      #050000 0%,
      #130404 65%,
      rgba(19, 1, 1, 0.75) 100%
    );
    --header-background-color: #220f0f;
    --highlight-color: #ffffff;
    --featured-font-family: "Rubik Glitch", sans-serif;
    --character-bottom-image-src: url("../images/characters/kids-on-the-bike.svg");
    --character-bottom-image-color: rgba(255, 255, 255, 0.1);
    --character-top-image-src: url("../images/characters/inverted-world-monster.svg");
    --character-top-image-color: #000;
    --background-lamp-image: url("../images/backgrounds/lamps-inverted.png");
    --footer-background-color: #000;
  }

  .dark-theme button,
  .dark-theme h1,
  .dark-theme h2,
  .dark-theme h3 {
    letter-spacing: 5px;
    font-weight: normal;
  }
  .dark-theme .invert-element {
    transform: rotateZ(180deg) scaleX(-1);
  }

  /**/

* {
    margin: 0;
    box-sizing: border-box;
    transition: 1s;
}
h1,
h2,
h3 {
    font-family: var(--featured-font-family);
    font-size: 3rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 40px;
}
p {
   color: var(--highlight-color);
}
p,
input,
textarea,
label {
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif ;
}
button {
    padding: 16px 32px;
    background-color: transparent;
    font-weight: 900;
    font-family: var(--featured-font-family);
    font-size: 1.25rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 1s;
    border-radius: .5rem;
   
}
input,
textarea {
    border: 2px solid var(--primary-color-contrast);
    background-color: var(--field-background-color);
    color: var(--primary-color-contrast);
    padding: 8px;
    margin-bottom: 24px;
    font-size: 1rem;
    border-radius: .5rem;
}
label {
  margin-bottom: 8px;  
}
input:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: black;
}
/* */
header {
    background-color: var(--header-background-color);
    min-height: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;

    
}

header::before{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: url("../images/banner/florest.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 90%;
   filter:  saturate(0);
   
  
    
}
.header-content {
    max-width: 700px;
    padding: 80px 20px;
    text-align: center;
    z-index: 2;
}
.header-content img {
     width: 80%;

}
.header-content p {
    margin:  30px 0 50px;
}
.header-content button {
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 1rem;
}
.header-content button:hover
{
    background-color: var(--primary-color);
    color: var(--primary-color-contrast);
   
} 

/**/

.world-characters{
    width: 100%;
    max-width: 900px;
    position: absolute;
}
.world-characters#top-characters{
    height: 100%;
    background-color: var(--character-top-image-color);
   
    mask: var(--character-top-image-src) bottom / 100% no-repeat;
    -webkit-mask: var(--character-top-image-src) bottom / 100% no-repeat;
    bottom: 3px;
}
.world-characters#bottom-characeters{
    height: 500px;
    background-color: var(--character-bottom-image-color);
    transform:  rotateZ(180deg) scaleX(-1);
    position: relative;
    top: 3px;
    
   mask: var(--character-bottom-image-src) bottom / contain no-repeat;
    --webkit-mask: var(--character-bottom-image-src) bottom / 100% no-repeat;
}

main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background: var(--page-background) no-repeat,
    url("../images/backgrounds/florest.png") no-repeat;
    background-size: cover;
    z-index: -1;
}

section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 95px;
}

.container {
    width: 95%;
}
#section-inverted-world{
    align-items: center;
}
#section-inverted-world .section-texts{
    width: 50%;
}
#section-inverted-world .section-texts h2{
    max-width: 300px;
}
#section-stranger-things-trailer .section-texts {
    width: 50%;
    text-align: center;

}
#section-stranger-things-trailer .section-texts h2 {
    display: inline-block;
    max-width: 425px;
}

#section-stranger-things-trailer .video-frame{
    background-color: var(--primary-color);
}
#section-stranger-things-trailer .video-frame iframe {
    position:relative; 
    bottom:24px;    
    left: 2px;
    border: 2px solid;
    border-image:  liner-gradient(
        var(--primary-color),
        var(--primary-color-contrast)
    );
    border-image-slice: 10;

}
#section-stranger-things-gallery {
    width: 100%;
    justify-content: center;
    background: var(--background-lamp-image) 120% / 50% no-repeat;
}
#section-stranger-things-gallery .container {
    width: 100%;
}
#section-stranger-things-gallery .container h2 {
    width: 800px;
}
#section-stranger-things-gallery .gallery-container {
    display: flex;
    gap: 50px;
    padding-left: 20px;
    
}
#section-stranger-things-gallery .gallery-image{
    width: 250px;
    height: 250px;
    outline: 20px solid var(--highlight-color);
    border: 3px solid var(--primary-color);
    box-sizing: initial;
    
}

#section-stranger-things-gallery .gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 10px solid var(--highlight-color);
}

#section-form {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}
#section-form h2{
    width: 600px;
}
#section-form  .form-content h3 {
    color: var(--highlight-color);
    flex-basis: 30%;
    text-align: left;
    margin: 0;
}
#section-form  .form-content h3 span {
    color: var(--primary-color);
}
#section-form  .form-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#section-form .form-container{
    flex-basis: 50%;
    position: relative;
}
#section-form .form-container:affa {
    content: "";
    background-color: var(--highlight-color);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 1;
}
#section-form .form-container form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    background-color: var(--primary-color);
    color: var(--primary-color-contrast);
    text-align: left;
}
#section-form .form-container form button{
    border:none;
    background-color: var(--field-background-color);
    color: var(--primary-color-contrast);
    max-width: 300px;
    align-items: center;
}
#section-form .form-container form button:hover{
    background-color: var(--primary-color-contrast);
    color: var(--field-background-color);
}

/* */

footer {
    padding:  60px 0;
    background-color:  var(--footer-background-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
footer p {
    max-width: 760px;
    margin-bottom: 24px;
}
footer::before,
footer::after {
    content: "";
    width: 300px;
    height: 200px;
    background: url("../images/footer/tape.svg") no-repeat;
    background-size: contain;
    position: absolute;
    bottom: -30px;
}
footer::before{
    left: -50px;
    transform: rotateZ(-10deg);
}
footer::after {
    right: -50px;
    transform: rotateZ(10deg);
}
/* video aula */
/* Estilos gerais para mobile-first */
body {
    font-size: 16px; /* Base acessível para fontes */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    min-height: 600px; /* Reduz altura para telas menores */
}

/* Ajustes específicos para dispositivos menores */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        min-height: 500px;
    }

    .header-content img {
        width: 90%; /* Ajusta imagem para caber na tela */
    }

    .header-content p {
        font-size: 1rem;
        margin: 20px 0;
    }

    .header-content button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    section {
        flex-direction: column;
        text-align: center;
    }

    #section-inverted-world .section-texts,
    #section-stranger-things-trailer .section-texts {
        width: 100%; /* Deixa os textos ocuparem toda a largura */
    }

    #section-stranger-things-gallery .gallery-container {
        flex-wrap: wrap;
        gap: 20px; /* Ajusta o espaçamento entre itens */
    }

    #section-stranger-things-gallery .gallery-image {
        width: 100%;
        max-width: 200px; /* Reduz o tamanho das imagens na galeria */
    }

    #section-form .form-content {
        flex-direction: column;
        gap: 20px;
    }

    #section-form .form-container {
        width: 100%;
    }

    footer {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1,
    h2,
    h3 {
        font-size: 2rem; /* Reduz tamanho das fontes maiores */
    }

    .header-content img {
        width: 80%;
    }

    #section-stranger-things-trailer iframe {
        width: 100%;
        height: 200px; /* Ajusta tamanho do vídeo */
    }

    #section-form {
        padding: 20px;
    }

    #section-form form {
        padding: 16px;
    }

    #section-form form input,
    #section-form form textarea {
        font-size: 1rem; /* Ajusta fontes dos campos */
    }

    #section-form form button {
        width: 100%;
    }
}
