@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Gugi&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR&display=swap');

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    /* background-color: black; */
}

::selection {
    background-color: rgba(0, 0, 0, 0.25);
    color: white;
}

::-moz-selection {
    background-color: rgba(0, 0, 0, 0.25);
    color: white;
}

ol, ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: black;
}

a :hover {
    z-index: 10000000;
}

/* Top slide */
#section1 {
    font-family: 'Gugi', cursive;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-content: space-around;
    background: linear-gradient(-90deg, #097059, #150000, #150000, #cab378);
    background-size: 400% 400%;
    animation: gradient 45s ease-in-out infinite;
    }

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#section1 div {
    transition: 0.4s;
}
#section1 .container {
    display: flex;
    width: 100%;
    height: 100%;
}

#section1 .column {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 30%;
    flex-grow: 1;
    flex-shrink: 1;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: space-around;
    transition: all .6s;
    margin: 5% 1% 5% 1%;
    border-radius: 400px;
    background: rgb(61, 32, 26) !important;
    cursor: pointer;
}

#section1 .column[targeted] {
    flex-grow: 3;
    flex-basis: 70%;
}

#section1 .column-content {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.5em;
    width: 60%;
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: justify;
    color: white;
    padding-right: 20px;
}

#section1 .column[targeted] .column-content {
    max-height: 60%;
}
#section1 .column-content::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 50px;
    background-color: #F5F5F5;
}
#section1 .column-content::-webkit-scrollbar {
    width: 12px;
    background: none;
}
#section1 .column-content::-webkit-scrollbar-thumb {
    border-radius: 50px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #d9d9d9;
}

#section1 .column-title {
    font-family: 'Gugi', cursive;
    text-align: center;
}
#section1 .column-title:hover:after {
    visibility: visible;
    opacity: 1 !important;
    font-size: 4.5vw;
}
#section1 .column-title:hover:before {
    opacity: 0;
    visibility: hidden;
    font-size: 0;
}
#section1 .column[targeted] .column-title:after {
    visibility: visible;
    opacity: 1 !important;
    font-size: 5vw;
}
#section1 .column[targeted] .column-title:before {
    opacity: 0;
    visibility: hidden;
    font-size: 0;
}
#section1 .column-title[targeted] {
    top: 15%;
}
#section1 .column-title[targeted]:after {
    font-size: 5vw;
    opacity:1;
}
#section1 .column-title[targeted]:before {
    content: none;
}

#history-column-title:before {
    -webkit-text-stroke: 3px rgb(239, 195, 119);
    color: transparent;
    margin-right: 10px;
    content: '역사';
    font-size: 15vw;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
}
#history-column-title:after {
    -webkit-text-stroke: 3px black;
    color: white;
    content: 'HISTORY';
    opacity: 0;
    visibility: hidden;
    font-size: 0;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
}

#nameorigins-column-title:before {
    -webkit-text-stroke: 3px rgb(93, 195, 119);
    color: transparent;
    margin-right: 10px;
    content: '문화';
    font-size: 15vw;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
}
#nameorigins-column-title:after {
    -webkit-text-stroke: 2px black;
    color: white;
    content: 'NAME ORIGINS';
    opacity: 0;
    visibility: hidden;
    font-size: 0;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
}

#culture-column-title:before {
    -webkit-text-stroke: 3px rgb(93, 80, 55);
    color: transparent;
    margin-right: 10px;
    content: '이름';
    font-size: 15vw;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
}
#culture-column-title:after {
    -webkit-text-stroke: 2px black;
    color: white;
    content: 'CULTURE';
    opacity: 0;
    visibility: hidden;
    font-size: 0;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
}

@media(max-width: 1333px) {
    #section1 .column-title:after {
        -webkit-text-stroke: unset;
    }
}

/* Bottom slide */
#section3 {
    display: flex;
    align-items: center;
    justify-content: center;
    animation-fill-mode: forwards;
    flex-flow: column;
    background: linear-gradient(-90deg, #8ca261, #e21c1e, #e21c1e, #f4cfbe);
    background-size: 400% 400%;
    animation: gradient 45s ease-in-out infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#section3 h1 {
    font-family: 'Gugi', cursive;
    margin-top: 2vmin;
    margin-bottom: 2vmin;
    font-size: 15vmin;
    color: transparent;
    text-align: center;
    -webkit-text-stroke: 3px white;
    z-index: 1;
}
@media(max-width: 850px) {
    #section3 h1  {
        -webkit-text-stroke: 1px white;
    }
}
@media(max-width: 550px) {
    #section3 h1  {
        -webkit-text-stroke: 0px white;
        color: white;
    }
}

