html, body {
  height: 100%;
  margin: 0;
  line-height: 110%;
}

body {
  display: flex;
  flex-direction: column;
}
footer button:hover{
    opacity:70%;
}
main {
  flex: 1; /* this stretches main to fill space */
}
.H1, a{
    font-weight: 500;
    text-align: center;
}
.H1{
    text-transform: uppercase;
}
footer :is(a, p, .H1, button, img, legend){
    color: white;
    text-decoration: none;
}
.footer-form{
    display: flex;
    align-items: center;
    flex-direction: column;
}
footer {
    background-color: #400080;
    display:flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 0;
    bottom:0;
    z-index:0;
    width: 100%;
}

.footer-form-submit{
    background-color: #00000000;
    border: none;
    width: min-content;
    font-weight: 500;
    text-transform: uppercase;
}
#footer-email {
    width:100%;
    height: 40px;
    border-radius: 7px;
    border: none;
    padding: 8px;
    color: #26004D;
    background: #fff;
    outline: none;
}

#footer-email:focus {
    border: 2px solid #cc99ff;
    outline: none;
}
.footer div{
    display: flex;
    flex-direction: column;
    
}
footer a{
    white-space: nowrap;
}
.footer-nav a:hover{
    color: #ffffffb2;
}
.footer{
    display:flex;
    padding-bottom: 1%;
}
.footer-contact-form{
    display: flex;
}

.footer-contact-link:hover{
    opacity: 70%;
}
.footer-bar{
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 0;
    height: auto;
    width: 100%;
    background-color: #26004D;
}

.footer-bar-content{
    display: flex;
    flex-direction:row;
    align-items: center;
    justify-content: space-evenly;
    height:65px;
    width:100%;
    padding-left:50px;
    padding-right:50px;
    max-width: 1340px;
}
.sinatura-footer{
    display: flex;
    align-items: center;
    height:80%;
    width:33%;
}

.copyright{
    
    text-align:center;
    width:33%;
}
.made-by{
    display:flex;
    flex-direction:row;
    align-items: center;
    justify-content: flex-end;
    width:33%;
    gap:10px;
}
.footer input:active{
    color:#26004D;
    border:#400080 2;
}
.footer-fieldset {
    border: none;
    width:100%;
}

legend{
    padding: 3px;
}


/* Desktop styles - form between nav and contact */
@media (min-width: 1024px) {
    .footer-form-submit{
        padding-bottom: 10px;
        font-size:18px;
    }
    footer a{
    
    font-size: 20px;
    text-align: center;
    }
    footer .H1{
        font-size: clamp(4px, 1.55vw, 18px);
        white-space: nowrap;
    }
    footer{
        height:330px;

    }
    p{
    font-size: 14px;
    text-align: justify;
    }
    
    .footer{
    justify-content: space-between;
    margin-left:auto;
    margin-right:auto;
    flex-wrap: nowrap;
    height:275px;
    width:100%;
    max-width: 1340px;
    padding-top:40px;
    padding-left:50px;
    padding-right:50px;
    }
    .footer div{
        width: 33%;
    }

    .footer-nav{
        order:1;
        gap:15px;
        padding-top: 0px;
    }
    .footer-nav a{
        text-align: start;
        width: 100%;
    }
    .footer-contact-form{
        order:2;
        gap:20px;
        padding-left:20px;
        padding-right: 20px;
    }
    .footer button{
        font-size: 20px;
    }
    .footer-form{
        width:100%;
        height:100%;
        justify-content: space-between;
        flex-shrink: 3;
    }
    .wrapper{
        display:flex;

    }
    .footer-contact-link{
        display:inline-block;
        margin-left:auto;
    }
    .contact-section{
        order:3;
        gap:25px;
    }
    .contact-section :is(a, p){
        text-align: right;
    }

}











/* Tablet styles - horizontal layout */
@media (max-width: 1024px) and (min-width: 767px) {
    .footer{
    flex-wrap: wrap;
    height:500px;
    align-items: center;
    justify-content: space-between;
    }
    footer{
        height:450px;

    }
    .footer-contact-form{
        padding-top: 30px;
        align-items: center;
        height: 50%;
        padding-left:20%;
        padding-right: 20%;
    }
    .footer-form{
        width:100%;
        max-width:460px;
        height:100%;
        justify-content: center;
        flex-shrink: 3;
    }
    
    .footer-nav{
        gap:15px;
        padding-left: 5%;
    }
    .sinatura-footer{
        width:35%;
    }
    .made-by{
        width:35%;
    }
    .contact-section{
        gap:25px;
        padding-right:5%;
    }
    .copyright{
        width: 70%;
        padding-right:5%;
    }
    .footer button{
        margin-top:30px;
    }
    .footer-form-submit{
        padding-bottom: 10px;
        font-size:18px;
    }
    footer a{
    
    font-size: 20px;
    text-align: center;
    }
    footer .H1{
        font-size:18px;
        margin-bottom:10px;
    }
    .made-by p{
        width: max-content;
    }
    p{
    font-size: 14px;
    text-align: justify;
    }
    .footer-form p{
        margin-bottom:20px;
        width: 100%;
    }
    footer :is(.H1, a){
    font-size: 18px;
    text-align: center;
    }
    p{
    font-size: 14px;
    text-align: justify;
    }
    .footer-nav {
        display: flex;
        width:50%;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .footer-contact-form{
        width: 100%;
    }
    .contact-section {
        display: flex;
        gap: 20px;
        width: 50%;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
    }
    .contact-section :is(a, p){
        text-align: right;
        width: 80%;
    }

    .footer-nav a{
        text-align: left;
        width: 80%;
    }

}












/* Mobile styles - vertical layout */
@media (max-width: 767px) {
    footer{
        bottom: auto;
        align-items: center;
    }
    .footer-form{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content:center;
    }
    .footer-fieldset{
        width:80%;
    }
    .contact-section{
        justify-content: space-around;
        align-items: center;
    }
    .footer-bar{
        height:100px;
    }
    .footer-bar-content{
        flex-wrap: wrap;
        justify-content: space-evenly;
        padding-left:5%;
        padding-right: 5%;
        height:100%;
    }
    .footer p{
        font-size: 16px;
    }
    .address{
        text-align: center;
    }
    .footer-contact-text{
        text-align: justify;
        width:80%;
    }
    .sinatura-footer{
        height:60%;
        width:50%;
        justify-content: center;
    }
    .sinatura-footer img{
        height:70%;
    }
    .copyright{
        padding-bottom: 10px;
        font-size:14px ;
        width:100%;
        height:20%;
        order:3;
    }
    .made-by img{
        height:80%;
    }
    .made-by p{
        width: max-content;
    }
    .made-by{
        font-size: 14px;
        height:60%;
        width: 50%;
        justify-content: center;
        gap:5%;
    }
    .footer{
    padding-top:97px;
    height:500px;
    flex-direction: column;
    align-items: center;
    justify-content:space-evenly;
    width: 100%;
    height:100%;
    min-height:560px;
    background-color: #400080;
    }
    footer{
        height:100vh;
        max-height:600px;
    }
    .footer > *{
        flex:1;
        justify-content: space-evenly;
    }
    .footer button{
        font-size: 18px;
    }
    .footer-form{
        gap: 15px;
        padding-bottom: 20px;
    }
    legend{
        font-size:16px;
    }
    .footer-nav,
    .contact-section {
        width: 100%;
    }
}
