:root {
    --primary-color: #3F44D1;
    --primary-color-darker: #2d34a5;
    --text-color-dark: #333;
    --text-color-light: #555;
    --text-color-lighter: #777;
    --background-color-light: #f8f8f8;
    --border-color-light: #eee;

    --text-color-dark-mode: #e0e0e0;
    --text-color-light-dark-mode: #aaa;
    --background-color-dark-mode: #121212;
    --surface-color-dark-mode: #1c1c1c;
    --surface-hover-dark-mode: #2a2a2a;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    position: relative;
    background-color: white;
    color: var(--text-color-light);
}

body {
    line-height: 1.6;
    margin: 0 auto;
    max-width: 800px;
    padding: 100px 40px;
    font-size: 1.1rem;
}

.noscript-warning {
    background-color: #ffc;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

h1 {
    font-size: 1.6rem;
    color: var(--text-color-dark);
}

h2 {
    font-size: 1.4rem;
    margin-top: 0;
    color: var(--text-color-dark);
}

h4 {
    margin-bottom: 2px;
}

p {
    font-size: 1rem;
    color: var(--text-color-light);
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

pre,
code {
    background: rgba(240, 240, 240);
    padding: 0.5em;
    border-radius: 5px;
    font-family: "Menlo", monospace;
    color: rgb(80, 80, 80);
    font-size: 0.9em;
    overflow-x: auto;
}

pre {
    cursor: pointer;
}

.link-button {
    display: block;
    background-color: var(--primary-color);
    color: white !important;
    font-size: 0.8em;
    padding: 5px 0;
    text-align: center;
    text-decoration: none;
    margin: 30px auto;
    width: 100%;
    border-radius: 10px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.link-button:hover {
    background-color: var(--primary-color-darker);
    text-decoration: none;
}

.disclaimer {
    font-size: 0.8rem;
    color: #999;
    margin-top: 80px;
    line-height: 1.4;
}

.section-header {
    text-align: center;
    margin: 50px 0 30px;
}

.section-header h2 {
    display: inline-block;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 5px;
}

.translate-icon {
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
}

.how-to-section {
    border-radius: 15px;
    padding: 0;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 80%;
    margin: 0 auto;
}

.carousel-wrapper {
    overflow: hidden;
    cursor: grab;
}

.screenshots-container {
    display: flex;
    transition: transform 0.5s ease;
}

.screenshot-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screenshot-image {
    width: 100%;
    max-height: 600px;
    height: auto;
    object-fit: contain;
}

.screenshot-caption {
    margin-top: 15px;
    font-size: 1rem;
    color: var(--text-color-light);
    text-align: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
}

.carousel-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-style: solid;
    border-color: #aaa;
    border-width: 0 3px 3px 0;
}

.prev-btn {
    left: -45px;
}

.prev-btn::before {
    transform: translate(-50%, -50%) rotate(135deg);
}

.next-btn {
    right: -45px;
}

.next-btn::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.dots-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
}

.database-section {
    text-align: center;
    margin-top: 40px;
}

.database-note {
    font-size: 0.9rem;
    color: var(--text-color-lighter);
    margin-top: 0;
    margin-bottom: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}

.url-requirement-note {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 20px;
    font-style: italic;
    text-wrap: pretty;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    background-color: var(--background-color-light);
    border-radius: 15px;
    padding: 0 0 10px;
    text-align: center;
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
}

.feature-item h4 {
    margin-top: 15px;
    margin-bottom: 5px;
}

.feature-item .database-note {
    padding: 0 15px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

details {
    background-color: var(--background-color-light);
    border-radius: 12px;
    padding: 15px 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

details:hover {
    background-color: #f0f0f0;
}

details summary {
    font-weight: bolder;
    color: var(--text-color-dark);
    list-style: none;
    position: relative;
    padding-right: 30px;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '+';
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease, content 0.3s ease;
    color: var(--primary-color);
}

details[open] summary::after {
    content: '-';
    transform: translateY(-50%);
}

details p {
    font-size: 1rem;
    color: var(--text-color-light);
    padding-top: 15px;
    margin: 0;
    line-height: 1.6;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.team-member {
    max-width: 300px;
    text-align: center;
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h2 {
    font-size: 1.4rem;
    margin-top: 0;
    color: var(--text-color-dark);
}

.team-member p {
    font-size: 0.9rem;
    text-align: justify;
}

.job-title {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

#date-display-1,
#date-display-2 {
    font-size: 0.6em;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #3F44D1;
    color: white;
    display: inline-block;
    margin-top: -10px;
    margin-bottom: 20px;
}

@media (prefers-color-scheme: dark) {
    html,
    body {
        background-color: var(--background-color-dark-mode);
        color: var(--text-color-dark-mode);
    }

    h1,
    h2,
    .team-member h2 {
        color: white;
    }

    p,
    .screenshot-caption,
    .database-note,
    details p {
        color: var(--text-color-light-dark-mode);
    }

    a {
        color: var(--primary-color);
    }

    pre,
    code {
        background: rgba(32, 32, 32);
        color: rgb(160, 160, 160);
    }

    .disclaimer {
        color: #666
    }

    .job-title {
        color: #999;
    }

    .feature-item,
    details {
        background-color: var(--surface-color-dark-mode);
    }

    details:hover {
        background-color: var(--surface-hover-dark-mode);
    }

    details summary {
        color: white;
    }
}