#background-ingredients {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

#background-ingredients img {
    position: absolute;
    display: block;
    list-style: none;
    animation: animate 25s linear infinite;
    bottom: -250px;
}

@keyframes animate {
    0%{
        transform: translateY(0) rotate(0deg);
    }
    100%{
        transform: translateY(-150vh) rotate(720deg);
    }
}

#section4 {
    display: flex;
    align-items: center;
    justify-content: center;
    animation-fill-mode: forwards;
    flex-flow: column;
    background: linear-gradient(-90deg, #8ca261, #e21c1e, #e21c1e, #f4cfbe);
    background-size: 400% 400%;
    animation: gradient 45s ease-in-out infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#section4 h1 {
    font-family: 'Gugi', cursive;
    margin-top: 2vmin;
    margin-bottom: 2vmin;
    font-size: 15vmin;
    color: transparent;
    text-align: center;
    -webkit-text-stroke: 3px white;
}
@media(max-width: 850px) {
    #section4 h1  {
        -webkit-text-stroke: 1px white;
    }
}
@media(max-width: 550px) {
    #section4 h1  {
        -webkit-text-stroke: 0px white;
        color: white;
    }
}

#section4 #ingredients-circle {
    position: relative;
    width: 85vmin;
    height: 85vmin;
    border-radius: 100%;
    border: 1vmin solid black;
    transform: rotate(45deg);
    transition: z-index 1.5s;
}
#section4 .quarter {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 50%;
    height: 50%;
    transition: 0.4s ease-in-out, z-index 0.5s;
    cursor: pointer;
    z-index: 1;
}
#section4 .quartercheckbox {
    display: none;
}
#section4 .quarter:hover .quarter-title {
    transition: height 0.2s;
    visibility: visible;
    opacity: 1;
}
#section4 .quarter[targeted] {
    border-radius: 100%;
    width: 100%;
    height: 100%;
    z-index: 10;
}
#section4 .quarter[targeted].cutout {
    top: 0;
    left: 0;
}
#section4 .quarter[targeted] .quarter-title {
    visibility: hidden;
    opacity: 0;
    height: 0;
}
#section4 .quarter[targeted] .quarter-content {
    transition: 1.5s ease-in-out, height 0.2s;
    visibility: visible;
    opacity: 1;
    height: 100%;
}

#section4 .quarter1 {
    top: 0;
    left: 0;
    background-color: rgb(44, 29, 32);
    border-radius: 100% 0 0 0;
}
#section4 .quarter2 {
    top: 0;
    right: 0;
    background-color: rgb(96, 193, 44);
    border-radius: 0 100% 0 0;
}
#section4 .quarter3 {
    bottom: 0;
    left: 0;
    background-color: rgb(255, 239, 164);
    border-radius: 0 0 0 100%;
}
#section4 .quarter4 {
    bottom: 0;
    right: 0;
    background-color: rgb(217, 25, 0);
    border-radius: 0 0 100% 0;
}
#section4 .cutout {
    width: 30%;
    height: 30%;
    background-color: rgb(255, 218, 0);
    position: absolute;
    top: 35%;
    left: 35%;
    border-radius: 50%;
}
#section4 .quarter-title {
    text-align: center;
    font-family: 'Gugi', cursive;
    -webkit-text-stroke: 3px black;
    width: 100%;
    height: auto;
    font-size: 7vmin;
    color: white;
    transform: rotate(-45deg);
    visibility: hidden;
    opacity: 0;
    transition: 0.2s ease-in-out;
}
#section4 .quarter-content {
    width: 100%;
    height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-family: 'Gugi', cursive;
    text-align: center;
    color: white;
    visibility: hidden;
    font-size: 5vmin;
    opacity: 0;
    transform: rotate(-45deg);
}
#section4 .quarter-content.black {
    color: black;
}
#section4 .quarter-content.white {
    color: white;
}
#section4 .quarter-content-title {
    margin-top: 5vmin;
    margin-bottom: 5vmin;
    font-size: 25vmin;
    color: transparent;
}
#section4 .black .quarter-content-title {
    -webkit-text-stroke: 5px black;
}
#section4 .white .quarter-content-title {
    -webkit-text-stroke: 5px white;
}
#section4 .ingredients-image {
    position: absolute;
    left: 0;
    top: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0.4s ease, opacity 0.4s ease;
    z-index: 10;
}

.slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Left slide */
#slide1 {
    background: url('../images/leftpage.png');
    background-size: 100% 100%;
    background: linear-gradient(0deg, #ba5a3e, #f2c1b7, #ffefa4, #ffefa4, #a68d5f, #150000);
    background-size: 200% 400%;
    animation: gradientvertical 45s ease-in-out infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#slide1 .carte{
    position: absolute;
    z-index: 0;
    height: 150%;
    width: 150%;
    align-self: center;
}

#slide1 h1 {
    margin-top: 3.5vh;
    margin-bottom: 1.5vh;
    width: 100%;
    height: 6vh;
    z-index: 1;
    text-align: center;
    font-family: 'Gugi', cursive;
    font-size: 12vmin;
    position: relative;
    color: white;
    -webkit-text-stroke: 3px black;
}

#slide1 h2 {
    margin-top: 3.5vh;
    margin-bottom: 1.5vh;
    width: 100%;
    z-index: 1;
    text-align: center;
    font-family: 'Gugi', cursive;
    font-size: 8vmin;
    position: relative;
    color: white;
    -webkit-text-stroke: 3px black;
}

#slide1 p {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 2vmin;
    padding-left: 2.5em;
    padding-right: 2.5em;
    padding-bottom: 2em;
    line-height: 1.5em;
    margin-bottom: 0.5em;
}

.imgvariante{
    width:50%;
}

#section2 .variations{
    display: flex;
    flex-wrap: nowrap;
    flex-grow: 1;
    justify-content: space-around;
    flex-direction: row;
    height: 88vh;
    width: 100%;
    z-index: 1;
}

#section2 .buttonshow {
    background: none;
    border: none;
    font-family: 'Gugi', cursive;
    font-size: 9vmin;
    position: relative;
    color: white;
    -webkit-text-stroke: 3px black;
    
}

.buttonshow:hover {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.4);
    -webkit-transform: scale(1.3);
    transition: 0.2s;

}

#section2 .variantes{
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    width: 100%;
    height: 100%;
    justify-content: space-evenly;
    z-index: 1;

}

#section2 .variantes-txt{
    display: flex;
    flex-direction: column;
    align-self: flex-end;
    width: 100%;
    height: 100%;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

#section2 .variantes-txt div{
    display: none;
}

#section2 .jeonju{
    display: block;
    width: 80%;
    background-color: #ffe994;
    border-radius: 100px;
    z-index: 1;
}

#section2 .hotstone{
    display: block;
    width: 80%;
    background-color: #ffe994;
    border-radius: 100px;
    z-index: 1;
}

#section2 .yakcho{
    display: block;
    width: 80%;
    background-color: #ffe994;
    border-radius: 100px;
    z-index: 1;
}

#section2 .hoe{
    display: block;
    width: 80%;
    background-color: #ffe994;
    border-radius: 100px;    
    z-index: 1;
}

/*#section2 button {
    background-color: none;
    border: none;
}*/

/* Right slide */
#slide3 {
    font-family: 'Noto Sans KR', sans-serif;
    color: white;
    overflow: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    background: linear-gradient(0deg, #ba5a3e, #93965b, #19965b, #19965b, #097059, #150000);
    background-size: 200% 400%;
    animation: gradientvertical 45s ease-in-out infinite;
}

@keyframes gradientvertical {
    0% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 50% 0%;
    }
}

#slide3 h1 {
    font-family: 'Gugi', cursive;
    position: relative;
    margin: auto;
    color: transparent;
    font-size: 8vmin;
    text-align: left;
    padding: 0.5em;
    -webkit-animation:linear ease-in-out infinite;
    -webkit-animation-name: run;
    -webkit-animation-duration: 5s;
    -webkit-text-stroke: 3px white;

}

@keyframes run {
    0% { left: 0;}
    50%{ left : 30%;}
    100%{ left: 0;}
}

#slide3 h2 {
    font-family: 'Gugi', cursive;
    position: relative;
    margin: 1em;
    font-size: 2.5vmin;
    color: white;
    text-align: center;
}

#slide3 br {
    line-height: 150%;
}

#slide3 p{
    z-index: 1;
    font-size: 3vmin;
    text-align: center;
    line-height: 1em;
    padding:10px;
    margin-right: 5em;
    padding-bottom: 2em;
    padding-top: 2em;  
}

#slide3 .ingredients {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    align-content: stretch;
    justify-content: space-between;
}

