h1 {
    text-align: center;
}

h4 {
    font-family: 'Roboto', sans-serif, 'arial';
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
}

/* ///// inputs /////*/

.select {
    float: left;
    width: 48%;
    margin: 1rem 0;
    position: relative;
    border-radius: 4px;
}

select {
    padding: 30px;
    border: 0;
    width: 110%;
    font-size: 1rem;
    background-color: var(--color-accent-light);
    color: black;
    border-radius: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.styled-select.first {
    margin-right: 8%;
}

select:focus {
    outline: 0;
}


select::-ms-expand {
    display: none;
}

option {
    color: #223254;
}

input:focus~label,
textarea:focus~label,
input:valid~label,
textarea:valid~label {
    font-size: 0.75em;
    top: -18px;
    -webkit-transition: all 0.225s ease;
    transition: all 0.225s ease;
}

.styled-input {
    float: left;
    width: 48%;
    margin: 1rem 0;
    position: relative;
    border-radius: 4px;
}

.styled-input.first {
    margin-right: 4%;
}

.styled-input.second {
    float: right;
}

@media only screen and (max-width: 768px) {
    .styled-input {
        width: 100%;
    }
}

.styled-input label {
    padding: 1.3rem 30px 1rem 30px;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    pointer-events: none;
}

select:invalid {
    color: #999;
}

.styled-input.wide {
    width: 100%;
    max-width: 100%;
}

input,
textarea {
    padding: 30px;
    border: 0;
    width: 100%;
    font-size: 1rem;
    background-color: var(--color-accent-light);
    color: black;
    border-radius: 4px;
}

input:focus,
textarea:focus {
    outline: 0;
}

input:focus~span,
textarea:focus~span {
    width: 100%;
    -webkit-transition: all 0.075s ease;
    transition: all 0.075s ease;
}

textarea {
    width: 100%;
    min-height: 15em;
}

.input-container {
    width: 650px;
    max-width: 100%;
    margin: 20px auto 25px auto;
}

.submit-btn {
    float: right;
    padding: 7px 35px;
    border-radius: 4px;
    background-color: var(--color-accent);
    color: white;
    font-size: 18px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.06),
        0 2px 10px 0 rgba(0, 0, 0, 0.07);
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
    border: none;
}

.submit-btn:hover {
    transform: translateY(1px);
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.10),
        0 1px 1px 0 rgba(0, 0, 0, 0.09);
}

@media (max-width: 768px) {
    .submit-btn {
        width: 100%;
        float: none;
        text-align: center;
    }
}

input[type=checkbox]+label {
    color: #ccc;
    font-style: italic;
}

input[type=checkbox]:checked+label {
    color: #f00;
    font-style: normal;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #89d1b136;
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background-color: transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 20px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-accent-light);
}

.card {
    border-radius: 20px;
    border: 0px;
}

.button {
    background: none;
    color: var(--color-accent-light);
    width: 40px;
    height: 40px;
    position: absolute;
    top: 1;
    right: 0;
    border: none;
    border-radius: 10px;
}

.button:hover {
    background-color: var(--color-accent-light);
    color: var(--color-accent)
}

.button:focus {
    background-color: var(--color-accent);
    color: black;
}

/* focus/disabled styles, you can change this for accessibility */
button:focus,
button:disabled {
    outline: none;
    background: #aaa;
}

/* This is the space for the spinner to appear, applied to the button */
.spin {
    padding-left: 2.5em;
    display: block;
}

/* position of the spinner when it appears, you might have to change these values */
.spin .spinner {
    width: 2.5em;
    display: block;
    position: absolute;
}

/* spinner animation */
@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* The actual spinner element is a pseudo-element */
.spin .spinner::before {
    content: "";
    width: 1.5em;
    /* Size of the spinner */
    height: 1.5em;
    /* Change as desired */
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: solid .35em #999;
    /* Thickness/color of spinner track */
    border-bottom-color: #555;
    /* Color of variant spinner piece */
    animation: .8s linear infinite spinner;
    /* speed of spinner */
    transform: translate(-50%, -50%);
    will-change: transform;
}

/* optional, but it will affect the size if changed */
*,
*::before,
*::after {
    box-sizing: border-box;
}