body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #F5F5F7;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    align-items: center;
    align-content: center;
}

header {
    text-align: left;
    margin-bottom: 30px;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 10px;
    margin-top: 20%;
    font-family: 'Söhne';
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.section-dates {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

.alert {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-top: 40vh;
    font-family: 'Playwrite AU SA';
}

.author-info {
    font-size: 0.9rem;
    color: #777;
    text-align: left;
}

.author-info .author {
    font-weight: 700;
}

main {
    font-size: 1rem;
}

.paragraph{
    margin-top: 5%;
    margin-bottom: 5%;
}

.paragraph h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.paragraph p {
    margin-bottom: 20px;
}

.divider {
  border: none;              
  border-top: 1px solid #ccc;
  margin: 3rem 0;
}

.image-container {
  width: 150%;
  background-color: #ffffff;
  padding: 5rem 0;
  display: flex;
  justify-content: center;
  position: relative;       /* 자식 .mockup-frame 절대위치 기준 */
  box-sizing: border-box;
  margin: 2rem 0;
  border-radius: 2rem;
  transform: translateX(-17%);
}

.image-container video {
  width: 15vw;
  max-width: 15vw;
  height: auto;
  display: block;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

/* mockup-frame를 비디오 위에 오버레이 */
.image-container .mockup-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 17vw;
  max-width: 17vw;
  pointer-events: none;
  z-index: 2;
}



/* 상단 메뉴 스타일 */
.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    z-index: 10;
    transition: background-color 0.3s, color 0.3s;
}

.top-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 10px 15px;
    transition: color 0.3s;
}

.top-menu a:hover {
    color: #007aff;
}

pre {
    background-color: #f4f4f4; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    padding: 15px; 
    overflow-x: auto; 
    font-family: 'Courier New', Courier, monospace; 
    font-size: 14px; 
    line-height: 1.5; 
    white-space: pre-wrap; 
}

code {
    color: #333; /* 글자 색상 */
}



/* 다크모드 스타일 */
.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .top-menu {
    background-color: #1f1f1f;
    color: #ffffff;
}

.dark-mode a {
    color: #ffffff;
}

#darkModeToggle {
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

#darkModeToggle:hover {
    color: #007aff;
}

.dark-mode #darkModeToggle {
    color: #ffffff;
}

.dark-mode .sidebar li {
    color: #ffffff;
}

.dark-mode pre {
    background-color: #1e1e1e; /* 다크모드 배경색 */
    color: #dcdcdc; /* 글자 색상 */
    border: 1px solid #444; /* 테두리 색상 */
}

.dark-mode code {
    color: #dcdcdc; /* 코드 글자 색상 */
}

.dark-mode .image-container {
    background-color: #1e1e1e;
}


/* 반응형 스타일 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 100%;
        margin: 20px auto;
    }

    .main-content {
        width: 100%;
        padding: 10px;
        box-shadow: none;
    }

    .image-container {
        width: 100%;
        background-color: #f4f4f4;
        padding: 5rem 0;
        display: flex;
        justify-content: center;
        position: relative;       /* 자식 .mockup-frame 절대위치 기준 */
        box-sizing: border-box;
        margin: 2rem 0;
        transform: none;
        }

        .image-container video {
        width: 70vw;
        max-width: 70vw;
        height: auto;
        display: block;
        border-radius: 8px;
        position: relative;
        z-index: 1;
        }

    
        .image-container .mockup-frame {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 79vw;
        max-width: 79vw;
        pointer-events: none;
        z-index: 2;
        }

    .top-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        z-index: 10;
        transition: background-color 0.3s, color 0.3s;
    }

    .top-menu a {
        text-decoration: none;
        color: #333;
        font-size: 1rem;
        padding: 10px 15px;
        transition: color 0.3s;
    }

    .top-menu a:hover {
        color: #007aff;
    }

    pre {
        font-size: 12px; /* 작은 화면에서는 글자 크기 조정 */
        padding: 10px; /* 패딩 감소 */
    }
    
    code {
        word-wrap: break-word; /* 코드가 너무 길 경우 줄바꿈 */
    }

    /* 다크 모드에서 상단 메뉴 링크 색상 */
    .dark-mode .top-menu a {
        color: #ffffff;
    }
    
    .dark-mode .top-menu a:hover {
        color: #007aff;
    }
    .dark-mode .image-container {
    background-color: #1e1e1e;
    }
}

