body {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #f5f5f5;
}
.logo {
    display: block;
    margin: 0 auto 20px;
    width: 256px;
    height: 256px;
}
h1 {
    color: #00aff0;
    text-align: center;
    margin-top: 0;
}
h2 {
    color: #00aff0;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 16px;
}
ul {
    list-style: none;
    padding: 0;
}
li {
    background: white;
    margin: 8px 0;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 18px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
li:hover {
    background: #e6f7ff;
    transform: translateX(5px);
}
a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
a:hover {
    color: #00aff0;
}
.preview-btn {
    background: #00aff0;
    color: white;
    border: none;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}
.preview-btn:hover {
    background: #0099d6;
}
.preview-btn.active {
    background: #007bb8;
    box-shadow: inset 0 0 0 2px white;
}
.tutorial {
    background: white;
    padding: 20px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 10px;
}
.tutorial ol {
    margin: 0;
    padding-left: 22px;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
}
.tutorial li {
    background: none;
    box-shadow: none;
    margin: 12px 0;
    padding: 0;
    font-size: 16px;
    border-radius: 0;
    transform: none;
    display: list-item;
}
.tutorial li:hover {
    background: none;
    transform: none;
}
.tutorial a {
    display: inline;
    color: #00aff0;
    font-weight: bold;
}
.tutorial a:hover {
    text-decoration: underline;
}
.tutorial strong {
    color: #00aff0;
}
.tutorial code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    word-break: break-all;
}
.bottom-img {
    display: block;
    margin: 30px auto 0;
    max-width: 100%;
}
.credits {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

/* Language chooser */
#lang-overlay {
    position: fixed;
    inset: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#lang-overlay.hidden {
    display: none;
}
.lang-box {
    background: white;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    text-align: center;
}
.lang-box h2 {
    margin: 0 0 24px;
    color: #00aff0;
    font-size: 24px;
}
.lang-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.lang-btns button {
    background: #00aff0;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}
.lang-btns button:hover {
    background: #0099d6;
    transform: scale(1.05);
}

.content {
    display: none;
}
.content.active {
    display: block;
}

/* Screenshot preview modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.modal-overlay.hidden {
    display: none;
}
.modal-box {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 44px 20px 20px;
    max-width: min(520px, 90vw);
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
    overflow: visible;
}
.modal-scroll {
    max-height: calc(90vh - 64px);
    overflow-y: auto;
    overflow-x: hidden;
}
.modal-box img {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    margin: 0 auto;
    border-radius: 6px;
    border: 1px solid #ddd;
}
.modal-box .preview-caption {
    margin: 14px 0 0;
    font-weight: bold;
    color: #00aff0;
    font-size: 18px;
}
.modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.modal-close:hover {
    color: #fff;
    background: #00aff0;
    border-color: #00aff0;
}
