html, body {
    font-family: "Roboto", serif;
    background-color: #f5f5f5;
    background-image: url("/images/bg-cavilam.webp");
    background-position: bottom;
    background-size: cover;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "Roboto", serif;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.grid {
    height: 100dvh;
}

.gui {
    display: block;
    position: absolute;
    left: -40px;
    top: -30px;
    width: 100px;
    z-index: 2;
    filter: drop-shadow(3px 5px 6px rgba(3, 53, 129, 0.25));
}

.gui:hover {
    animation: tada; /* referring directly to the animation's @keyframe declaration */
    animation-duration: 0.5s; /* don't forget to set a duration! */
}

.container {
    width: 550px;
    height: auto;
    margin: auto;
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 2;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(3, 53, 129, 0.25);
    position: relative;
}

.form-control {
    padding: 8px;
    border: 1px solid rgba(3, 53, 129, 0.2);
    border-radius: 8px;
    font-family: "Roboto", serif;
    font-size: 1rem;
    width: 80%;
}

.alert-danger {
    color: rgba(3, 53, 129);
    border: 2px solid rgba(228, 5, 33, 0.75);
    border-radius: 8px;
    margin: 30px;
    animation: shakeX; /* referring directly to the animation's @keyframe declaration */
    animation-duration: 0.5s; /* don't forget to set a duration! */
}

.btn-primary {
    font-family: "Roboto", serif;
    width: 60%;
    padding: 10px;
    background: white;
    color: rgba(3, 53, 129);
    font-size: 1rem;
    border: 2px solid rgba(3, 53, 129);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.footer-info {
    font-size: 1rem;
    color: rgba(3, 53, 129);
    padding-top: 25px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

@media (min-width: 650px) {
    .grid {
        display: grid;
        grid-template-columns: 1fr 3fr 1fr;
        grid-template-rows: auto auto auto auto;
        grid-column-gap: 30px;
        grid-row-gap: 30px;
        justify-content: center;
    }
}

@media (max-width: 650px) {
    .grid {
        display: grid;
        grid-template-columns: 0fr 3fr 0fr;
        grid-template-rows: auto auto auto auto;
        grid-column-gap: 30px;
        grid-row-gap: 30px;
        justify-content: center;
    }
    
    .footer-info {
        flex-direction: column;
    }
    
    .gui {
        display: none;
    }
    
    .container {
        width: 100%;
        box-sizing: border-box;
    }

    .form-control {
        width: 95%;
    }

    .btn-primary {
        width: 100%;
    }
    
    .logoFooter {
        display: none;
    }
}

footer {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 4;
    padding-right: 10%;
    padding-left: 10%;
    box-shadow: 0 -4px 12px rgba(3, 53, 129, 0.25);
    background-color: white;
    display: flex;
    flex-direction: column;
    position: relative;
    bottom: 0;
    margin-top: auto;
    background-image: url("/images/cavilam-gui-footer.png");
    background-position: top;
}

.footer-info p {
    margin: 5px;
}

.footer-info a {
    text-decoration: none;
    color: rgba(3, 53, 129);
}

.infoText svg {
    height: 15px;
    margin: 0;
    fill: #e40521;
}

.col-social {
    display: flex;
    flex-direction: row;
}

.infoSocial {
    display: flex;
    height: 15px;
    width: 15px;
    border-radius: 30px;
    margin: 5px;
    padding: 6px;
    background-color: #e40521;
    justify-content: center;
    align-items: center;
}

.infoSocial svg {
    height: 100%;
    width: auto;
    fill: #ffffff;
    margin: auto;
}

.footer-info img {
    margin-bottom: 10px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(3, 53, 129);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.container-content {
    max-width: 600px;
    margin: 10px auto;
    padding: 10px;
    text-align: center;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    height: auto;
    width: 300px;
}

.logoFooter {
    margin-right: 50px;
}

.gui img {
    height: auto;
    width: 100px;
}

.form-group {
    margin-bottom: 15px;
}

.btn-primary:hover {
    background: rgba(3, 53, 129);
    color: white;
    border: 2px solid rgba(3, 53, 129);
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.text-center {
    color: rgba(3, 53, 129);
    text-align: center;
}