@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Yuji+Boku&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
    --bottom-buttons-scale: 40px;
    --page-bg-color: #000000;
}

body {
    background-color: var(--page-bg-color);
    color: white;

    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin: 0;
}

#page-contents {
    width: calc(100vw-100px);
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;

    animation-name: fade-in;
    animation-duration: 2s;
}

#page-contents img,
#page-contents video {
    max-width: 100%;
    max-height: 90vh;
    margin: 20px 0;
}

#page-contents #reel-vid {
    width: fit-content;
    filter: drop-shadow(0 0 10px #495c28);
    max-height: 50%;
    margin: 20px 0;
    padding-top: 70px;

    flex-basis: 0;
    flex-grow: 2;
}

#page-contents #reel-vid:fullscreen {
    filter: none;
    margin: 0;
    padding: 0;
}

#page-contents p,
#page-contents h1,
#page-contents h2 {
    padding-left: 200px;
    padding-right: 200px;
}

#page-contents h1 {
    font-size: 60px;
}

#page-contents h2 {
    margin-top: 50px;
    font-size: 40px;
}

#page-contents p {
    align-self: flex-start;
}

#projects-container-outer {
    width: 100vw;
    height: calc(100vh - 50px);

    display: flex;
    flex-direction: column;
}

/* on the demo reel page only*/
#page-contents #projects-container-outer {
    /*height: 30%;*/
    flex-basis: 0;
    flex-grow: 1;
}

#page-contents.reel-page {
    height: 100vh;
    padding: 0;
    justify-content: space-between;
}

.projects-container {
    flex-basis: 0;
    flex-grow: 1;


    display: flex;
    overflow: hidden;
    flex-wrap: nowrap;
    transition: all ease 0.5s;
}

.project {
    flex-basis: 0;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    transition: all ease 0.5s;



    /*height: 50%;*/
    /*max-width: 33%;*/
}

.project a {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    color: unset;
}

.project img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: all ease 0.5s;
}

.project .project-title {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    transition: all ease 0.5s;

}

.project h2 {
    margin: 0;
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
    font-size: 75px;
    /*font-family: "Yuji Boku", serif;*/
    font-weight: 800;
    font-style: normal;
    filter: drop-shadow(0 0 10px black);
}

.en .project h2 {
    margin: 0;
    writing-mode: horizontal-tb;
    text-align: center;
    text-orientation: upright;
    font-size: 75px;
    /*font-family: "Yuji Boku", serif;*/
    font-weight: 800;
    font-style: normal;
    filter: drop-shadow(0 0 10px black);
}


/* on the demo reel page only*/
#page-contents .project h2 {
    writing-mode: horizontal-tb;
    padding: 0;
}

.projects-container:hover {
    flex-grow: 1.5;
}

#projects-container-outer:has(.project:hover) img {
    filter: brightness(25%);
}

.project:not(:hover) .project-title {
    opacity: 0;
}

#projects-container-outer .project:hover {
    flex-grow: 1.5;

}

#projects-container-outer .project:hover img {
    filter: brightness(100%);
}

.flex-break {
    width: 100%;
    height: 0;
}



.close-button {
    animation-name: navigation-buttons-off;
    animation-duration: 0.5s;
    position: fixed;
    top: 0;
    width: 35px;
    margin: 20px;
    opacity: 0.2;
}

.close-button:hover {
    animation-name: navigation-buttons-on;
    animation-duration: 0.5s;
    opacity: 1;
}

.previous-button {
    animation-name: navigation-buttons-off;
    animation-duration: 0.5s;
    position: fixed;
    top: 50%;
    transform: translate(0, -50%);
    width: 50px;
    margin: 20px;
    opacity: 0.2;
}

.previous-button:hover {
    animation-name: navigation-buttons-on;
    animation-duration: 0.5s;
    opacity: 1;
}

.next-button {
    animation-name: navigation-buttons-off;
    animation-duration: 0.5s;
    position: fixed;
    top: 50%;
    transform: translate(0, -50%);
    right: 0px;
    width: 50px;
    margin: 20px;
    opacity: 0.2;
}

.next-button:hover {
    animation-name: navigation-buttons-on;
    animation-duration: 0.5s;
    opacity: 1;
}


@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


#header {
    display: flex;
    height: 50px;
    width: calc(100vw - 200px);
    padding: 0 100px;
    justify-content: space-between;
    background-color: var(--page-bg-color);
    z-index: 1000;
}

#header.sticky {
    all: unset;
    position: fixed;
    top: 0;
    left: 0;

    display: flex;
    cursor: pointer;
    height: 50px;
    width: calc(100vw - 200px);
    padding: 0 100px;
    justify-content: space-between;
    background-color: var(--page-bg-color);
    transition: all ease 0.25s;
}

#header.sticky::after {
    content: "↤　トップへ";
    position: fixed;
    top: 0;
    left: 0;
    max-height: 50px;
    width: 100vw;
    padding: 11px 0;
    text-align: center;
    background-color: #730417;
    font-size: 20px;
    transform: translateY(-50px);
    opacity: 0;
    transition: all ease 0.25s;
}

