body {
    background: linear-gradient(#1354A5 0%, #041832 33.33%, #041832 66.67%, #01080E 100%);
    padding: 0;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 25px;
}

body::before {
    background-image: url("img/code.png");
    background-repeat: no-repeat;
    background-position: right;
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

img {
    margin-top: -20px;
    transform: scaleX(-1);
    height: 390px; 
    max-width: 100%; 
}

.imagem {
    position: relative;
}

.mens {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mensagem2 {
    font-size:100px ;
}

.mensagem3 {
    border-radius: 30px;
    background-color: rgba(255, 0, 0, 0.603);
    width: 50px;
    text-align: center;
    color: aliceblue;
    font-size: 50px;
}

h1 {
    color: #b6bbc5;
    text-shadow: 4px 4px 6px #04073d;
    text-align: center;
    margin-bottom: 0px;
    margin-top: 0%;
    line-height: 40px;
    margin-top:12px;
}

.mensagem {
    text-align: center;
    text-shadow: 5px 5px 8px #04073d;
    color: rgb(198, 201, 204);
    font-size: 50px
}

.container {
    margin: 0 auto;
   
    margin-left: 10%; 
    width: 40%; 
    height: auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 24px;
    border: 1px solid #1875E8;
    box-shadow: 4px 4px 20px 0px rgba(1, 8, 14, 0.15);
    background-image: url("img/Ruido.png");
    background-size: 100% 100%;
}

.escolhaNumero {
    padding: 1px;
}

.chuteNumero {
    margin-top: -20px;
}

div {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 auto;
}

input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

p {
    margin: 0 auto;
}

#numeroMaximo, #chute {
    border-radius: 15px;
    padding: 10px;
    border: 1px solid #030303;
    margin-bottom: 10px;
    margin-top: 30px;
    width: 90%; /* Adjust width for smaller screens */
}

button {
    border-radius: 15px;
    background-color: #1875E8;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    display: inline-block;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

footer {
    color: white;
    text-align: center;
    font-size: 1.0em;
    padding: 0px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

footer a {
    color: white;
    font-weight: bolder;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 950px) {
    
    body {
        overflow: hidden; 
        align-items: center;
    }

    .imagem {
        margin-bottom: 20px;
    }

    h1 {
        margin-top: 1px;
        font-size: 30px;
    }

    #numeroMaximo, #chute {
        margin-top: 2px;
        margin-bottom: 1px;
    }

    button {
        margin-top: 1px;
    }

    .botaoReiniciar {
        margin-top: -10px;
    }

    .container {
        margin-top: -35px;
        width: 300px;
        height: 250px;
        overflow: hidden; 
    }

    img {
        margin-top: 10px;
        max-height: 250px;
        width: 350px;
    }

    p {
        font-size: 20px;
    }

    .mensagem {
        font-size: 25px;
    }

    .mensagem2 {
        margin-top: 1px;
    }
}

@media screen and (max-width: 450px) { /* Adjust breakpoint as needed */
    body {
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        
    }

    .imagem {
        margin-bottom: 20px; /* Add a margin to create space below the image */
    }
    h1 {
        font-size: 30px;
    }
   
    #numeroMaximo, #chute {
        margin-top: 2px;
        margin-bottom: 1px;
    }
    button {
        margin-top: 1px;
    }
    .botaoReiniciar {
        margin-top: -10px;
    }


    .container {
        margin-left: auto;
        margin-top: 20px;
        width: 300px;
        height: 250px;
        
    }

    img {
        margin-top: 10px;
        max-height: 250px;
        width: 350px;
    }

    p {
        font-size: 14px;
    }

    .mensagem {
        font-size: 30px;
        
    }

    .mensagem2 {
        margin-top: 50px;
    }
   
}