body { font-family: 'Open Sans'; margin-inline: auto; color: #747474fa; animation: black-bg auto forwards; animation-duration: 12s; } h1 { font-size: clamp(2vw, 3vw, 1rem); } .base-story, #backstage { z-index: 0; position: fixed; left: auto; display: flex; align-items: center; justify-content: center; flex-direction: column; width: 70%; height: 50%; top: 25%; left: 15%; text-align: center; border-radius: 1rem; } #backstage { animation: backstage auto forwards; animation-duration: 12s; background-color: white; } @media all and (max-width: 980px) { h1 { font-size: clamp(4vw, 4.5vw, 2rem); } /* body { height: 400%; } */ } @media all and (orientation: landscape) { .base-story { height: 90%; top: 5%; } #backstage { height: 90%; top: 5%; } h1 { font-size: clamp(2vw, 2.5vw, 2rem); } } @keyframes black-bg { 0%, 12% { background-color: white; } 23%, 100% { background-color: black; } } @keyframes backstage { 0%, 40% { opacity: 0; } 43%, 100% { opacity: 1; } } @keyframes appear1 { /* 0% - 20% */ 0%, 20%, 100% { opacity: 0; } 3%, 12% { opacity: 1; } } @keyframes appear2 { /* 20% - 40% */ 0%, 12%, 40%, 100% { opacity: 0; filter: brightness(100%); } 23%, 37% { opacity: 1; filter: brightness(200%) } } @keyframes appear3 { /* 40% - 60% */ 0%, 40%, 60%, 100% { opacity: 0; } 43%, 57% { opacity: 1; } } @keyframes appear4 { /* 60% - 80% */ 0%, 60%, 80%, 100% { opacity: 0; } 63%, 77% { opacity: 1; } } @keyframes appear5 { /* 80% - 100% */ 0%, 80%, 100% { opacity: 0; } 83%, 97% { opacity: 1; } } @keyframes appear6 { 0%, 99% { opacity: 0; } 100% { opacity: 1; } } /* @keyframes appear8 { 0%, 68% { opacity: 1; } 70%, 100% { opacity: 0; } } */ .training-story { background-color: white; } #story1 { /* display: block; */ /* position: fixed; left: auto; top: 0; */ animation: appear1 auto forwards; animation-duration: 12s; /* animation-timeline: scroll(); */ /* align-items: center; display: flex; width: 100%; justify-content: space-around; */ } #story2 { animation: appear2 auto forwards; animation-duration: 12s; /* animation-timeline: scroll(); */ } #sub2 { /* animation: appear3 auto forwards; */ /* animation-timeline: scroll(); */ animation-duration: 12s; color: azure; } #sub3 { /* animation: appear3 auto forwards; */ animation-duration: 12s; /* animation-timeline: scroll(); */ /* color: black; */ } #story3 { animation: appear3 auto forwards; animation-duration: 12s; /* animation-timeline: scroll(); */ } #story4 { animation: appear4 auto forwards; animation-duration: 12s; /* animation-timeline: scroll(); */ } #story5 { animation: appear5 auto forwards; animation-duration: 12s; /* animation-timeline: scroll(); */ } #story6 { animation: appear6 auto forwards; /* animation-timeline: scroll(); */ animation-duration: 12s; }