body{
    font-family: Arial, Helvetica, sans-serif;
}
.item{
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    background-color: var(--background);
}

.item.active{
    display: block;
}

.item .titulo{
    /* clamp() = tamanho mínimo - preferencial - máximo */
    font-size: clamp(1.5rem, 8vw, 5rem);
    color: #FFF;
    font-family: "Lobster Two", sans-serif;
    font-weight: 700;
    font-style: italic;
    text-align: left;
    position: absolute;
    left: 40%;
    top: 20%;
    transform: translate(-50%, -50%);
    text-shadow: 4px 4px 10px #333;
    display: inline-block;
}

.item .texto{
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: #FFF;
    width: 300px;
    position: absolute;
    text-align: right;
    right: 5%;
    top: 70%;
}

.item .logo{
    width: 10%;
    position: absolute;
    top: 15%;
    right: 5%;
    z-index: 3;
}

.item .carro{
    width: 60%;
    z-index: 2;
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
}

.item .link{
    width: 150px;
    height: 50px;
    display: block;
    position: absolute;
    left: 20%;
    top: 80%;
    color: #333;
    background-color: rgba(255, 255, 255, 0.3);
    line-height: 50px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 2px 2px 4px #333;
}

#prev, #next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: x-large;
    font-family: monospace;
    cursor: pointer;
    z-index: 4;
    border-radius: 50%;
    transition: 0.5s ease;
}
#prev:hover, #next:hover{
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
#prev{
    left: 30px;
}
#next{
    right: 30px;
}
#prev:hover{
    left: 20px;
}
#next:hover{
    right: 20px;
}

@keyframes deslizaTitulo {
    from{
        top: 100%;
        opacity: 0;
    }
}

@keyframes deslizaCarro {
    from{
        left: 100%;
        opacity: 0;
    }
}

@keyframes deslizaLogo {
    from {
        top: -50%; 
        opacity: 0;
    }
    to {
        top: 15%;
        opacity: 1;
    }
}

@keyframes apareceTexto {
    from{
        opacity: 0;
    }
}

@keyframes deslizaLink {
    from {
        left: -50%; 
        opacity: 0;
    }
    to {
        left: 20%;
        opacity: 1;
    }
}

.item.active .titulo{
    animation: deslizaTitulo 0.5s ease-in-out 1;
}

.item.active img.logo{
    animation: deslizaLogo 1.0s ease-in-out 1;
}

.item.active .carro{
    animation: deslizaCarro 0.5s ease-in-out 1;
}

.item.active .texto{
    animation: apareceTexto 2s ease-in-out 1;
}

.item.active .link{
    animation: deslizaLink 2s ease-in-out 1;
}

@media only screen and (max-width: 600px){
    .item .texto{
        font-size: 18px;
    }
    .item .link{
        width: 100px;
        height: 30px;
        line-height: 30px;
    }
}