#slide3 .row {
    display: flex;
    overflow: hidden;
    min-height: 0;
    max-height: 100%;
}

#slide3 .column {
    flex: 1;
    min-height: 100%;
    padding: 10px;
    margin-left: 10em;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    position: relative;
}

#slide3 .column::-webkit-scrollbar { /* WebKit */
    width: 0;
    height: 0;
}

.imgrecette {
    max-height: 20%;
    mix-blend-mode: difference;
    position: absolute;
    display: none;
}

.imgrecette.checked {
    z-index: 2;
    display: block;
    pointer-events: none;
}

#slide3 ul {
    z-index: 0;
    background-color: #097059;
    border-radius: 100px;
    display: table-cell;
    vertical-align: middle;
    padding-bottom: 20px;
    padding-top: 20px;
}

/* Style the list items */
#slide3 ul li {
    color: white;
    cursor: pointer;
    position: relative;
    padding: 15px 40px 15px 40px;
    font-size: 3vmin;
    transition: 0.2s;
    text-align: center;

    /* make the list items unselectable */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}



/* Darker background-color on hover */
/*#slide3 ul li:hover {
    background: #ddd;
}*/

ul li.checked {
    /*background: #888;*/
    color: green;
    text-decoration: line-through;
}

/* Add a "checked" mark when clicked on */
/*ul li.checked::before {
    content: '';
    position: absolute;
    border-color: green;
    border-style: solid;
    border-width: 0 2px 2px 0;
    top: 10px;
    left: 16px;
    transform: rotate(45deg);
    height: 15px;
    width: 7px;
}*/

/* Main center slide */
#slide2 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: always;
    text-rendering: optimizeLegibility;
    line-height: 1;
    color: white;
    background: url('../images/mainpage.png');
    background-size: 120% 120%;
    animation: animatedBackground 5s ease-in-out infinite;
}

/*@keyframes animatedBackground {
    0% { background-position: 0 -150px; }
    50% { background-position: -300px -150px; }
    100% { background-position: 0 -150px; }
}*/

@keyframes animatedBackground {
    0% { background-position: 0 -20vmin; }
    50% { background-position: -20vmin -20vmin; }
    100% { background-position: 0 -20vmin; }
}

#slide2 h1 {
    font-family: 'Gugi', cursive;
    text-align: center;
    position: relative;
    margin: auto;
}

#slide2 h2 {
    -webkit-text-stroke: 3px black;
    font-family: 'Gugi', cursive;
    position: relative;
    margin: auto;
    font-size: 9.5vmin;
    z-index: 1;
}

#slide2 .section-content {
    height: 100%;
}

#slide2-titles {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#slide2 .rond {
    z-index: 0;
    filter: blur(1.5rem);
    width: 60vmin;
    height: 60vmin;
    border-radius: 100%;
    background-color: yellow;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%)
}

#slide2 .titre {
    -webkit-text-stroke: 3px black;
    width: 100%;
    z-index: 1;
    text-align: center;
    font-family: 'Gugi', cursive;
    margin: 0;
}
#slide2 .titre:before{
    margin-right: 10px;
    content: '비빔밥';
    font-size: 25vw;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
}
#slide2 .titre:after{
    content: 'BIBIMBAP';
    position:absolute;
    left:0;
    right: 0;
    opacity:0;
    margin-top: 5vw;
    font-size: 15vw;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
}
#slide2 .titre:hover:after{
    opacity:1;
}
#slide2 .titre:hover:before{
    opacity:0;
}

#slide2 .soustitre {
    margin: 0;
    text-align: center;
}

/* Navigation buttons */
.navbutton {
    width: 50px;
    height: 50px;
    border: none;
    background: none;
    position: absolute;
    transition: .1s ease;
    z-index: 4;
}

.navbutton:hover {
    cursor: pointer;
    /*background: rgba(255, 255, 255, 0.4);*/
}

.navbutton:focus {
    outline: none;
}

.navbuttonup {
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Align the center of element to the page */
}

.navbuttonright {
    right: 0;
    top: 50%;
    transform: translateY(-50%); /* Align the center of element to the page */
}

.navbuttondown {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* Align the center of element to the page */
}

.navbuttonleft {
    top: 50%;
    transform: translateY(-50%); /* Align the center of element to the page */
}

.arrow {
    font-size: 40px;
    color: white;
    display: inline-block;
}

.up {
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
}

.down {
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
}

.hide {
    display: none;
}