/* 기본 스타일 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    /* overflow: hidden; */
    overflow: auto;
}

main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* 배경 이미지 스타일 */
body img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.7;
    pointer-events: none;
}

/* 폼 스타일 */
form {
    margin: 20px 0;
    width: 100%;
    max-width: 400px;
}

input[type="text"] {
    width: 91%;
    padding: 15px;
    border: 2px solid #fdbb2d;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    color: #333;
    background: #fff;
    transition: border-color 0.3s ease;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff;
}

input[type="text"]::placeholder {
    color: #888;
}

input[type="text"]:focus {
    border-color: #b21f1f;
}

input[type="submit"] {
    padding: 15px;
    width: 100%;
    border: none;
    border-radius: 5px;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff;
}

input[type="submit"]:hover {
    transform: scale(1.05);
}

/* 숨김 클래스 */
.hidden {
    display: none;
}

/* 텍스트 스타일 */
h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff;
}

/* 할 일 목록 스타일 */
ul#todo-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    max-width: 400px;
    width: 100%;
    position: absolute;
    /* 위치를 절대 위치로 설정 */
    top: 100px;
    /* 상단 여백을 조정하여 날씨 아래에 위치 */
    right: 20px
}

ul#todo-list li {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: #000;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 5px #fff, 0 0 10px #fff
}


ul#todo-list li span {
    flex: 1;
}

ul#todo-list li button {
    background: #ff4b5c;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

ul#todo-list li button:hover {
    background: #e84150;
}

/* 명언과 날씨 스타일 */
#quote {
    margin: 20px 0;
    text-align: center;
}

#quote span {
    display: block;
    margin: 10px 0;
    font-size: 1.5em;
    color: #333;
    font-weight: bold;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff;
}

#weather {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
}

#weather span {
    display: block;
    margin: 10px 0;
    font-size: 1.5em;
    color: #333;
    font-weight: bold;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff;
}




#link_container_bottom {
  display: flex;
  flex-direction: column;
  align-items: center; /* 검색 폼들을 수평 가운데 정렬 */
  justify-content: center;
  width: 100%;
  gap: 20px; /* 폼 간 간격을 조정 */
  margin-top: 10px;  /* 상단 여백 추가 */
}

/* searchForm */
#search-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px; /* 폼 간 간격을 줄여서 공간 절약 */
  background-color: rgba(0, 0, 0, 0.35);
  padding: 20px 20px; /* 안쪽 여백 조정 */
  border-radius: 15px;
  height: auto;
  max-width: 350px; /* 최대 너비 조정 */
  width: 100%;
  margin-bottom: 10px; /* 아래 간격 추가 */
}

.searchForm input {
  font-size: 18px; /* 폰트 크기 조정 */
  border: none;
  border-bottom: 2.5px solid white;
  background-color: transparent;
  width: 80%; /* 입력 폼 너비 조정 */
  padding: 5px;
  transition: all 0.2s ease-in-out;
}

.searchForm input::placeholder {
  color: rgb(0, 0, 0);
  transition: all 0.2s ease-in-out;
}

.searchForm input:focus::placeholder,
.searchForm input:hover::placeholder {
  color: var(--main-color);
}

.searchForm input:focus,
.searchForm input:hover {
  outline: none;
  transform: scale(1.05);
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}




/* 예쁜 버튼 스타일 */
.bookmark-button-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.bookmark-button {
    background-color: #3498db;  /* 버튼 배경 색 */
    color: #fff;  /* 글자 색 */
    padding: 12px 30px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bookmark-button:hover {
    background-color: #2980b9;  /* 마우스 오버 시 배경 색 */
    transform: translateY(-3px);  /* 버튼이 살짝 떠오르는 효과 */
}

.bookmark-button:active {
    transform: translateY(1px);  /* 클릭 시 버튼이 눌리는 효과 */
}








@media (max-width: 768px) {
    body {
        padding: 10px;
        justify-content: flex-start;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 2em;
    }

    form {
        max-width: 100%;
    }

    input[type="text"], input[type="submit"] {
        font-size: 18px;
        padding: 5px;
    }

    #weather {
        position: static;
        text-align: center;
        margin-top: 10px;
    }

    ul#todo-list {
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 20px auto;
    }

    ul#todo-list li {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    ul#todo-list li button {
        margin-top: 10px;
        width: 100%;
        font-size: 14px;
        padding: 8px;
    }

    #quote span {
        font-size: 1.2em;
    }
}


