@import url("https://fonts.googleapis.com/css?family=Open+Sans");

* {
  box-sizing: border-box;
}

body,
html {
  overflow: hidden;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
}

/* 배경화면 관련 */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}
#backg{
  width: 100%;
  height: 100%;
  object-position: center;
}
/* 모니터 화면 관련 */
.monitor-frame-content {
    position: absolute;
    top: 9%;
    left: 8%;
    width: 85%;
    height: 68%;
    background-color: rgba(0, 0, 0, 0.1);
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

/* 로그인 화면 관련 */
.login-card{
  position: absolute;
  top: 37%;
  left: 37%;
  width:350px;
  padding:30px;
  border: 1px solid rgba(0, 255, 255, 0.5);
  border-radius:20px;
  background:rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);    
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}
input {
  background: none;
  appearance: none;
  border: 0;
  font-size: 20px;
  color: white;
  border-bottom: 2px solid white;
}
#login-input::placeholder {
  color: white;
  text-align: center;
}
input:focus, input:active {
  outline: blue;
}
#login-btn {
    display: block;
    margin: 0 auto;
    margin-top: 15px;
    padding: 5px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.8rem;
}
#login-btn:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}
.hidden{
  display: none;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* 메인화면 관련 */
.landing:not(.hidden) .widget {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 70px 300px auto;
    grid-template-areas:
        "header header"
        "todo weather"
        "footer footer";
    gap: 15px;
    padding: 10px;
    animation: fadeIn .5s;
}
/* 각 카드별 구역 할당 */
.status-card { 
    grid-area: header; 
    min-height: 80px;
    justify-content: space-between;
}
.todo-card {
    grid-area: todo;
    flex-direction: column;
}
#todo-input::placeholder {
  color: white;
  text-align: center;
}
#weather-card { 
    grid-area: weather;
}
#quote-card {
    grid-area: footer; 
    min-height: 60px;
    justify-content: space-between;
}
.status-card, .todo-card, #quote-card, #weather-card {
    display: flex;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.5);
    overflow: hidden;
    padding: 10px;
    position: relative;
    transition: all 0.3s ease;
}
.status-card:hover, .todo-card:hover, #quote-card:hover, #weather-card:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    border-color: rgba(0, 255, 255, 0.8);
}

/* todo list 관련 */
#todo-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}
ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 10px;
    flex: 1;
    overflow-y: auto;
}
#todo-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);

    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;

    border: 1px solid rgba(255,255,255,0.15);
    color: white;

    font-size: 14px;
    transition: 0.2s ease;
}
#todo-list li button {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255,80,80,0.4);
    color: #ff5c5c;

    width: 26px;
    height: 26px;
    border-radius: 50%;

    cursor: pointer;
    font-size: 13px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}
#todo-list li:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.02);
}

/* weather 관련 */
#weather-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;

    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

.weather-top {
    font-size: 13px;
    opacity: 0.8;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-icon {
    width: 48px;
    height: 48px;
}

.weather-temp {
    font-size: 32px;
    font-weight: 600;
}

.weather-bottom {
    font-size: 12px;
    opacity: 0.7;
}
