.contact {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    font-size: 3vw;
    font-family: "Aclonica";
    background: var(--abtcon-color);
}

.contact-text {
    font-size: 3vw;
    font-family: "Aclonica";
}

.contact-icons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    font-size: 1vw;
    width: 100%;
}

.contact-icons>div {
    font-family: "Aclonica";
    font-size: .75em;
}

.github>a:visited,
.github>a:link,
.github>a:hover,
.github>a:active,
.insta>a:visited,
.insta>a:link,
.insta>a:hover,
.insta>a:active,
.linkedin>a:visited,
.linkedin>a:link,
.linkedin>a:hover,
.linkedin>a:active {
    text-decoration: none;
    color: white;
}

.github,
.insta,
.linkedin {
    justify-self: center;
    align-self: stretch;
    margin: 0;
}

.github {
    grid-column: 1;
    grid-row: 1;
}

.github>a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2.5vw;
    height: 100%;
    justify-content: space-between;
}

.github-label {
    align-items: center;
    font-family: "Aclonica";
}

.github-logo {
    width: 5.5vw;
    height: 5.5vw;
}

.insta {
    grid-column: 2;
    grid-row: 1;
}

.insta>a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2.5vw;
    height: 100%;
    justify-content: space-between;
}

.insta-label {
    align-items: center;
    font-family: "Aclonica";
}

.insta-logo {
    width: 7vw;
    height: 7vw;
}

.linkedin {
    grid-column: 3;
    grid-row: 1;
}

.linkedin>a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2.5vw;
    height: 100%;
    justify-content: space-between;
}

.linkedin-logo {
    width: 5.5vw;
    height: 5.5vw;
}

.linkedin-label {
    align-items: center;
    font-family: "Aclonica";
}

.page-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    transition: margin-left .5s;
}

.contact-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem;
}

.form {
    width: 75vw;
    display: none;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
    grid-template-columns: 2fr 3fr;
    column-gap: 5vh;
}

.contact-label {
    font-family: "Aclonica";
    font-size: 4vh;
}

.name-label {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
}

.name-input {
    grid-row: 2;
    grid-column: 1;
}

.email-label {
    grid-row: 3;
    grid-column: 1;
    align-self: center;
}

.email-input {
    grid-row: 4;
    grid-column: 1;
}

.message-label {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
}

.message-input {
    grid-row: 2 / span 4;
    grid-column: 2;
}

input,
textarea {
    border: 0;
    outline: 0;
    padding: 1em;
    border-radius: 8px;
    display: block;
    width: 100%;
    /* margin-top: 1em; */
    font-family: "Prototype";
    box-shadow: 0 1px 1px rgba(var(--blacksub), 0.1);
    resize: none;
}

#toggle {
    width: 200px;
    height: 40px;
    color: #fff;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Prototype';
    font-weight: 500;
    /* background: transparent; */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5),
        7px 7px 20px 0px rgba(0, 0, 0, .1),
        4px 4px 5px 0px rgba(0, 0, 0, .1);
    outline: none;
}

.contact-animation {
    background: #2565AE;
    border: none;
    z-index: 1;
}

.contact-animation span {
    font-family: 'Prototype';
}

.contact-animation:after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    z-index: -1;
    background-color: var(--black-sub);
    border-radius: 5px;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5),
        7px 7px 20px 0px rgba(0, 0, 0, .1),
        4px 4px 5px 0px rgba(0, 0, 0, .1);
    transition: all 0.3s ease;
}

.contact-animation:hover {
    color: #fff;
}

.contact-animation:hover:after {
    left: 0;
    width: 100%;
}

.contact-animation:active {
    top: 2px;
}

@media screen and (max-width: 586px) {
    .contact-text {
        font-size: 5vh;
    }

    .github-label {
        display: none;
    }

    .insta-label {
        display: none;
    }

    .linkedin-label {
        display: none;
    }

    .github-logo {
        height: 11vh;
        width: 11vh;
    }

    .insta-logo {
        height: 13vh;
        width: 13vh;
    }

    .linkedin-logo {
        height: 10vh;
        width: 10vh;
    }

    .contact-icons {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .github,
    .insta,
    .linkedin {
        align-self: center;
        justify-self: center;
    }

    .form {
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr 2fr 1fr;
        grid-template-columns: 1fr;
    }

    .name-label {
        grid-row: 1;
        grid-column: 1;
        align-self: center;
    }
    
    .name-input {
        grid-row: 2;
        grid-column: 1;
    }
    
    .email-label {
        grid-row: 3;
        grid-column: 1;
        align-self: center;
    }
    
    .email-input {
        grid-row: 4;
        grid-column: 1;
    }
    
    .message-label {
        grid-row: 5;
        grid-column: 1;
        align-self: center;
    }
    
    .message-input {
        grid-row: 6;
        grid-column: 1;
    }
}