@keyframes rotation-animation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bavkground-animation {
    from {
        background-position: 0% 0%;
    }

    to {
        background-position: 100% 100%;
    }
}


@keyframes profile-breath-shadow {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-1px) scale(1.012);
    }
}

@keyframes profile-breath-outline {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.02);
    }
}



html,
body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--default-text-color);
}

html {
    background-image: url("../images/backgrounds/dark-triangles.webp");
    background-blend-mode: exclusion;
    animation-name: bavkground-animation;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    animation-duration: 200s;
    background-color: var(--background-color);
}

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

body {
    background-color: transparent;
}

::-webkit-scrollbar {
    width: 10px;
}

/* Track */

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 5px;
}

/* Handle */

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Handle on hover */

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.63);
}

h1 {
    font-size: xx-large;
    padding: 0;
    margin: 0;
}

h3 {
    margin-block-end: 0.5em;
    margin-block-start: 0.5em;
    color: var(--dark-gray-color);
}

.h3-link {
    margin-block-end: 0.15em;
    margin-block-start: 0.15em;
}

h4 {
    margin: 4px 0;
    font-weight: 400;
}

.main-panel {
    width: 100%;
    height: auto;
    background-color: var(--default-background);
    background-image: var(--bg-img);
    /*background-blend-mode: multiply;*/
}

.content-panel {
    width: 100%;
    height: auto;
    background-color: var(--default-background);
    background-image: var(--bg-img);
    /*background-blend-mode: multiply;*/
}

.main-container {
    width: 100%;
    height: 100%;
}

.img-full-width {
    width: 100%;
    height: auto;
}

.profile-info {
    padding: 25px 20px 10px 20px;
}

