main > h1 {
    text-align: center;
    margin-top: 0;
    padding-top: 1rem;
}

#registerForm{
    position: relative;
	width: 80%;
	margin: 2rem auto 2rem auto;
    
}

fieldset {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid lightgray;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem;
}

.grid-2 {
	display: flex;
    flex-direction: row;
	justify-content: center;
    align-items: center;
	gap: 1rem;
    width: 80%;
    margin: auto;
}

.grid-2:first-of-type{
    margin-top: 2rem;
}

.grid-2 > div {
	width: 100%;
}

.titleContainer{
    max-width: 20%;
}

.dobContainer{
    width: 50%;
    margin: auto;
}

input {
	font-size: 0.8rem;
	width: 100%;
	padding: 0.5rem;
	margin-bottom: 1.5rem;
	border: none;
	border-bottom: 1px solid lightgray;
	outline: none;
}

select {
	appearance: none;
	font-size: 0.8rem;
	width: 100%;
	height: 2rem;
	padding: 0.5rem;
	margin-bottom: 1.5rem;
	border: none;
	border-bottom: 1px solid lightgray;
	border-radius: none;
	box-shadow: none;
	outline: none;
}

label {
	position: absolute;
	transform: translateY(0.5rem) translateX(0.5rem);
	color: rgb(153, 153, 153);
    background-color: white;
	font-size: 1rem;
	transition: transform 0.5s ease, color 0.5s ease, font-size 0.5s ease, padding 0.5s ease;
}

.active {
    font-family: bebasNeue-Regular, sans-serif;
    letter-spacing: 1px;
	transform: translateY(-0.90rem) translateX(1rem);
	color: #000;
	font-size: 0.8rem;
    padding: 0.2rem;
}

.active::after {
	content: ':';
}

#buttons {
    width: 50%;
    margin: auto;
    display: flex;
    justify-content: space-around;
}

#buttons button[type="submit"]{
    padding: 0.5rem 2rem;
}

#buttons button{
    font-family: bebasNeue-Regular, sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    background-color: yellow;
    border: 2px solid yellow;
    border-radius: 8px;
    margin: 1rem auto 0 auto;
    overflow: hidden;
}

#buttons button:hover,
#buttons button:active{
    background: rgb(0, 0, 0);
    color: yellow;
    border: 2px solid yellow;
    border-radius: 8px;
}

#add_Person span {
    display: inline-block;
    transform: translateX(3rem);
    opacity: 0;
    transition: all 0.3s ease-out;
    padding-left: 0.3rem;
}

#add_Person .user-plus {
    vertical-align: middle;
    transform: translateX(2.5rem);
    transition: all 0.3s ease-out;
}

#add_Person:hover span,
#add_Person:active span,
#add_Person:hover .user-plus,
#add_Person:active .user-plus {
    opacity: 1;
    transform: translateX(0rem);
}

.remove_person {
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
}

.remove_person a span {
    display: inline-block;
    transform: translateX(3rem);
    opacity: 0;
    transition: all 0.3s ease-out;
    padding-left: 0.3rem;
}

.user-x {
    transform: translateX(1.3rem);
    transition: all 0.3s ease-out;
}


.remove_person a {
    display: flex;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-family: bebasNeue-Regular, sans-serif;
    font-size: 0.8rem;
    vertical-align: middle;
    padding: 0.5rem 0.5rem;
    letter-spacing: 0.8px;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 8px;
    overflow: hidden;
}

.remove_person a:hover,
.remove_person a:hover {
    color: #000000;
    background-color: rgba(255, 255, 0, 0.486);
    border-radius: 8px;
}

.remove_person a:hover span,
.remove_person a:active span,
.remove_person a:hover .user-x,
.remove_person a:active .user-x {
    opacity: 1;
    transform: translateX(0rem);
}

.hidden{
    display: none;
}

@media (max-width: 650px), (max-height: 650px) {

    .grid-2{
        flex-direction: column;
        margin-bottom: 1rem;
    }

    .titleContainer{
        max-width: none;
    }

    .dobContainer{
        width: 80%;
    }

    form>button{
        font-family: bebasNeue-Regular, sans-serif;
        font-size: 1rem;
        letter-spacing: 1px;
        position: relative;
        left: 38%;
        padding: 0.5rem 1rem;
        background-color: yellow;
        border: 2px solid yellow;
        border-radius: 8px;
        margin: 1rem auto 0 auto;
    }

    #buttons {
        width: 90%;
    }

    .remove_person {
        margin-top: 0.5rem;
    }

}

@media (max-width: 440px){

    #buttons {
        width: 90%;
        flex-direction: column;
    }


    #buttons button{
        width: 100%;
    }

}