body {
    background-color: #f5f5f5;
    font-family: "Noto Sans JP", sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Variables */

:root {
    --main-background-color: #eee;
    --main-text-color: #333;
    --general-button-color: #396;
}

/* Default tags */

body {
    font-family: "Noto Sans", "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--main-text-color);
    background-color: var(--main-background-color);
    margin: 0 auto;
}

header, main, footer {
    max-width: 90%;
    margin: 0 auto;
}

h1,
h2,
h3 {
    font-weight: bold;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 2.2rem;
    margin-top: 30px;
}

h2 {
    font-size: 1.7rem;
    margin-top: 20px;
}

h3 {
    font-size: 1.3rem;
    margin-top: 15px;
}

p {
    line-height: 1.8;
}

a {
    color: #44d;
    text-decoration: underline;
}

a:hover {
    color: #119;
}

a:active {
    color: #119;
}

a:visited {
    color: #4a4;
}

button {
    display: block;
    font-size: 1.3rem;
    padding: 5px 10px;
    margin: 0 auto;
    border-radius: 5px;
    background-color: var(--general-button-color);
    color: #fff;
    cursor: pointer;
    transition-duration: .2s;
    margin-top: 10px;

    &:hover {
        background-color: rgb(53, 105, 131);
        transition-duration: .2s;
    }

    &:disabled {
        background-color: #aaa;
        color: #fff;
        cursor: not-allowed;
    }
}

footer {
    margin: 20px auto;
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid #333;

    >p {
        width: fit-content;
        text-align: left;
    }
}

ul {
    width: fit-content;
    margin: 0 auto;
}

ul li {
    list-style-type: disc;
    margin-left: 30px;
}

/* Components */

.subtitle {
    width: fit-content;
    text-align: center;
    margin: 0 auto;
    line-height: 1.2;
    font-size: 1.4rem;
    font-weight: bold;
}

.description {
    width: fit-content;
    margin: 0 auto;
}

/* Tool Card */

.tools-introductions {
    width: calc(100% - 20px);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.fake-tool-card {
    width: 300px;
    height: 0;
    margin: 0 10px;
}

a.tool-card {
    display: block;
    color: #333;
    text-decoration: none;
    width: 300px;
    box-sizing: border-box;
    box-shadow: 0 0 5px #aaa;
    margin: 0 10px 20px;
    background-color: #fff;
    word-break: keep-all;
    overflow-wrap: break-word;

    &:hover {
        box-shadow: 0 0 10px #aaa;
    }

    &:active {
        box-shadow: 0 0 5px #aaa;
    }

    &:visited {
        color: #333;
    }
}

.blank {
    visibility: hidden;
}

.card-img {
    width: 100%;
    height: 170px;
    background-color: #aaa;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;

    > img {
        width: 100%;
        object-fit: cover;
    }

    .region-badge-wrapper {
        position: absolute;
        display: flex;
        font-family: "Bebas Neue", sans-serif;
        top: 10px;
        left: 10px;
    }

    .region-badge {
        padding: 0 10px;
        margin-right: 10px;
        color: #fff;
        border-radius: 5px;
        font-size: 1.5rem;
    }

    .jp {
        background-color: #c91e60;
    }

    .int {
        background-color: #2660b8;
    }

    .cn {
        background-color: #33941a;
    }
}

.card-description {
    width: 100%;
    margin: 0;
    padding: 5px 10px;

    > h3 {
        margin: 0;
        margin-top: 5px;
        line-height: 1.2;
        text-align: left;
    }

    > p {
        margin: 0;
        margin-top: 5px;
        line-height: 1.6;
    }
}

/* i18n */
#language-button-wrapper {
    display: flex;
    width: fit-content;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;

    > button {
        font-size: 1.1rem;
        margin: 10px 5px 0;
    }
}

.lang-en,
.lang-ko,
.lang-zh-traditional,
.lang-vi {
    display: none;
}

.lang-en {
    font-family: "Noto Sans", sans-serif;
}

.lang-ko {
    font-family: "Noto Sans KR", sans-serif;
}

.lang-zh-traditional {
    font-family: "Noto Sans TC", sans-serif;
}

.lang-vi {
    font-family: "Noto Sans", sans-serif;
}