
@charset "utf-8";
@import url(//fonts.googleapis.com/earlyaccess/notosanskr.css);
@media (prefers-color-scheme: dark) {
	body {
		background-color: #222222 !important;
		color: #fafafa !important;
    }
    #text-nickname-please {
        color: #161616 !important;
    }
    .nameform  {
        background-color: #a5a5a5 !important;
    }
    .nameform .name-data input {
        border-bottom: 2px solid rgb(240, 240, 240) !important;
        background-color: #a5a5a5 !important;
        color: #fafafa !important;
        
    }
    .nameform .name-data label {
        color: #222222 !important;
    }
    .name-data input:focus ~ label,
    .name-data input:valid ~ label {
        color: #161616 !important;
}
    .name-underline {
        color: #161616 !important;
    }
    .name-data .name-underline {    
        background-color: rgb(81, 93, 158) !important;
    }
    #nickname-button {
        background-color: rgb(145, 165, 231) !important;
        color: #161616 !important;
        border: 1.5px solid #fafafa !important;
        font-weight: 600 !important;
    }
    #nickname-button:hover {
        background-color: rgb(41, 76, 192)!important;
        color: #fafafa !important;
        font-weight: 600 !important;
    }
 
}

/* 
body {
    background-color: aliceblue;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    box-sizing: border-box;
}
.nameform {
    margin: 0 auto;
    max-width: 1000px;
    width: 1000px;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0,1);
    text-align: center;
    display: block;
    font-family: "Noto Sans KR", sans-serif;
} */
* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;

}
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: aliceblue;
  
}
.nameform {
    width: 800px;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0,1);
    text-align: center;
    display: block;
    font-family: "Noto Sans KR", sans-serif;
}
#text-nickname-please {
    margin-bottom: 150px;
    font-size: 2rem;
    font-weight: 600;
    color: rgb(48, 47, 68);
}
.nameform .name-data {
    height: 40px;
    width: 100%;
    position: relative;
}
.nameform .name-data .name-underline {
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 100%;
}
.name-data .name-underline::before {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    background-color: rgb(81, 93, 158);
    transform: scaleX(0);
}
.nameform .name-data input {
    height: 100%;
    width: 100%;
    border: none;
    border-bottom: 2px solid silver;
    font-size: 2.3rem;
}
.name-data input:focus ~ label,
.name-data input:valid ~ label {
    transform: translateY(-50px);
    font-size: 15px;
    color: #596fdf;
    font-size: 2.2rem;
}
.nameform .name-data label {
    position: absolute;
    bottom: 0px;
    left: 0;
    color: gray;
    pointer-events: none;
    translate: all 0.3s ease;
    font-size: 2.2rem;
}
#nickname-submit-button {
    margin-top: 105px;
	width: 90px;
	height: 45px;
	background-color: rgb(145, 165, 231);
	border-radius: 5px;
	border: 1.5px solid gray;
	transition: .5s;
	color: white;
	cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
}
#nickname-submit-button:hover {
    background-color: rgb(41, 76, 192);
    font-weight: 600;
}
.back-button {
    display: block;
    border: 0px;
    background-color: none;
    cursor: pointer;
}
#nickname-not-use {
    color: red;
    font-size: 1rem;
    text-align: left;
    margin-top: 5px;
    visibility:hidden;
}


@media (max-width: 800px) {
    #text-nickname-please {
        margin-bottom: 100px;
        text-align: left;
    }
    .nameform {
        width: 800px;
}
.back-button {
    margin-bottom: 20px;
    margin-left: -10px;
}
}
