body {
  margin: 0;
  font-family: 'DungGeunMo', sans-serif;
  background-color: teal;
  padding-bottom: 80px;
}

.container {
    display: grid;
    grid-template-areas: "banner banner" "sidebar main";
    grid-template-columns: 190px 1fr;
    grid-template-rows: auto 1fr;
    max-width: 1000px; /* 전체 최대 너비 제한 */
    margin: 0 auto; /* 가운데 정렬 */
    height: 100vh;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
}


.win98-window {
  background: #fff;
  border: 2px solid #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.titlebar {
  background: linear-gradient(to right, 
    #000080 0%, 
    #1040c0 30%, 
    #4080ff 70%, 
    #000080 100%
  );
  color: #fff;
  padding: 2px 6px;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}

/* 활성/비활성 창 구분 */
.win98-window.inactive .titlebar {
  background: linear-gradient(90deg, 
    #808080 0%, 
    #c0c0c0 30%, 
    #c0c0c0 70%, 
    #808080 100%
  );
}

/* 메뉴바 배경색 변경 */
.menubar {
    background: #bdbdbd;
    border-bottom: 1px solid #404040;
    border-top: 1px solid #c0c0c0;
    padding: 2px 6px;
    font-size: 12px;
    display: flex;
    gap: 15px;
}

.menu-item {
    padding: 2px 8px;
    cursor: pointer;
    color: #000; /* 검은색으로 변경 */
}

.menu-item:hover {
    background: #316ac5;
    color: #fff; /* 호버시에만 흰색 */
}

.menu-item:active {
    background: #1a4480;
    color: #fff;
}

.window-controls {
    display: flex;
    gap: 2px;
    align-items: center;
}

/* 공통 버튼 스타일 */
.close-btn, .help-btn {
    background: linear-gradient(135deg, #ffffff 0%, #dfdfdf 50%, #c0c0c0 100%);
    color: black;
    border: 1px outset #c0c0c0;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 14px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

/* 호버 효과 */
.close-btn:hover, .help-btn:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 50%, #d0d0d0 100%);
}

/* 클릭 효과 - 누르는 느낌만 */
.close-btn:active, .help-btn:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(135deg, #c0c0c0 0%, #d0d0d0 50%, #e0e0e0 100%);
    transform: translateY(1px); /* 살짝 아래로 이동하는 효과 */
}

.banner { 
  grid-area: banner; 
}

.sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main {
  grid-area: main;
  font-size: 16px;
  margin-bottom: 50px;
}

.marquee-text {
  white-space: nowrap;
  overflow: hidden;
  height: 40px;
  line-height: 40px;
  background: #fff;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #808080;
}

.marquee-text span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 10s linear infinite;
  font-size: 18px;
}

@keyframes scroll-left {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

.clock-box { height: 100px; }
.clock-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.clock { font-size: 25px; margin-top: 6px; }
.clock-date { font-size: 15px; margin-top: 1px; color: #444; }

.gif-box {
  height: 200px;
  width: 200px;
  background: transparent;
  margin-top: 10px;
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gif-box img {   
	width: 100%;       /* 박스 가로를 꽉 채움 */
	height: 100%;      /* 박스 세로도 꽉 채움 */
	object-fit: contain; /* 이미지 비율 유지 + 빈 부분 투명/배경색 */ 
	}

.win98-button {
  font-family: 'DungGeunMo', sans-serif;
  padding: 4px 12px;
  border: 2px outset #fff;
  background: #e0e0e0;
  box-shadow: 1px 1px #808080, -1px -1px #fff;
  cursor: pointer;
  margin-top: 10px;
}

.win98-button:active {
  border: 2px inset #fff;
  box-shadow: inset 1px 1px #808080;
}
