@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

h1 {
    color: #ffffff;
    font-size: 25px;
    margin-top: 40px;
    text-align: center;
}

p {
    color: #ffffff;
    font-size: 20px;
    margin-top: 10px;
    line-height: 1.5;
    text-align: center;
}

.button-contact {
    font-family: 'Press Start 2P', cursive;
    padding: 15px 30px;
    background: #e0e0e0;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    border: 3px solid #000;
    font-size: 0.8em;
    transition: all 0.3s;
    box-shadow: 5px 5px 0px #000;
}

.button-form {
    margin-top: 20px;
    font-family: 'Press Start 2P', cursive;
    padding: 15px 30px;
    background: #e0e0e0;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    border: 3px solid #000;
    font-size: 0.8em;
    transition: all 0.3s;
    box-shadow: 5px 5px 0px #000;
}

/* Botão de fechar formulário */
.btn-fechar-form {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #e52521;
    color: white;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 2px 2px 0px #000;
}

.btn-fechar-form:hover {
    background: #ff0000;
    transform: rotate(90deg);
    box-shadow: 3px 3px 0px #000;
}

/* Ajuste no formulário para posição relativa */
.formulario-fale-conosco {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: fixed;
    padding: 20px;
    border-radius: 5px;
    z-index: 1001;
    left: -9999px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    top: 30%;
    width: 280px;
}

#button-contact {
    padding: 0 30px;
    font-family: 'Press Start 2P', cursive;
    background: #e0e0e0;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    border: 3px solid #000;
    font-size: 0.8em;
    transition: all 0.3s;
    box-shadow: 5px 5px 0px #000;
}

.button:hover {
    background: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #000;
}

.botoes-container {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Estilização do botão do jogo */
.button-jogo {
    font-family: 'Press Start 2P', cursive;
    padding: 15px 30px;
    background: #e52521;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: 3px solid #000;
    font-size: 0.8em;
    transition: all 0.3s;
    box-shadow: 5px 5px 0px #000;
    cursor: pointer;
    display: inline-block;
}

.button-jogo:hover {
    background: #ff3b30;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #000;
}

.button-contact:hover {
    background: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #000;
    cursor: pointer;
}

.button-contact2 {
    display: block;
    margin: 0 auto;
    font-family: 'Press Start 2P', cursive;
    padding: 15px 30px;
    background: #e0e0e0;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    border: 3px solid #000;
    font-size: 0.8em;
    transition: all 0.3s;
    box-shadow: 5px 5px 0px #000;
    cursor: pointer;
}

.button-contact2:hover {
    background: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #000;
}

.logo-mario {
    height: 200px;
    margin-left: 250px;
}

.img-mario-luigi {
    height: 500px;
}

.caixa-mae {
    display: flex;
    align-items: center;
    padding: 50px;
    justify-content: space-around;
}

.caixa-principal {
    width: 50%;
}

.caixa-video {
    position: fixed;
    top: 0;
    z-index: -1;
}

video {
    min-height: 100vh;
    min-width: 100vw;
}

.mascara {
    height: 100%;
    width: 100%;
    background: linear-gradient(109deg, rgba(10, 12, 16, 0.99) 15%, rgba(10, 12, 16, 0.7) 50%, rgba(10, 12, 16, 0.99) 85%);
    position: fixed;
    top: 0;
    right: 0;
}

.link-whatsapp img {
    height: 60px;
    position: fixed;
    right: 20px;
    bottom: 40px;
}

.header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 30px;
}

.header img {
    height: 60px;
}

.header a {
    font-family: 'Press Start 2P', cursive;
    text-decoration: none;
    color: #ffffff;
    margin-left: 20px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}

.header a:hover {
    color: #c51111;
    font-size: 16px;
    transition: 0.5s ease-in-out;
}

input {
    height: 40px;
    border-radius: 5px;
    border: 1px solid gray;
    padding-left: 20px;
    outline-color: #18d80f;
}

textarea {
    width: 240px;
    height: 100px;
    border-radius: 5px;
    border: 1px solid gray;
    padding-left: 20px;
    outline-color: #18d80f;
}

.mascara-formulario {
    visibility: hidden;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(109deg, rgba(10, 12, 16, 0.99) 15%, rgba(10, 12, 16, 0.7) 50%, rgba(10, 12, 16, 0.99) 85%);
    z-index: 1000;
    transition: visibility 0.2s ease-in-out;
}