.skill-set {
    display: flex;
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.skill-icon {
    font-size: 2.6em;
    text-align: center;
    margin: 10px;
    cursor: pointer;
}

.big-icon {
    font-size: 1.4em;
    margin: 0 20px 0 0;
}

h3>i {
    margin-right: 15px;
}

.skill-icon:hover {
    animation-name: rotation-animation;
    animation-duration: 1.5s;
    filter: drop-shadow(4px 4px 12px #111);
}

.content-section {
    width: auto;
    padding: 10px 20px 10px 48px;
    margin: 0;
}

.content-section-videos {
    padding: 10px 20px;
}

.gallery-section {
    padding: 10px 0;
}

.gallery-title {
    padding: 0 0 0 48px;
}

.hr-bar {
    width: 100%;
    margin-bottom: 20px;
}

.tag {
    border-radius: 20px;
    padding: 2px 10px;
    color: var(--tag-fore-color);
    background-color: var(--tag-color);
    font-size: 16px;
    margin-right: 5px;
    margin-bottom: 5px;
    box-shadow: 2px 4px rgb(0 0 0 / 40%);

    font-family: 'Noto Sans JP', sans-serif;
}

.small-tag {
    border-radius: 20px;
    padding: 2px 10px;
    color: var(--tag-fore-color);
    background-color: var(--tag-color);
    font-size: 10px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.tag-alt {
    color: var(--tag-fore-color);
    background-color: var(--tag-alt-color);
}

.meter {
    height: 18px;
    position: relative;
    background-color: var(--bar-background);
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
    padding: 3px;
    box-shadow: inset 0 -1px 1px rgb(255 255 255 / 60%);
}

.meter>span {
    display: block;
    height: 100%;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: var(--blue-color);
    box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.3), inset 0 -2px 2px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.gallery {
    display: flex;
    /* width: 100%; */
    height: 100%;
    justify-content: space-evenly;
    /* align-items: center; */
    flex-wrap: wrap;
    border-radius: 15px;
    overflow: hidden;
}

.gallery>div {
    padding: 0;
    margin: 0;
}

.gallery>div>img {
    width: 100%;
    padding: 0;
    margin: 0;
    height: 100%;
}

.date {
    font-weight: 400;
    color: var(--greenish-color);
}

.section-title {
    color: var(--green-color);
    margin-bottom: 30px;
    font-size: 1.6em;
    margin-left: -24px;
}

.dev-title {
    color: var(--blue-color);
    font-size: 1.2em;
    margin: 0;
}

.soft-link {
    text-decoration: none;
    font-size: 0.9em;
}

.soft-link>i {
    margin-right: 10px;
}

.soft-link:visited {
    text-decoration: none;
}

.container-img {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: rgba(0, 0, 0, 0.65);
}

.container-img:hover .overlay {
    opacity: 1;
}

.gallery-text {
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0px 10px rgb(0 0 0 / 20%);
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer-content {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px 10%;
    text-align: center;
    color: white;
    margin-top: 60px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.half-width {
    width: 100%;
    margin-bottom: 20px;
}

.tag-block {
    display: block;
    text-align: center;
    padding: 4px 10px;
    font-weight: 300;
    font-size: 0.3em;
    margin: 4px auto;
}

.green-background {
    background-color: var(--green-color);
}

.blue-color {
    color: var(--blue-color);
}

.header-banner {
    position: relative;
    width: 100%;
}

.print-only {
    display: none;
}

.img-profile {
    z-index: 400;
    width: 35%;
    height: 0;
    padding-bottom: 35%;
    margin: 0 auto;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    overflow: visible;
    pointer-events: none;
    isolation: isolate;
}

.profile-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform-origin: center;
}

.profile-layer-bg {
    background-color: var(--profile-container-tint);
    box-shadow: 0 14px 24px var(--profile-container-shadow-tint);
    transform: scale(1.01);
}

.profile-layer-shadow {
    z-index: 1;
    object-fit: contain;
    filter: var(--profile-shadow-filter);
    animation: profile-breath-shadow 4.8s ease-in-out infinite;
}

.profile-layer-outline {
    z-index: 2;
    object-fit: contain;
    filter: var(--profile-outline-filter);
    animation: profile-breath-outline 4.8s ease-in-out infinite;
    animation-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .img-profile,
    .profile-layer-bg,
    .profile-layer-shadow,
    .profile-layer-outline {
        animation: none !important;
    }
}

.profile-text {
    text-align: justify;
}

.modal-details {
    width: 100%;
    height: 100%;
    z-index: 1300;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
}

.modal-background {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-items: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.modal-content {
    width: 90%;
    height: 90%;
    padding: 0;
    margin: 0;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    opacity: 0;
}

.modal-openend {
    opacity: 1 !important;
    transition: 0.7s all ease;
}

.modal-gallery {
    width: 100%;
    height: 40%;
    position: relative;
    background-color: black;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.modal-preview-background {
    width: 100%;
    height: 100%;
    background-color: #222;
    /* background-image: url("..//images/screenshotsam.webp"); */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    /* filter: blur(8px); */
    /* -webkit-filter: blur(8px); */
}

.modal-preview {
    width: 100%;
    height: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    /* background-image: url("..//images/screenshotsam.webp"); */
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    filter: none;
    -webkit-filter: none;
    z-index: 1600;
    top: 0;
    left: 0;
    position: absolute;
}

.modal-description {
    height: 60%;
    width: 100%;
    overflow-y: auto;
    background-color: var(--default-background);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 0;
    margin: 0;
}

.modal-description-content {
    padding: 0 20px 20px 20px;
}

.modal-gallery-prev {
    height: 100%;
    width: 20%;
    background-color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1700;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    cursor: pointer;
}

.modal-gallery-next {
    height: 100%;
    width: 20%;
    background-color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1700;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    cursor: pointer;
}

.modal-gallery-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-gallery-prev:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.loading-background {
    display: flex;
    align-items: center;
    justify-items: center;
}

.loading-text {
    color: var(--white-color);
    text-align: center;
    width: 100%;
    font-size: x-large;
}

.btn {
    display: block;
    border-radius: 20px;
    padding: 5px 20px;
    text-align: center;
    border-style: none;
    margin: 0 auto;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-primary {
    color: var(--white-color) !important;
    background-color: var(--green-color);
    box-shadow: 4px 5px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    color: var(--white-color) !important;
    background-color: var(--dark-blue-color);
    box-shadow: 4px 5px rgba(0, 0, 0, 0.2);
}

.big-button {
    width: 80%;
    font-size: x-large;
}

.full-button {
    width: 100%;
    font-size: x-large;
}

.justify {
    text-align: justify;
}

.text-right {
    text-align: right;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
}

.preview-title {
    color: var(--green-color);
    margin-bottom: 30px;
    font-size: 1.6em;
    margin-block-start: 0.5em;
    margin-block-end: 0.3em;
}

.space-block {
    height: 24px;
}

.space-block-small {
    height: 24px;
}

.modal-close-button {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 1800;
    color: var(--white-color);
    font-size: 4em;
    border: 0;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.modal-close-button:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-selector {
    position: absolute;
    padding: 6px 14px;
    top: 5px;
    right: 5px;
    z-index: 900;
    color: var(--white-color);
    border-radius: 20px;
    background-color: var(--dark-orange-color);
    box-shadow: 4px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.theme-selector {
    position: absolute;
    padding: 6px 14px;
    top: 5px;
    left: 5px;
    z-index: 900;
    color: var(--white-color);
    border-radius: 20px;
    background-color: var(--tag-color);
    box-shadow: 4px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}



@media (min-width: 320px) {
    .img-full-width {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .main-panel {
        width: 95%;
        margin: 2.5% auto;
        border-radius: 10px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    .content-panel {
        width: 95%;
        margin: 0 auto;
        margin-bottom: 5%;
        border-radius: 10px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }
}

@media (min-width: 800px) {
    .main-container {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        width: 95%;
    }

    .content-panel {
        width: 60%;
        height: 95%;
        margin-bottom: 0;
        overflow-y: auto;
    }

    .main-panel {
        height: 95%;
        width: 40%;
        overflow-y: auto;
        margin: 0;
        margin-right: 2.5%;
    }

    .modal-description {
        height: 40%;
    }

    .modal-gallery {
        height: 60%;
    }
}

@media (min-width: 960px) {
    .main-container {
        width: 90%;
    }

    .content-panel {
        width: 60%;
    }

    .main-panel {
        width: 40%;
        margin: 0 20px;
    }

    .half-width {
        width: 50%;
        margin-bottom: 20px;
    }

    .panel-info {
        padding-left: 10px;
    }

    .modal-description {
        border-radius: 0;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
        width: 30%;
        height: 100%;
    }

    .modal-gallery {
        border-radius: 0;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        width: 70%;
        height: 100%;
    }

    .container-img {
        width: 50%;
    }

    .space-block {
        height: 48px;
    }

    .modal-close-button {
        right: 0;
        top: 0;
    }
}

@media (min-width: 1400px) {
    .main-container {
        width: 1400px;
    }

    .modal-content {
        width: 1400px;
    }

    .modal-description {
        width: 30%;
    }

    .modal-gallery {
        width: 70%;
    }

    .skills-title {
        margin-top: 60px;
    }
}

@media print {

    html {
        animation-name: none;
    }

    .theme-selector {
        display: none;
    }

    .lang-selector {
        display: none;
    }

    #gallery {
        display: none;
    }

    #video-section {
        display: none;
    }

    #gallery-simple {
        display: none;
    }

    #footer-app {
        display: none;
    }

    strong {
        font-weight: 400;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        /* Chrome, Safari 6 – 15.3, Edge */
        color-adjust: exact !important;
        /* Firefox 48 – 96 */
        print-color-adjust: exact !important;
        /* Firefox 97+, Safari 15.4+ */
    }

    @page {
        margin: 0;
    }

    .print-only {
        display: block;
    }

    ::-webkit-scrollbar {
        width: 0px;
    }
    
    /* Track */
    
    ::-webkit-scrollbar-track {
        box-shadow: inset 0 0 0px grey;
        border-radius: 0px;
    }
    
    /* Handle */
    
    ::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0);
        border-radius: 0px;
    }
    
    /* Handle on hover */
    
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.0);
    }

    .profile-info>h1 {
        text-align: center;
        font-size: 28px;
    }

    .profile-info>h2 {
        text-align: center;
        font-size: 20px;
    }

    .img-full-width {
        border-radius: 0px;
    }

    .skill-icon {
        font-size: 1.4em;
        margin: 10px;
    }

    .section-title {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1em;
    }

    .lang-title {
        margin-top: 180px;
        margin-bottom: 30px;
    }

    .skills-title {
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .tag {
        box-shadow: 0 0 0 0;
        font-size: 14px;
    }

    .tag-block {
        font-size: 10px;
        background: none;

        color: var(--default-text-color);
    }

    p {
        font-size: 12px;
    }

    .main-container {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        width: 100%;
    }

    .content-panel {
        width: 60%;
        height: 100%;
        margin-bottom: 0;
        overflow-y: auto;

        border-radius: 0px;
        box-shadow: 0;
    }

    .main-panel {
        height: 100%;
        width: 40%;
        overflow-y: auto;
        margin: 0;
        margin-right: 1.5%;

        border-radius: 0px;
        box-shadow: 0;
    }

    .modal-description {
        height: 40%;
    }

    .modal-gallery {
        height: 60%;
    }
}