@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp10 {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(10px);
    }
}


@keyframes moveAndRotate {
    0%, 100% {
        transform: translateY(-4px) rotate(0deg);
    }
    25% {
        transform: translateY(4px) rotate(4deg);
    }
    50% {
        transform: translateY(-4px) rotate(-4deg);
    }
    75% {
        transform: translateY(4px) rotate(4deg);
    }
}

@keyframes moveAndRotate2 {
    0%, 100% {
        transform: translateY(-2px) rotate(0deg);
    }
    25% {
        transform: translateY(2px) rotate(2deg);
    }
    50% {
        transform: translateY(-2px) rotate(-2deg);
    }
    75% {
        transform: translateY(2px) rotate(2deg);
    }
}

@keyframes Rotate {
    0%, 100% {
        transform: translateY(-0.5px) rotate(0deg);
    }
    25% {
        transform: translateY(0.5px) rotate(3deg);
    }
    50% {
        transform: translateY(-0.5px) rotate(-3deg);
    }
    75% {
        transform: translateY(0.5px) rotate(3deg);
    }
}


body, html {
    padding: 0;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    line-height: 26px;
    font-style: normal;
    color: #404040;
    height: 100%;
}

#root {
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
}

.header, footer {
    padding: 1.25rem 1.5rem;
}

main {
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.logo {
    width: 170px;
    height: auto;
    display: block; 
}

.top-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.icons-container {
    padding: 1.2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 80%;
    gap: 10px;
}

.icon {
    width: 50px;
    height: auto;
    flex: 1 1 auto;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.icon:nth-child(1) {
    animation: fadeInUp 0.5s ease 1s forwards, moveAndRotate 10s ease 0.65s infinite;
}

.icon:nth-child(2) {
    animation: fadeIn 0.5s ease 1.35s forwards, moveAndRotate2 10s ease 0.85s infinite; 
}

.icon:nth-child(3) {
    animation: fadeIn 0.5s ease 1.45s forwards, Rotate 8s ease 0.95s infinite; 
}

.icon:nth-child(4) {
    animation: fadeIn 0.5s ease 1.65s forwards, moveAndRotate 11s ease 1.15s infinite; 
}

h1 {
    font-size: 2.75rem;
    font-weight: 500;
    line-height: 48px;
    letter-spacing: -1.35px;
    margin: 0 0 1.2rem;
}

p {
    font-size: 16px;
    padding: 0;
}

.introduction {
    padding: 0 0.175rem;
}

.description {
    padding: 0 0.75rem 0.75rem;
    margin-top: 0;
}

.email-form-group {
    border: 1px solid #d9d9d9;
    display: flex;
    justify-content: space-between;
    border-radius: 2rem;
    padding: 3px;
    margin: 0.2rem 0;
    width: 90%;
    max-width: 550px;
}

.input {
    border: 0;
    width: 100%;
    margin: 0px;
    padding: 0.5rem 1.25rem;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: -0.01em;
    background: transparent;
    border-radius: 2rem;
    outline: 0px;
}

.input::placeholder {
    color: lightgray;
    font-size: 16px;
}

.btn {
    background: #404040;
    border-radius: 32px;
    padding: 0.75rem 1.25rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    gap: 7px;
    white-space: nowrap;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.01em;
    border: 0;
}

.btn:hover {
    background-color: black;
}

.message {
    margin: 0;
    font-weight: 500;
    font-size: 12px;
    line-height: 19px;
    letter-spacing: -0.01px;
    color: rgba(73, 68, 64, 0.4);
    padding-top: 0.5rem;
}

#error-message {
    color: #ff3f3f;
    display: none;
}

#subscription-message {
    display: none;
}

footer {
    text-align: center;
}

.break {
    display: block;
}

.animated-element {
    opacity: 0; 
    animation: fadeInUp 1s ease forwards;
}

.appear {
    animation: fadeIn 1s ease-in-out forwards;
}

@media (min-width: 650px){
    h1 {
        font-size: 3.75rem;
        line-height: 68px;
    }

    .icon {
        width: 60px;
    }

    .description {
        width: 80%;
    }

}

@media (min-width: 795px){
    .description {
        width: 560px;
    }
}

