
main {
    display: flex;
    flex-wrap:wrap;
    flex-direction: row;
    max-width: 1000px;   
    justify-content: center;
    margin: 120px auto 40px;
    border-radius: 23px;
}

.Message {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow: 0px 0px 20px 7px var(--card-shadow);
    border-radius: 23px;
    background-color: var(--lighter-bg);
    animation: fadeIn 0.4s ease-in-out;
    border: 1px solid var(--main-color);
    transition: 0.3s ease-out;
}

.instagram{
    object-fit: cover;
    border-top-left-radius: 23px;
    border-bottom-left-radius: 23px;
    width: 100%;
    border-bottom: 1px solid var(--main-color);
    padding-bottom: 30px ;
    border-radius: 0;
}

.instagram .profile {
    display: flex;
    justify-self: flex-start;
    flex-direction: row;
    padding: 1rem;
    align-items: flex-start;
}
.instagram img{
    width: 200px;
    height: 80%;
    object-fit: cover;
    border-top-left-radius: 23px;
    border-bottom-left-radius: 23px;
    border-radius: 50%;
    border: 3px solid var(--crimson-color);
}
.instagram .image {
    margin-top: 30px;
}
.instagram .image p {
    color: var(--secondary-color);
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}


.instagram .profile .text {
    margin: 10px;
}

.instagram .profile .text .verified {
    fill: var(--crimson-color);
}

.instagram .profile .text h1 {
    color: var(--secondary-color);
}

.instagram .profile .text p {
    color: var(--text);
}

.instagram .follow {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    /* margin: 25px 0; */
}



.instagram .follow button {
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    color: var(--main-color);
    cursor: pointer;
    background-color: var(--secondary-color);
    font-weight: 500;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
    margin: 1px;
}


.instagram .follow button:hover {
    background-color: var(--main-color);
    color: var(--secondary-color);
}

.Message form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    column-gap: 20px;
}

.Message form .fullName{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    flex: 2;
}

.Message form .fullName div {
    margin: 5px;
}

.Message form .fullName  textarea{
    width: 500px;
    padding: 20px;
}


.Message form h1 {
    color: var(--crimson-color);
    font-size: 50px;
    margin: 46px auto 0;
    text-align: left;
}

.input-group {
    position: relative;
}

.input {
    border: solid 1.5px #9e9e9e;
    border-radius: 1rem;
    background: none;
    padding: 1rem;
    font-size: 1rem;
    color: var(--secondary-color);
    transition: border 150ms cubic-bezier(0.4,0,0.2,1);
}

.user-label {
    position: absolute;
    left: 15px;
    color: #e8e8e8;
    pointer-events: none;
    transform: translateY(1rem);
    transition: 150ms cubic-bezier(0.4,0,0.2,1);
}

.input:focus, input:valid {
    outline: none;
    border: 1.5px solid var(--crimson-color);
}

.input:focus ~ label, input:valid ~ label {
    transform: translateY(-50%) scale(0.8);
    background-color: var(--lighter-bg);
    padding: 0 .2em;
    color: var(--crimson-color);
}

.input-group {
    position: relative;
}


.input {
    border: solid 1.5px #9e9e9e;
    border-radius: 1rem;
    background: none;
    padding: 1rem;
    font-size: 1rem;
    color: var(--secondary-color);
    transition: border 150ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    resize: none; 
}

.user-label {
    position: absolute;
    left: 15px;
    color: var(--secondary-color);
    pointer-events: none;
    transform: translateY(1rem);
    transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input:focus,
.input:valid {
    outline: none;
    border: 1.5px solid var(--crimson-color);
}

.input:focus ~ .user-label,
.input:valid ~ .user-label {
    transform: translateY(-50%) scale(0.8);
    background-color: var(--lighter-bg);
    border-radius: 6px;
    padding: 0 0.2em;
    color: var(--crimson-color);
}


.textarea {
    min-height: 120px; 
    width: 375px;
}

.Subscribe-btn {
    height: 100%;
    margin-top: 20px;
    padding: 10px 30px;
    border: none;
    border-radius: 15px;
    color: var(--main-color);
    cursor: pointer;
    background-color: var(--secondary-color);
    font-weight: 500;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
    margin-bottom: 20px;
}

form .Subscribe-btn svg {
    fill: var(--lighter-bg);
}
.arrow {
    position: absolute;
    margin-right: 150px;
    transition: all 0.3s;
}
.input-wrapper:active .icon {
    transform: scale(1.3);
}
.Subscribe-btn:hover {
    color: var(--secondary-color);
}
.Subscribe-btn:hover .arrow {
    margin-right: 0;
    animation: jello-vertical 0.9s both;
    transform-origin: right;
}

@keyframes jello-vertical {
    0% {
    transform: scale3d(1, 1, 1);
    }
    30% {
    transform: scale3d(0.75, 1.25, 1);
    }
    40% {
    transform: scale3d(1.25, 0.75, 1);
    }
    50% {
    transform: scale3d(0.85, 1.15, 1);
    }
    65% {
    transform: scale3d(1.05, 0.95, 1);
    }
    75% {
    transform: scale3d(0.95, 1.05, 1);
    }
    100% {
    transform: scale3d(1, 1, 1);
    }
}
.Subscribe-btn:active {
    transform: scale(0.9);
}

.about {
    line-height: 1.6;
    margin-left: 15px;
    word-break: break-all;
}



@media (max-width:1440px){
    .Message {
        width: 100%;
    }
}

@media (max-width:1024px){
    .Message{
        width: 90%;
    }
}

@media (max-width:992px){
    .Message{
        width: 80%;
        justify-content:center;
    }
    .Message form {
        max-width: 500px;
    }
    .textarea{
        width: 230px;
    }
    .Message form h2 {
        font-size: 40px;
    }
    .instagram .profile {
        flex-direction: column;
        align-items: center;
    }
    .instagram .profile .text{
        text-align: center;
    }
    .instagram .follow {
        justify-content: center;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
