html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #666;
    background-color: #eaeaea;
}

header {
    background-color: #fff;

    h1 {
        font-size: 1.5rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 200px;

        p {
            font-size: 0.8rem;
            color: #888;
            font-weight: normal;
            border-top: 1px solid #888;
            width: 100px;
            margin-top: 5px;
            padding-top: 5px;
        }
    }

    #header-info-container {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-top: 10px;
        margin-bottom: 10px;
        margin-left: 10px;;
        margin-right: 10px;

        font-size: 12px;

        #counter {
            .counter-digit {
                border: 1px solid #888;
                border-right: 0;
                padding: 0 2px;

                &:last-child {
                    border-right: 1px solid #888;
                }
            }
        }

        button {
            background-color: inherit;
            color: #888;
            border: 0;
            cursor: pointer;
            padding: 5px 10px;
            margin-left: 10px;
            border-radius: 10px;
            /* text-decoration: underline; */
            background-color: #eaeaea;
            &:hover {
                opacity: 0.8;
            }
        }
    }

    img.top-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        object-position: 50% 15%;
    }
}

main {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;

    section {
        margin-top: 100px;

        h1 {
            text-align: center;
            border-bottom: 1px solid #888;
            padding-bottom: 10px;
        }

        h2 {
            font-size: 1.2rem;   
        }

        code {
            display: inline-block;
        }

        .description {
            text-align: left;
            margin-top: 20px;
            margin-bottom: 20px;
            background-color: #fff;
            border-radius: 10px;
            padding: 20px;
        }
    }

    .card {
        box-shadow: 6px 7px 10px rgba(155, 154, 154, 0.2);
        border-radius: 10px;
        margin-top: 20px;
        margin-left: 20px;
        margin-right: 20px;
        padding: 20px;
        background-color: #fff;
    }

    .update-history {
        background-color: inherit;
        box-shadow: none;
        font-size: 0.8rem;
        margin-left: auto;
        margin-right: auto;
        width: 80%;
        max-width: 600px;

        h1 {
            font-weight: normal;
            font-size: 1.0rem;
        }
        ul {
            li {
                span {
                    display: inline-block;
                    &:nth-child(1) {
                        width: 80px;
                    }
                }
            }
        }
    }

    .doujinshi {
        display: flex;

        flex-wrap: wrap;

        >* {
            flex-grow: 1;
            box-sizing: border-box;
        }

        .cover-image-container {
            max-width: 300px;
            max-height: 300px;
            overflow: hidden;
            margin: 0 auto;
            margin-top: 10px;
            margin-bottom: 20px;

            img {
                border: 0;
                width: 100%;
                height: 100%;
                object-fit: contain;
            }
        }

        .detail-container {
            width: 60%;
            min-width: 300px;
            padding: 10px;

            >div {
                margin-top: 5px;
            }
        }

        @media(max-width: 600px) {
            .detail-container {
                /* text-align: center; */
            }

            .event {
                >* {
                    display: inline;
                }

                .eventDate::before {
                    content: '（';
                }

                .eventDate::after {
                    content: '）';
                }
            }
        }

        .title {
            font-weight: bold;
        }
    }
}


nav {
    display: flex;
    justify-content: center;
    flex-direction: row;
    background-color: #444;
    position: sticky;
    top: 0;

    button {
        background-color: inherit;
        color: white;
        padding: 14px 20px;
        text-decoration: none;
        text-align: center;
        border: 0;
        cursor: pointer;

        &:hover {
            background-color: #555;
        }
    }
}


nav a:hover {
    background-color: #555;
}

.container {
    padding: 20px;
}

.external-link {
    display: inline-block;
    height: 0.5rem;
    width: 0.8rem;
}

.main-text {
    display: block;
    /* border: 1px solid #888; */
    margin-top: 10px;
    margin-bottom: 10px;
}

dl {
    dt {
        font-weight: bold;
        margin-top: 5px;
    }
    dd {
        margin-left: 5px;
    }
}

input[type="url"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #888;
}

footer {
    display: block;
    background-color: #c7c7c7;
    text-align: center;
    font-size: 12px;
    height: 30px;
    line-height: 30px;
}

