/* RESET E CONFIGURAÇÕES INICIAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ccee66;
    color: white;
    padding: 20px 160px;
    font-family: "Noto Sans", sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    background: #202020;
    position: absolute;
    top: 0;
    left: -600px;
    transform: rotate(-70deg);
    width: 100%;
    height: 120%;
    z-index: 0;
}

body::after {
    content: 'Nike';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 250px;
    font-weight: bold;
    opacity: 0.5;
    z-index: 0;
}

.logo {
    width: 80px;
    z-index: 2;
    position: relative;
}

/* CONTEÚDO PRINCIPAL */
.caixa-principal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75%;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 30px;
}

.caixa-texto {
    max-width: 500px;
    z-index: 2;
}

.caixa-texto h4 {
    font-size: 30px;
}

.caixa-texto h1 {
    font-size: 80px;
}

.caixa-texto p {
    font-size: 16px;
    margin-bottom: 40px;
}

.botao-carrinho {
    background: #a3be52;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    color: black;
    cursor: pointer;
    transition: 0.5s;
    text-decoration: none;
}

.botao-carrinho:hover {
    opacity: 0.7;
}

/* IMAGEM */
.caixa-imagem {
    z-index: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imagem-tenis {
    width: 800px;
    max-width: 100%;
    transform: rotate(-25deg);
    filter: drop-shadow(30px 45px 40px #161616);
    transition: 1s;
}

.troca-efeito {
    opacity: 0;
    transform: rotate(-25deg) translateY(-30px);
}

/* BOTÕES DE CORES */
.caixa-botoes {
    z-index: 2;
    position: relative;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.botoes {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    transition: 0.3s;
}

.botoes:active {
    opacity: 0.6;
}

.verde {
    background: #ccee66;
}

.azul {
    background: #58cced;
}

.rosa {
    background: #ff9eb5;
}

/* MEDIA QUERIES - RESPONSIVIDADE */
@media (max-width: 1200px) {
    body {
        padding: 20px 60px;
    }

    .caixa-texto h1 {
        font-size: 60px;
    }

    .imagem-tenis {
        width: 600px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px;
        overflow: auto;
    }

    .caixa-principal {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        height: auto;
    }

    .caixa-texto h1 {
        font-size: 50px;
    }

    .caixa-texto h4 {
        font-size: 24px;
    }

    .imagem-tenis {
        width: 90%;
        max-width: 400px;
    }

    body::after {
        font-size: 120px;
    }
}

@media (max-width: 400px) {

    .logo{
        margin-top: 40px;
    }

    .caixa-principal{
        margin-top: 25px;
        
    }
    .caixa-texto h1 {
        font-size: 36px;
        margin-top: 15px;
    }

    .caixa-texto h4 {
        font-size: 20px;
        margin-top: 15px;

    }

    .caixa-texto p {
        font-size: 14px;
        margin-top: 15px;

    }

    .botao-carrinho {
        width: 100%;
        text-align: center;
        margin-top: 15px;

    }

    .imagem-tenis {
        width: 95%;
        margin-top: 100px;

    }

    .botoes {
        width: 60px;
        height: 60px;
        margin-top: 75px;

    }

    body::before{
        width: 130%;
        height: 125%;
        transform: rotate(-70deg);
        position: absolute;
        z-index: 1;
    }

    body::after {
        font-size: 80px;
    }
}
