/* Estilos para o corpo do projeto */
/* Importa a fonte Roboto Mono do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

body {
    font-family: "roboto mono", sans-serif;
    margin: 0;
    height: 100vh; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
}





/* Estilos para o main */
main {
    flex: 1;                  
    padding: 20px;
    display: flex;
    justify-content: center;  
    align-items: center;
}






/* Estilos para o header */
header {
    background: #333;
    color: #fff;
    display: flex;  
}

nav {
    display: flex;
    background-color: #333;
    color: #fff;     
    margin: 1%;  
}

nav img {
    width: 20%;       
    margin: 5%;
}

h1 {     
    font-size: 20px; 
    margin-top: 12%;
    color: #ffffff;         
}

h3 {
    font-size: 20px; 
    margin-top: 5%;  
    color: #ffffff;     
}






/* Estilos para o QR code */
#qrcode {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    text-align: center; 
}

#qrcode-img {
    width: 100%;
    height: 100%;
    margin: 5%;
}

/* Estilos para o input e o botão */
input[type="text"] {
    margin-top: 20px;
    padding: 10px;
    width: 50%;
    overflow: hidden;
}

button {
    margin-top: 10px;
    padding: 10px;
    background-color: #343635;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
}

button:hover {
    background-color: #3594f2;
}





/* Estilos para o footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0; 
    width: 100%; 
    position: relative; 
    bottom: 0;
}

footer p {
    margin: 2%; 
    padding: 0; 
}

#clique-footer:hover{
    cursor: pointer;
}  


/* ===== Responsividade com Media Queries ===== */

/* Telas menores (Tablets, 768px) */
@media (max-width: 768px) {

    input[type="text"] {
        width: 90%;
    }

    button {
        width: 90%;
    }

    #qrcode-img {
        width: 100%;
        height: 100%;
        margin: 5%;
    }

    footer {  
        font-size: 50%;
    }

}

/* Telas muito pequenas (Smartphones, 480px) */
@media (max-width: 480px) {

    input[type="text"] {
        width: 90%;
    }

    button {
        width: 90%;
    }

    #qrcode-img {
        width: 100%;
        height: 100%;
        margin: 5%;
    }

    footer {  
        font-size: 50%;
    }

}

/* Telas muito grandes (Monitores grandes, 1200px+) */
@media (min-width: 1200px) {

    input[type="text"] {
        width: 90%;
    }

    button {
        width: 90%;
    }

    #qrcode-img {
        width: 100%;
        height: 100%;
        margin: 5%;
    }

}