* {
    box-sizing: border-box; 
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; 
}

.header-main {
    width: 100%;
    height: auto;
    min-height: 80px;
    background-color: #1a1a1a;
    position: relative; 
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    color: white; 
    border-bottom: 1px solid #333;
    padding: 10px 20px;
}

.header-main h1 {
    font-size: 1.3rem;
    margin: 0;
}

.title-university {
    font-size: 1.2em;
    margin: 0;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 40px 10px;
    width: 100%;
    max-width: 500px;
}

.form-group h2 {
    text-align: center;
    font-size: 1.1rem;
    margin: 0;
}

.res {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #000;
}

.centercenter {
    display: flex;
    justify-content: center;
    width: 100%;
}

.text-center {
    text-align: center;
    width: 100%;
    padding: 0 10px;
}

.seubutao {
    width: 120px;
    height: 40px;
    color: white;
    background-color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

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

.memes img {         
    max-width: 90%; 
    height: auto;               
    display: block;
    object-fit: contain;
}

.footer-main {
    width: 100%;
    background-color: #1a1a1a;
    color: #888; 
    margin-top: auto; 
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.8rem;
    padding: 20px 10px;
}

@media (min-width: 769px) {
    .header-main h1 { font-size: 1.5rem; }
    .memes { flex-direction: row; flex-wrap: wrap; }
    .memes img { max-width: 300px; }
}

@media (max-width: 480px) {
    .header-main {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .title-university { margin-top: 5px; }
}