.en #header.sticky::after {
    content: "↤　Home";
}

#header.sticky:active::after {
    /*padding-top: 20px;*/
    animation: pop-down 0.25s ease;
}

@keyframes pop-down {
    0% {
        padding-top: 11px;
    }

    50% {
        padding-top: 20px;
    }

    100% {
        padding-top: 11px;
    }
}

#header.sticky h1,
#header.sticky p {
    transform: translateY(0);
    opacity: 1;
    transition: all ease 0.25s;
}

#header.sticky:hover h1,
#header.sticky:hover p {
    transform: translateY(-50px);
    opacity: 0;
}

#header.sticky:hover::after {
    opacity: 1;
    transform: translateY(0);
}

#header h1 {
    font-size: 20px;
}


@keyframes slide-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#credits {
    background-color: #1e105c;
    border-radius: 10px;
    margin: 0 200px;
    padding: 10px;
    width: calc(100% - 400px);
    transition: all ease 0.25s;
}

#credits:not(:has(input:checked)):hover {
    background-color: #301b8a;
}

#credits p {
    padding-left: 0;
    padding-right: 0;

}

#credits input {
    display: none;
}

#credits label {
    user-select: none;
    cursor: pointer;
    width: 100%;
    display: inline-block;
}

#credits label:after {
    content: "▼";
    font-size: 15px;
    transform: rotate(0) translateY(-1px);
    display: inline-block;
    margin-left: 10px;
    transition: all ease 0.5s;
}

#credits p,
#credits ul,
#credits li {
    opacity: 0;
    font-size: 0;
    margin: 0;
    padding: 0;
    transform: scaleY(0);
    transition: all ease 0.5s;
}

#credits:has(input:checked) p {
    opacity: 1;
    font-size: initial;
    margin: 10px 0;
    padding: initial;
    transform: scaleY(1);
}

#credits:has(input:checked) li {
    opacity: 1;
    font-size: initial;
    margin: 0;
    padding: initial;
    transform: scaleY(1);
}

#credits:has(input:checked) ul {
    display: block;
    opacity: 1;
    font-size: initial;
    margin: 10px 0;
    padding-left: 40px;
    transform: scaleY(1);
}

#credits:has(input:checked) label:after {
    transform: rotate(180deg) translateY(-2px);
}

#credits a,
#credits a:visited {
    color: #755ce4;
}

#tag-container {
    width: 100%;
    display: flex;
    gap: 10px;
    margin: 0 200px;
    width: calc(100% - 400px + 20px);
    /* 20px for the padding it doesn't have*/
}

#time-date,
#software {
    /*display: flex;
    gap: 10px;*/
    background-color: #1e105c;
    padding: 10px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#software {
    flex-grow: 1;
}

#time-date svg,
#software svg {
    width: 18px;
    height: 18px;
    fill: white;
    display: inline-block;
    transform: translateY(3px);
}

#time-date p,
#software p {
    display: inline-block;
    padding: 0;
    margin: 0;
}

#time-date p {
    word-break: keep-all;
}

#bottom-left-buttons,
#bottom-right-buttons {
    position: fixed;
    bottom: 20px;
    display: flex;
    gap: 10px;
    transition: all 0.4s ease;
}

#bottom-left-buttons {
    left: 20px;
}


#bottom-right-buttons {
    right: 20px;
}

#page-contents:has(#projects-container-outer:hover) ~ #bottom-left-buttons,
#page-contents:has(#projects-container-outer:hover) ~ #bottom-right-buttons {
    opacity: 0.2;
}

#reel-btn,
#about-btn,
#change-lang-btn {
    all: unset;
    width: fit-content;
    padding: 10px;

    background-color: var(--page-bg-color);
    border-radius: 10px;
    border: 1px solid #201e1e;
    filter: drop-shadow(0 0 5px black);

    display: flex;
    align-items: center;

    cursor: pointer;
    user-select: none;
    transition: all ease 0.2s;
}

#reel-btn:hover,
#about-btn:hover,
#change-lang-btn:hover {
    background-color: #191919;
}

#reel-btn:active,
#about-btn:active,
#change-lang-btn:active {
    transform: translateY(5px);
}

#about-btn::before {
    content: "自己紹介";
    opacity: 0;
    margin: 0;
    margin-right: 0;
    font-size: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: all ease 0.2s;
}

.en #about-btn::before {
    content: "About Me";
}

#about-btn:hover::before {
    opacity: 1;
    margin: 0;
    margin-right: 10px;
    font-size: 20px;
    transform: scaleX(1);
}

#reel-btn .reel-photo,
#about-btn .profile-photo,
#change-lang-btn .lang-photo {
    display: inline-block;
    /* background-size: cover; */
    background-size: 100%;
    width: var(--bottom-buttons-scale);
    height: var(--bottom-buttons-scale);
    background-repeat: no-repeat;
    background-position: center;
}

