body {
    background-color: #fff;
    color: #000;
    height : 100vh;
    width: 100vw;
    margin: 0;
    overflow-x: hidden;
    background-image: url('./Sources/background.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 100%;
    background-attachment: fixed;
}

@media (prefers-color-scheme: dark) {
    body {
        color: #fff;
        background-color: #000;
        background-image: url('./Sources/background_black.svg');
    }
}
@media (max-width: 768px) {
    p, h1, h2, h3, li, img, button, :not(.header p1), :not(.header img) {
        background-color: rgba(255, 255, 255, 0.5);
    }
    p {
        font-size: 1.2rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.3rem;
    }
    li {
        font-size: 1.2rem;
    }
    @media (prefers-color-scheme: dark) {
        p, h1, h2, h3, li, img, button, :not(.header p1), :not(.header img) {
            background-color: rgba(0, 0, 0, 0.5);
        }
    }
}

.header {
    padding: 0px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    background-color: rgba(255, 255, 255, 0.5);
    .icon {
        width: 50px;
        height: 50px;
    }
    .h1 {
        margin-left: 20px;
    }
    .scroll-buttons {
        display: flex;
        align-items: center;
        margin-left: 10px;
        & button {
            color : #000;
            background-color: transparent;
            border-left: 2px solid rgba(0, 0, 0, 0.5);
            border-radius: 5px;
            border-right: none;
            border-top: none;
            border-bottom: none;
            width: 100px;
            height: 50px;
        }
        & button:last-child {
            border-right: 2px solid rgba(0, 0, 0, 0.5);
        }
    }
    .language-button-icon {
        margin-left: auto;
        margin-right: 10px;
        height: 50px;
        width: 50px;
        border: none;
        background-color: transparent;
        background-image: url('./Sources/Icons/AdobeStock_558900896.svg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        cursor: pointer;
    }
    .language-button {
        margin-right: 40px;
        height: 30px;
        width: 170px;
        border: none;
        background-color: transparent;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        cursor: pointer;
        color: #000;
    }
    @media (prefers-color-scheme: dark) {
        background-color: rgba(0, 0, 0, 0.5);
        .scroll-buttons button{
            color: #fff;
            border-left: 2px solid rgba(255, 255, 255, 0.5);
        }
        .scroll-buttons button:last-child {
            border-right: 2px solid rgba(255, 255, 255, 0.5);
        }
        .language-button-icon {
            filter: invert(1);
        }
        .language-button {
            color: #fff;
        }
    }
}

@media (max-width: 768px) {
    .scroll-buttons{
        & button {
            display: none;
        }
    }
}

.contents {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    padding-left: 25vw;
}

@media (max-width: 768px) {
    .contents{
    padding-left: 0;
    }
}

.profile, .skill-tree, .projects, .contacts {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    font-size: 2rem;
}


.skill-tree {
    width: 100%;
    max-width: 100vw;
    .tools-box {
        width: 100%;
        display: flex;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding: 10px 20px;
        scroll-padding: 0 20px;
        gap: 20px;
        justify-content: flex-start;
        .python, .unity-csharp, .html-css-javascript, .git-github {
            border: 2px solid #000;
            border-radius: 10px;
            padding: 10px;
            width: auto;
            text-align: center;
            flex-shrink: 0;
            @media (prefers-color-scheme: dark) {
                border: 2px solid #fff;
            }
            .python-icon, .unity-icon {
                max-width: 150px;
                height: auto;
            }
            .html-icon, .css-icon, .javascript-icon, .git-icon, .github-icon {
                max-width: 50px;
                height: auto;
                margin: 0 5px;
            }
            & h3 {
                margin-top: 10px;
                margin-bottom: 10px;
            }
            & p {
                margin: 5px 0;
                font-size: 14px;
            }
            .html-css-javascript-icon, .git-github-icon {
                display: flex;
                justify-content: center;
            }
            @media (max-width: 768px) {
                max-width: 80vw;
            }
        }
    }
}

.projects{
    & li {
        text-align: left;
    }
}

.contacts {
    .sns-twitter, .sns-github {
        padding: 10px;
        width: auto;
        text-align: left;
        margin: 10px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        flex-wrap: nowrap;
        & p {
            margin: 5px 0;
            text-align: left;
        }
    }
    .x-button, .github-button {
        height: 50px;
        width: 50px;
        border: none;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        cursor: pointer;
        background-color: transparent;
    }
    .x-button {
        background-image: url('./Sources/Icons/logo-black.png');
    }
    .github-button {
        background-image: url('./Sources/Icons/github-mark.svg');
    }

    @media (prefers-color-scheme: dark) {
        .x-button {
            background-image: url('./Sources/Icons/logo-white.png');
        }
        .github-button {
            background-image: url('./Sources/Icons/github-mark-white.svg');
        }
    }
}
