/* COPY AND PASTE START */
:root {
    font-size: 16px;
    font-family: 'IBM Plex Sans', sans-serif;
    --text-primary: #b8b9b9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    margin-left: 5rem;
}

body::-webkit-scrollbar {
    width: 0.25rem;
    height: 0.25rem;
}

body::-webkit-scrollbar-track {
    background: #8320F5;
}

body::-webkit-scrollbar-thumb {
    background: #523275;
}

/* Nav */
.navbar {
    position: fixed;
    background: rgb(35, 27, 49);
    transition: 300ms ease;
}

.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.nav-item {
    width: 100%;
}

.nav-item:last-child {
    margin-top: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 5rem;
    color: var(--text-primary);
    text-decoration: none;
    filter: grayscale(100%) opacity(0.7);
    transition: 500ms;
}

.nav-link:hover {
    filter: grayscale(0%) opacity(1);
    background: #1b0130;
}

.nav-link svg {
    min-width: 2rem;
    margin: 0 1rem;
}

.link-text {
    display: none;
    margin-left: 1rem;
    font-size: 2rem;
}

.logo {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.2ch;
    width: 100%;
}

.logo svg {
    transform: rotate(0deg);
    transition: transform 500ms;
}
.nav-item svg,
.logo svg {
    width: 48px;
    height: 48px;
}

.navbar:hover .logo svg {
    transform: rotate(-180deg)
}

/* Small Screens */
@media only screen and (max-width: 700px) {
    .navbar {
        bottom: 0;
        width: 100vw;
        height: 5rem;
    }

    .logo {
        display: none;
    }

    .navbar-nav {
        flex-direction: row;
    }

    .nav-link {
        justify-content: center;
    }

    main {
        margin: 0;
    }
}
/* to remove the squish thing */
@media only screen and (max-width: 400px) {
    .nav-item:last-child{
        display: none;
    }
}
/* Large Screens */
@media only screen and (min-width: 700px) {
    .navbar {
        top: 0;
        width: 5rem;
        height: 100vh;
    }

    .navbar:hover {
        width: 16rem;
    }

    .navbar:hover .link-text {
        display: inline;
        transition: opacity 500ms;
    }

    .navbar:hover .logo svg {
        margin-left: 1rem;
    }

    .navbar:hover .logo-text {
        left: 0px;
    }
}

body {
    background-color: #3F0F75;
    width: 100%;
    height: 100vh;
}
/* COPY AND PASTE END */
main {
    height: 100vh;
}

/* form */
.form {
    width: 70vh;
    position: relative;
    height: 70vh;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-grid {
    /* display: flex;
    flex-wrap: wrap; */
    height: 100%;
}

.form input {
    height: 90px;
    width: 100%;
    border: none;
    top: 20px;
    background: transparent;
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding-top: 20px;
    outline: transparent;
}

.form label {
    color: white;
    position: absolute;
    left: 0;
    height: 40px;
    width: 100%;
    pointer-events: none;
    border-bottom: 1px solid white;
    font-size: 2rem;
    margin-top: 2rem;
}

.form div {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-left: 1rem;
    margin-top: 2rem;
}

.form label::after {
    content: "";
    position: absolute;
    height: 40px;
    width: 100%;
    border-bottom: 3px solid #8C00FF;
    left: 0;
    top: -1px;
    transform: translateX(-100%);
    transition: all 300ms ease;
}

.content-name {
    position: absolute;
    left: 0px;
    transition: all 0.3s ease;
}

.form input:focus+.label-name .content-name {
    color: purple;
    transform: translateY(-75%);
    font: 14px;
}
/**/
.form input:valid:not(:placeholder-shown)+.label-name .content-name {
    transform: translateY(-75%);
    font: 14px;
    color: green;
}

.form input:invalid:not(:placeholder-shown)+.label-name .content-name {
    transform: translateY(-75%);
    font: 14px;
    color: red;
}

.form input:not(:placeholder-shown)+.label-name::after {
    border-bottom-color: green;
}

.form input:invalid:not(:placeholder-shown)+.label-name .content-name {
    transform: translateY(-75%);
    color: red;
    font: 14px;
}

.form input:invalid:not(:placeholder-shown)+.label-name::after {
    border-bottom-color: red;
}

.form input:focus+.label-name::after,
.form input:not(:placeholder-shown)+.label-name::after {
    transform: translateX(0%);
}

.submit-button button {
    width: 30rem;
    height: 7rem;
    border: none;
    border-radius: 1rem;
    background: #ffffff1e;
    position: relative;
    margin: 0 auto;
    display: block;
}

.submit-text {
    font-size: 6rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.445);
}

.name-section .label-name::after,
.main-section .label-name::after {
    top: -2px;
}

@media (max-height: 775px) {
    .form div{ 
        margin-top: 0.5;
    }
    .form {
        top: 40%;
        height: 100vh;
    }
    .submit-button button {
        height: 2.5;
        width: 15rem;
    }
    .submit-text{
        font-size: 3rem;
    }
}
@media only screen and (max-width: 700px) {
    .form-grid {
        display: block;
    }

    .form {
        width: 70vw;
        height: 70vh;
    }

    .form input {
        width: 15rem;
    }

    .form label::after {
        width: 15rem;
    }

    .form label {
        width: 15rem;
    }

    .form div {
        width: 20rem;
        margin-top: 0.5rem;
    }
    .submit-button button {
        width: 250px;
        height: 5rem;
        margin: 0;
    }
    .submit-text {
        font-size: 4rem;
    }
}

/* REMOVES BACKGROUND WHEN HOVERING OVER AUTOCOMPLETE */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    border: 1px solid transparent;
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: 0px 0px 0px 1000px transparent inset;
}