h1, h2 {
    margin: 0;
}

button {
    border: none;
    background-color: transparent;
}

button:hover {
    cursor: pointer;
}

.modal-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.modal {
    display: flex;
    flex-direction: column;
    width: 450px;
    height: auto;
    flex-shrink: 0;
    border-radius: 20px;
    border: 1px solid #E8E8E8;
    background: #FFF;
    padding: 20px;
}

.close-button-wrap {
    display: flex;
    justify-content: flex-end;
}

.close-button {
    color: #2e2e2e;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    border: 1px solid #2e2e2e;
}

.modal-header {
    display: flex;
    justify-content: center;
}

.modal-header h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

.modal-content {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.modal-content h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

.input-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

input {
    height: 2rem;
    font-size: 1.1rem;
    color: #2e2e2e;
    padding: 0.2rem 0.5rem;
}

input::placeholder {
    color: #B2B2B2;
}

input:focus {
    outline: none;
}

.file-container {
    position: relative;
}

label {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px; 
    height: 240px; 
    cursor: pointer;
    z-index: 2; 
}

.file-upload-button {
    /* border: 1px solid black; */
    font-size: 4.5rem;
    font-weight: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(178, 178, 178, 0.6);
}

#file-upload {
    visibility: hidden;
}

.profile-image {
    /* border: 1px solid blue; */
    position: relative;
    width: 180px;
    height: 240px;
    object-fit: cover;
    z-index: 1;
}

.register-button-wrap {
    display: flex;
    justify-content: center;
}

.register-button {
    font-size: 1.2rem;
    background-color: #0d54b6;
    color: #efefef;
    border-radius: 5px;
    padding: 0.4rem 0.7rem;
}

/* toast message */
.toast-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%, -50%);
    background-color: rgba(0, 61, 145, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    display: none;
    white-space: nowrap;
    animation: fadeInOut 0.5s ease-in-out forwards;
    z-index: 9999;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/* 로딩 애니메이션 */
.loading-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 61, 145, 0.3);
    border-top: 4px solid #003D91;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media all and (max-width:479px) {
    .modal{
        width: 20rem;
    }
}