
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
}
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}
body{
    background-color: black !important;
    background-image: url('/static/media/BackgroundHorizontal.png');
    background-size: cover;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow: hidden;
}
nav{
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 99;
}
.socials {
    display: flex;
    gap: 20px;
}
.socials a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}
.logo img{
    width: 150px;
}
.link-socials img{
    width: 18px;
    height: 18px;
    aspect-ratio: 4/3;
}
.container {
    display: flex;
    flex-direction: column;
}
.content {
    display: none;  /* Initially hidden */
    height: 100vh;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    opacity: 0;  /* Initially invisible */
    animation: opacity 1.5s;  /* Smooth opacity transition */
}
.content-grid{
    grid-column: 1;
    width: 100%;
    display: flex;
    align-items: center;
}
.content-grid-form{
    grid-column: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: right;
}
.content-grid h1{
    color: #da0e2b;
    width: 100%;
    text-align: right;
    margin-right: 30%;
}
.active {
    display: grid;  /* Show as flex */
    opacity: 1;  /* Fully visible */
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(100px, auto);
}
.form-newsletter{
    padding: 10px;
    display: flex;
    align-items: center;
    position: relative;
    height: auto;
    background: transparent;
    z-index: 10;
    flex-direction: column;
    pointer-events: auto;
    border: 3px solid #da0e2b;
    border-radius: 15px;
    margin-right: 15%;
    max-width: 80%;
}
.form-newsletter h1{
    color: white;
    font-size: 1em;
    margin-bottom: 5px;
}
.form-newsletter p{
    color: white;
    font-size: 11px;
    margin-bottom: 5px;
    text-align: center;
}
.div-input{
    margin: 10px 10px 10px 10px;
}
.div-button{
    margin: 0 10px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.div-button:hover{
    cursor: pointer;
}
input[type="email" i] {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 25px;
    font-size: 20px;
    padding: 8px 40px 8px 20px;
    border: none;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}
input[type="email" i]:focus{
    outline: none;
}
.button-form {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 25px;
    font-size: 15px;
    padding: 8px 40px 8px 20px;
    border: none;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    color: white;
    background-color: #da0e2b;
    text-align: center;
}
.button-form span{
    display: block;
    text-align: center;
    margin-left: 12.5%;
}
.icon-button {
    position: fixed;
    width: 50px;
    font-size: 18px;
    color: white;
}
.error{
    font-size: 10px;
    color: red;
}
.success{
    font-size: 10px;
    color: green;
}
small{
    padding: 2px;
}
footer {
    background: #000000;
    position: fixed;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px;
    height: 20px;
    z-index: 99;
    bottom: 0;
    left: 0;
}
footer span {
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: white;
    line-height: 25px;
}
@keyframes opacity{
    0%{
        opacity: 0%;
    }
    50%{
        opacity: 50%;
    }
    100%{
        opacity: 100%;
    }
}



/*dimmensions for mobile*/
@media screen and (max-width:700px), screen and (height > 600){
    body{
        background-image: url('/static/media/BackgroundVertical.png');
        background-size: cover;
        background-position: 100% center;
        background-repeat: no-repeat;
        min-height: 90vh;
    }
    .active{
        display: flex;
        opacity: 1;
    }
    .content{
        height: 80vh;
    }
    .content-grid{
        height: 80vh;
        width: 100%;
        display: flex;
        align-items: center;
    }
    .content-grid h1{
        margin: 0;
        text-align: center;
        position: relative;
        top: 35%;
    }
    .content-grid-form{
        grid-column: 1;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        top: 40%;
    }
    .form-newsletter{
        max-width: 80%;
        margin-right: 0px;
        width: auto;
    }
    footer span {
        text-align: center;
    }
}
@media screen and (max-width:700px), screen and (height < 700px){
    .content-grid-form{
        grid-column: 1;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
}
@media screen and (max-width:700px) and (hover:hover){
    body{
        background: url('/static/media/BackgroundVertical.png');
        background-size: cover;
        background-position: 100% center;
        background-repeat: no-repeat;
        min-height: 90vh;
    }
    .active{
        display: flex;
        opacity: 1;
    }
    .content{
        height: 80vh;
    }
    .content-grid{
        height: 80vh;
        width: 100%;
        display: flex;
        align-items: center;
    }
    .content-grid h1{
        margin: 0;
        text-align: center;
        position: relative;
        top: 35%;
    }
    .content-grid-form{
        grid-column: 1;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        top: 40%;
    }
    .form-newsletter{
        max-width: 80%;
        margin-right: 0px;
        width: auto;
    }
    footer span {
        text-align: center;
    }
}  
/*dimensions for tablets*/
@media screen and (min-width:701px) and (max-width:1024px){
    body{
        background-position: 80% 100%;
    }
    .content h1{
        margin: 0;
        text-align: center;
        position: relative;
    }
    .form-newsletter{   
        margin-right: 15%;
        max-width: 70%;
        width: auto;
    }
}