.background-2 {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.mascara-nossos-servicos {
    position: fixed;
    top: 0;
    z-index: -1;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(109deg, rgba(10, 12, 16, 0.99) 15%, rgba(10, 12, 16, 0.7) 50%, rgba(10, 12, 16, 0.99) 85%);
}

.caixa-mae2 {
    display: flex;
    padding: 50px;
    gap: 20px;
    justify-content: center;
}

.img-luigi {
    margin-right: 100px;
    margin-top: 20px;
    padding-bottom: 100px;
    width: 200px;
}

.footer {
    display: block;
    align-items: flex-end;
    justify-content: center;
    margin-top: 100px;
}

.footer a {
    text-decoration: none;
    color: #c51111;
}

.footer a:hover {
    color: #0761F0;
    transition: 0.2s ease-in-out;
}

#cogumelo {
    position: fixed;
    width: 50px;
    height: auto;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    z-index: 9999;
}


.servicos {
    color: #ffffff;
    margin-top: 50px;
    margin-left: 5px;
    margin-right: 250px;
    padding-right: 50px;
    font-weight: 600;
}

.servicos h1 {
    font-size: 45px;
    font-weight: 600;
}

.servicos p {
    font-size: 24px;
    font-weight: 300;
}

.servicos p:hover {
    color: #c51111;
    transition: 0.2s ease-in-out;
}

/* Estados do formulário */
input:focus,
textarea:focus {
    outline: none;
    border: 2px solid #18d80f !important;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border: 2px solid #e52521;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border: 2px solid #18d80f;
}

/* Animação de erro */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.erro-shake {
    animation: shake 0.3s;
    border: 2px solid #e52521 !important;
}


/*  RESPONSIVO TELAS MENORES  **************************************/

@media (max-width: 1630px) {
    h1 {
        color: #ffffff;
        font-size: 18px;
        margin: 0;
    }

    p {
        color: #ffffff;
        font-size: 20px;
        margin-top: 10px;
        line-height: 1.5;
    }

    .header {
        display: flex;
        align-items: center;
        gap: 30px;
        margin: 10px;
    }

    .caixa-mae {
        display: flex;
        align-items: center;
        padding: 0px;
        justify-content: space-around;
        gap: 10px;
    }

    .caixa-principal {
        width: 50%;
        height: -10%;
    }

    .caixa-video {
        position: fixed;
        top: 0;
        z-index: -1;
    }

    .logo-mario {
        height: 150px;
        margin-left: 50px;
    }

    .img-mario-luigi {
        height: 400px;
    }

    .footer {
        display: block;
        align-items: flex-end;
        justify-content: center;
        text-decoration: none;
    }

}

/*  RESPONSIVO CELULARES  **************************************/

@media (max-width: 768px) {

    body,
    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    p {
        display: none;
    }

    .caixa-mae {
        flex-direction: column;
        justify-content: flex-start;
        padding: 0px;
        width: 100%;
        overflow-x: hidden;
    }

    .caixa-principal {
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .logo-mario {
        align-items: center;
        margin: 0px 30px 20px;
    }

    .img-mario-luigi {
        width: 250px;
        height: auto;
        margin: 10px;
    }

    .header {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin: 0;
        padding: 10px 0;
        font-size: 12px;
        width: 100%;
    }

    .header a {
        font-size: 11px;
        margin: 0;
        padding: 5px 8px;
    }

    .header img {
        display: none;
        width: 0;
        height: 0;
        margin: 0;
    }

    h1 {
        width: 100vw;
        font-size: 18px;
        text-align: center;
        padding: 0px 30px;
        margin: 0px;
    }

    .button-contact {
        font-family: 'Press Start 2P', cursive;
        display: flex;
        justify-content: center;
        margin: 25px;
        padding: 15px;
    }

    .button-contact2 {
        font-family: 'Press Start 2P', cursive;
        display: flex;
        justify-content: center;
        margin: 25px;
        padding: 15px;
    }


    .button {
        display: flex;
        justify-content: center;
        margin: 25px;
        padding: 15px;
    }

    .formulario-fale-conosco {
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        gap: 15px;
        position: fixed;
        top: 50px;
        padding: 20px;
        border-radius: 5px;
        top: 30%;
        transition: left 0.5s ease-in-out;
    }

    .caixa-mae2 {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 0px;
        padding: 20px;
        width: 100%;
        text-align: center;
    }

    .img-luigi {
        margin: 10px auto;
        padding: 0px;
        width: 60px;
    }

    .servicos {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .servicos h1 {
        font-size: 28px;
        width: 100%;
        word-wrap: break-word;
    }

    .servicos p {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 0;
        font-size: 18px;
        text-align: center;
    }

    #button-contact2 {
        font-family: 'Press Start 2P', cursive;
        margin-left: 35%;
    }

    .button-jogo {
        font-family: 'Press Start 2P', cursive;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 280px;
        margin: 10px auto;
        padding: 12px 15px;
        font-size: 0.6em;
        line-height: 1.3;
    }

}