#reel-btn .reel-photo {
    background-image: url("../Resources/reel/reel-icon.png");
}

#about-btn .profile-photo {
    background-image: url("../Resources/about/profile-photo.png");
    border-radius: 100px;
}

#change-lang-btn .lang-photo {
    background-image: url("../Resources/ui/language.png");
    transition: all 0.2s ease;
    rotate: 0;
}

#change-lang-btn:hover .lang-photo {
    background-size: 0;
    rotate: 180deg;
}

#change-lang-btn::after {
    content: "";
    background-image: url("../Resources/ui/language-change.png");
    background-size: 0;
    width: var(--bottom-buttons-scale);
    height: var(--bottom-buttons-scale);
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    transition: all 0.2s ease;
    rotate: 180deg;
}

#change-lang-btn:hover::after {
    background-size: 100%;
    rotate: 360deg;
}


#reel-btn::after {
    content: "デモリール";
    opacity: 0;
    margin: 0;
    margin-left: 0;
    font-size: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all ease 0.2s;
}

.en #reel-btn::after {
    content: "Demo Reel";
}

#reel-btn:hover::after {
    opacity: 1;
    margin: 0;
    margin-left: 10px;
    font-size: 20px;
    transform: scaleX(1);
}


.columns {
    display: flex;
    gap: 30px;
    padding-left: 200px;
    padding-right: 200px;
}

#page-contents .columns img.profile-photo {
    border-radius: 1000px;
    width: 400px;
    height: 400px;
    max-width: unset;
}

.profile-photo-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.highlight-box {
    background-color: #1e105c;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

#page-contents .columns p {
    padding: 0;
    margin: 20px 0;
}

#page-contents .columns h1,
#page-contents .highlight-box p {
    padding: 0;
    margin: 0;
}

#page-contents .columns h1 {
    margin-top: 40px;
    margin-bottom: 10px;
}

.button {
    all: unset;
    height: 20px;
    user-select: none;
    cursor: pointer;

    background-color: #262726;
    border-radius: 10px;
    border: 1px solid #201e1e;
    filter: drop-shadow(0 0 5px black);
    padding: 10px;

    display: flex;
    align-items: center;
    gap: 10px;

    transition: all ease 0.2s;
}

.button:hover {
    background-color: #495c28;
}

.button:active {
    transform: translateY(5px);
}

.button svg {
    fill: white;
    height: 20px;
    width: 20px;
}

.button span {
    transform: translateY(-1px);
}

span.highlight {
    font-weight: 600;
    background-color: #755ce4;
    ;
    border-radius: 10px;
    padding: 0 8px;
    color: var(--page-bg-color);
}


.button-container {
    display: flex;
    gap: 10px;
}

/* RED container */
#tag-container.red #time-date,
#tag-container.red #software,
#credits.red {
    background-color: #730417;
}

#credits:not(:has(input:checked)).red:hover {
    background-color: #a1122a;
}

#credits.red .highlight {
    background-color: #c81c39;
    color: white;
}

#credits.red a {
    color: #ff5b76;
}

/* BROWN container */
#tag-container.brown #time-date,
#tag-container.brown #software,
#credits.brown {
    background-color: #633d21;
}

#credits:not(:has(input:checked)).brown:hover {
    background-color: #8d532a;
}

#credits.brown .highlight {
    background-color: #c76b29;
    color: rgb(0, 0, 0);
}

#credits.brown a {
    color: #e0762b;
}

/* TEAL container */
#tag-container.teal #time-date,
#tag-container.teal #software,
#credits.teal {
    background-color: #14323f;
}

#credits:not(:has(input:checked)).teal:hover {
    background-color: #255b72;
}

#credits.teal .highlight {
    background-color: #255b72;
    color: rgb(255, 255, 255);
}

#credits.teal a {
    color: #2e7897;
}

/* GREEN container */
#tag-container.green #time-date,
#tag-container.green #software,
#credits.green {
    background-color: #495c28;
}

#credits:not(:has(input:checked)).green:hover {
    background-color: #658037;
}

#credits.green .highlight {
    background-color: #2b3617;
    color: rgb(255, 255, 255);
}

#credits.green a {
    color: #7b9f3e;
}



.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 200,
  'GRAD' 0,
  'opsz' 24
}

#skills-container>div {
    display: flex;
    gap: 10px
}

#social-media-links {
    display: flex;
    gap: 10px;
}

#social-media-links a {
    margin: 0;
    padding: 0;
    transition: all 0.2s ease;
}

#social-media-links a:hover {
    animation-name: pop;
    animation-duration: 0.2s;
}

@keyframes pop {
    0% {
        scale: 1;
    }

    10% {
        scale: 0.9;
    }

    70% {
        scale: 1.2;
    }

    100% {
        scale: 1;
    }
}

#social-media-links svg {
    height: 30px;
    width: 30px;
}

.svg-positive {
    fill: white;
}

.svg-negative {
    fill: var(--page-bg-color);
}