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

.hidden {
    display: none !important;
}  

/* 기본 폰트 및 배경 설정 */
body {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    background-color: #000;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* background.js에서 추가한 배경 이미지 스타일 */
body > img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.7);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

/* 시계 스타일 */
#clock {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* 로그인 폼 스타일 */
#login-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
#login-form input[type='text'] {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 200px;
}
#login-form input[type='submit'] {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #ff9800;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}
#login-form input[type='submit']:hover {
    background-color: #e68900;
}

/* 인사말 스타일 */
#greeting {
    font-size: 2rem;
    margin: 20px 0;
}

/* To-do 폼 스타일 */
#todo-form {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}
#todo-form input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

/* To-do 리스트 스타일 */
#todo-list {
    list-style: none;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 0;
}
#todo-list li {
    background-color: rgba(255, 255, 255, 0.2);
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#todo-list li button {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ff9800;
}

/* 명언 스타일 */
#quote {
    margin: 20px auto;
    max-width: 600px;
    font-size: 1.2rem;
    font-style: italic;
}
#quote span:last-child {
    display: block;
    margin-top: 5px;
    font-size: 1rem;
    text-align: right;
}

/* 날씨 정보 스타일 */
#weather {
    margin: 20px auto;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* 반응형 디자인 */
@media (max-width: 600px) {
    #clock {
        font-size: 2.5rem;
    }
    #login-form {
        flex-direction: column;
    }
    #login-form input[type='text'],
    #login-form input[type='submit'] {
        width: 100%;
    }
}
