@import url('https://fonts.googleapis.com/css2?family=Vollkorn&display=swap');

header {
    background: linear-gradient(135deg, #363f69, #263055);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 0px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.squares div {
    position: absolute;
    background: rgba(255, 255, 255, 0.466);
    border-radius: 10px;
    opacity: 0.6;
    animation: floatingSquares linear infinite;
}

.squares div:nth-child(1) {
    width: 25px; height: 25px;
    left: 10%; bottom: -30px;
    animation-duration: 5s;
    animation-delay: 3s;
}

.squares div:nth-child(2) {
    width: 95px; height: 95px;
    left: 85%; bottom: -100px;
    animation-duration: 5s;
    animation-delay: 5s;
}

.squares div:nth-child(3) {
    width: 55px; height: 55px;
    left: 75%; bottom: -90px;
    animation-duration: 5s;
    animation-delay: 3s;
}

.squares div:nth-child(4) {
    width: 70px; height: 70px;
    left: 25%; bottom: -70px;
    animation-duration: 6s;
}

.squares div:nth-child(5) {
    width: 45px; height: 45px;
    left: 55%; bottom: -95px;
    animation-duration: 5s;
    animation-delay: 1s;
}

@keyframes floatingSquares {
    from {
        transform: translateY(1000) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    to {
        transform: translateY(-300px) rotate(360deg) scale(1.3);
        opacity: 0;
    }
}

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    padding: 0;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    position: relative;
    overflow-x: hidden;
}

html{
    overflow-x: hidden;
}

.barrinha {
    width: 60%;
    height: 1px;
    background: hsla(220, 21%, 42%, 0.637);
    margin: auto;         
}

h1 {
    font-family: sans-serif;
    font-size: 30px;
    font-weight: bold;
    color: #263055;
}

h2 {
    color: #263055;
    font-size: 21px;
    text-align: center;
    margin: 10px 0 10px;
}

.titulo1 {
    text-align: center;
    justify-content: center;
    padding-top: 55px;
}

.titulo2 {
    text-align: center;
    justify-content: center;
    padding-top: 20px;
}

.portais, .links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px 0px;
    gap: 8px;
    align-items: center;
}

.card {
    background: white;
    padding: 20px;
    margin: 15px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 180px;
    height: 160px;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}   

.card:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.icon {
    font-size: 40px;
}

img.fapex {
    width: 45px;
    margin: 8px;
}

img.coordenador{
    width: 55px;
    margin: 3px;
}

img.rh{
    width: 55px;
    margin: 3px;
}

img.sapro{
    width: 54px;
    margin: 3px;
}

.image {
    justify-content: center;
    justify-items: center;
    align-items: center;
}

.links{
    padding-bottom: 75px;
}

@keyframes mexer {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

.card:hover .icon, .card:hover .image {
    animation: mexer 0.5s ease-in-out;
}

footer {
    background: linear-gradient(135deg, #1a2347, #101831);
    text-align: center;
    padding: 10px;
    margin-top: auto;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
} 

@media (max-width: 768px) {


    .portais, .links {
        padding: 20px 0 75px;
    }

    .titulo1{
        padding-top: 70px;
    }

    .card {
        width: 300px;
        height: 140px;
    }

    .icon {
        font-size: 45px;
        margin-bottom: 15px;
    }
}