body {
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh; /* allow content to grow beyond */
font-family: "Antic Slab", serif;
perspective: 700px;
background-color: #000000;
padding: 0;
margin: 0;
}
/*----- Button------*/
ul.menu-bar {
border-radius: 25px;
display: inline-flex;
background-color: rgba(0, 0, 0, 0.4);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
padding: 0 10px;
list-style: none;
width: 100%;
z-index: 1000;
}
ul.menu-bar > li {
position: relative;
color: white;
font-family: sans-serif;
font-weight: bold;
padding: 12px 16px;
margin: 0 8px;
cursor: pointer;
white-space: nowrap;
border-radius: 25px;
transition: color 0.2s;
width: 100%;
font-size: 20px;
margin-left: 200px;
}
ul.menu-bar > li::before {
content: " ";
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: -1;
transition: 0.2s;
border-radius: 25px;
}
ul.menu-bar > li:hover::before {
background: linear-gradient(to bottom, #e8edec, #d2d1d3);
box-shadow: 0px 3px 20px 0px black;
transform: scale(1.2);
width: 200px;
}
ul.menu-bar > li:hover {
color: black;
}
/* Dropdown menu */
ul.menu-bar li ul.dropdown {
display: none;
position: absolute;
top: 100%;
left: 0;
background: rgba(0,0,0,0.6);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 8px 0;
min-width: 200px;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
z-index: 1000;
}
ul.menu-bar li:hover ul.dropdown {
display: block;
}
ul.menu-bar li ul.dropdown li {
color: white;
font-weight: normal;
padding: 10px 20px;
margin: 0;
border-radius: 15px;
white-space: nowrap;
}
ul.menu-bar li ul.dropdown li:hover {
background: linear-gradient(to bottom, #e8edec, #d2d1d3);
color: black;
cursor: pointer;
}
ul.menu-bar,
ul.menu-bar ul.dropdown {
list-style: none;
padding: 0;
margin: 0;
}
/*///////// Carousel ////////////*/
@import url(//fonts.googleapis.com/css?family=PT+Sans+Narrow|Volkhov:400italic,700);
*,
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
margin: 0;
}
/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:after {
content: "";
display: table;
clear: both;
}
a {
color: #000;
text-decoration: none;
}
h1, h2, h5 {
margin: 20px 20px 30px 20px;
font-size: 56px;
color: #fff;
font-family: "Volkhov", serif;
text-align: center;
font-weight: 700;
text-shadow: 1px 1px 3px #e0d1bc;
}
h1 span, h5 {
font-size: 18px;
display: block;
font-style: italic;
color: #997f5a;
font-weight: 400;
text-shadow: 0px 1px 1px #fff;
}
.wrapper {
position: relative;
width: 100%;
padding: 0 50px;
margin: 0 auto;
}
/* Header Style */
.codrops-top {
line-height: 24px;
font-size: 11px;
background: #fff;
background: rgba(255, 255, 255, 0.8);
text-transform: uppercase;
position: relative;
font-family: Cambria, Georgia, serif;
box-shadow: 1px 0px 2px rgba(0,0,0,0.2);
}
.codrops-top a {
padding: 0px 10px;
letter-spacing: 1px;
color: #333;
display: inline-block;
}
.codrops-top a:hover {
background: rgba(255,255,255,0.6);
}
.codrops-top span.right {
float: right;
}
.codrops-top span.right a {
float: left;
display: block;
}
/* More examples buttons */
.more {
position: relative;
clear: both;
padding: 20px;
}
.more:before {
content: "";
position: absolute;
background-color: #ddd1b6;
box-shadow: 0 1px 0 rgba(255,255,255,0.8);
height: 1px;
width: 440px;
left: 50%;
margin-left: -220px;
top: -10px;
}
.more ul {
display: block;
height: 32px;
text-align: center;
}
.more ul li {
display: inline-block;
line-height: 24px;
}
.more ul li.selected a,
.more ul li.selected a:hover {
background: #ae997a;
color: #fff;
text-shadow: none;
}
.more ul li a {
text-shadow: 1px 1px 1px #fff;
color: #555;
background: #fbf9f5;
padding: 2px 5px;
margin: 0 2px;
line-height: 18px;
display: inline-block;
box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.more ul li a:hover {
background: #8c795d;
color: #fff;
text-shadow: none;
}
p.info {
font-family: "Volkhov", serif;
font-style: italic;
color: #997f5a;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
padding: 20px;
display: block;
clear: both;
text-align: center;
width: 100%;
max-width: 440px;
margin: 0 auto;
}
/* Slicebox Style */
.sb-slider {
margin: 10px auto;
position: relative;
overflow: hidden;
width: 100%;
list-style-type: none;
padding: 0;
}
.sb-slider li {
margin: 0;
padding: 0;
display: none;
}
.sb-slider li > a {
outline: none;
}
.sb-slider li > a img {
border: none;
}
.sb-slider img {
max-width: 100%;
display: block;
}
.sb-description {
padding: 20px;
bottom: 10px;
left: 10px;
right: 10px;
z-index: 1000;
position: absolute;
background: #CBBFAE;
background: rgba(190,176,155, 0.4);
border-left: 4px solid rgba(255,255,255,0.7);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
opacity: 0;
color: #fff;
-webkit-transition: all 200ms;
-moz-transition: all 200ms;
-o-transition: all 200ms;
-ms-transition: all 200ms;
transition: all 200ms;
}
.sb-slider li.sb-current .sb-description {
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
filter: alpha(opacity=80);
opacity: 1;
}
.sb-slider li.sb-current .sb-description:hover {
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=99)";
filter: alpha(opacity=99);
background: rgba(190,176,155, 0.7);
}
.sb-perspective {
position: relative;
}
.sb-perspective > div {
position: absolute;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-o-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-backface-visibility : hidden;
-moz-backface-visibility : hidden;
-o-backface-visibility : hidden;
-ms-backface-visibility : hidden;
backface-visibility : hidden;
}
.sb-side {
margin: 0;
display: block;
position: absolute;
-moz-backface-visibility : hidden;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-o-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
transform-style: preserve-3d;
}
/* custom style */
.container {
margin: 30px;
width: 100%;
}
.shadow {
width: 100%;
height: 168px;
position: relative;
margin-top: -110px;
background: transparent url(https://tympanus.net/Development/Slicebox/images/shadow.png) no-repeat bottom center;
background-size: 100% 100%; /* stretches it */
z-index: -1;
display: none;
}
.sb-description h3 {
font-size: 20px;
text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}
.sb-description h3 a {
color: #4a3c27;
text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}
.nav-arrows {
display: none;
}
.nav-arrows a {
width: 42px;
height: 42px;
background: url(arrow1.png) no-repeat top left;
position: absolute;
top: 50%;
left: 2px;
text-indent: -9000px;
cursor: pointer;
margin-top: -21px;
opacity: 0.9;
border-radius: 50%;
box-shadow: 0 2px 2px rgba(255, 255, 255, 0.8);
}
.nav-arrows a:first-child{
left: auto;
right: 2px;
background-position: top right;
}
.nav-arrows a:hover {
opacity: 1;
}
.nav-dots {
text-align: center;
position: absolute;
bottom: -5px;
height: 30px;
width: 100%;
left: 0;
display: none;
}
.nav-dots span {
display: inline-block;
width: 16px;
height: 16px;
border-radius: 50%;
margin: 3px;
background: #cbbfae;
cursor: pointer;
box-shadow:
0 1px 1px rgba(255,255,255,0.6),
inset 0 1px 1px rgba(0,0,0,0.1);
}
.nav-dots span.nav-dot-current {
box-shadow:
0 1px 1px rgba(255,255,255,0.6),
inset 0 1px 1px rgba(0,0,0,0.1),
inset 0 0 0 3px #cbbfae,
inset 0 0 0 8px #fff;
}
.nav-options {
width: 70px;
height: 30px;
position: absolute;
right: 70px;
bottom: 0px;
display: none;
}
.nav-options span {
width: 30px;
height: 30px;
background: #cbbfae url(https://tympanus.net/Development/Slicebox/images/options.png) no-repeat top left;
text-indent: -9000px;
cursor: pointer;
opacity: 0.7;
display: inline-block;
border-radius: 50%;
}
.nav-options span:first-child{
background-position: -30px 0px;
margin-right: 3px;
}
.nav-options span:hover {
opacity: 1;
}
/*///////// Card Container ////////////*/
.card-container {
width: 100%;
margin-top: 50px;
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
flex-wrap: wrap;
margin-top: -95px;
}
.card {
width: 100%;
max-width: 300px;
height: 400px;
perspective: 1000px;
cursor: pointer;
flex: 1 1 300px; /* for wrapping layout */
}
.widow{
width: 300px;
height: 400px;
border-radius: 10px 10px 10px 10px;
background-repeat: no-repeat;
background-image: url('black-widow.jpg');
}
.hulk{
width: 300px;
height: 400px;
border-radius: 10px 10px 10px 10px;
background-repeat: no-repeat;
background-image: url('hulk.jpg');
}
.scarlet{
width: 300px;
height: 400px;
border-radius: 10px 10px 10px 10px;
background-repeat: no-repeat;
background-image: url('scarlet-witch.jpg');
}
.visien{
width: 300px;
height: 400px;
border-radius: 10px 10px 10px 10px;
background-repeat: no-repeat;
background-image: url('vision.jpg');
}
.antmen{
width: 300px;
height: 400px;
border-radius: 10px 10px 10px 10px;
background-repeat: no-repeat;
background-image: url('antman.jpg');
}
.falcen{
width: 300px;
height: 400px;
border-radius: 10px 10px 10px 10px;
background-repeat: no-repeat;
background-image: url('falcon.jpg');
}
.hawkeyes{
width: 300px;
height: 400px;
border-radius: 10px 10px 10px 10px;
background-repeat: no-repeat;
background-image: url('hawkeye.jpg');
}
.card-inner {
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;
transition: transform 0.6s;
}
.card.flipped .card-inner {
transform: rotateY(180deg);
}
.card-front,
.card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
display: flex;
align-items: center;
justify-content: center;
font-size: 17.5px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.card-front {
background-color: #ffffff;
}
.card-back {
background-color: #4CAF50;
color: white;
transform: rotateY(180deg);
}
/* News */
/* FlipBook */
.book {
position: relative;
display: flex;
margin-top: -80px;
width: 800px;
/*1* let pointer event go trough pages of lower Z than .book */
pointer-events: none;
transform-style: preserve-3d;
transition: translate 1s;
translate: calc(min(var(--c), 1) * 50%) 0%;
/* Incline on the X axis for pages preview */
rotate: 1 0 0 30deg;
}
.page {
/* PS: Don't go below thickness 0.5 or the pages might transpare */
--thickness: 4;
flex: none;
display: flex;
width: 90%;
font-size: 2cqmin;
/*1* allow pointer events on pages */
pointer-events: all;
user-select: none;
transform-style: preserve-3d;
transform-origin: left center;
transition:
transform 1s,
rotate 1s ease-in calc((min(var(--i), var(--c)) - max(var(--i), var(--c))) * 50ms);
translate: calc(var(--i) * -100%) 0px 0px;
transform: translateZ( calc((var(--c) - var(--i) - 0.5) * calc(var(--thickness) * .23cqmin)));
rotate: 0 1 0 calc(clamp(0, var(--c) - var(--i), 1) * -180deg);
}
.front,
.back {
position: relative;
flex: none;
width: 100%;
backface-visibility: hidden;
overflow: hidden;
background-color: #fff;
/* Fix backface visibility Firefox: */
translate: 0px;
}
.back {
translate: -100% 0;
rotate: 0 1 0 180deg;
}
/* That's it. Your FlipBook customization styles: */
.book {
counter-reset: page -1;
& a {
color: inherit;
}
}
.page {
box-shadow: 0em .5em 1em -.2em #00000020;
}
.front,
.back {
display: flex;
flex-flow: column wrap;
justify-content: space-between;
padding: 2em;
border: 1px solid #0002;
&:has(img) {
padding: 0;
}
& img {
width: 100%;
height: 100%;
object-fit: cover;
}
&::after {
position: absolute;
bottom: 1em;
counter-increment: page;
content: counter(page) ".";
font-size: 0.8em;
}
}
.cover {
&::after {
content: "";
}
}
.front {
&::after {
right: 1em;
}
background: linear-gradient(to left, #f7f7f7 80%, #eee 100%);
border-radius: .1em .5em .5em .1em;
}
.back {
&::after {
left: 1em;
margin-top: 100px;
}
background-image: linear-gradient(to right, #f7f7f7 80%, #eee 100%);
border-radius: .5em .1em .1em .5em;
}
.cover {
background: radial-gradient(circle farthest-corner at 80% 20%, hsl(150 80% 20% / .3) 0%, hsl(170 60% 10% / .1) 100%),
hsl(231, 32%, 29%) url("majalah.jpg") 50% / cover;
color: hsl(200 30% 98%);
height: 100%;
}
/*-------- Footer---------*/
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&family=Luckiest+Guy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Paytone+One&family=Rammetto+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&family=Luckiest+Guy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Belleza&family=Comic+Neue:wght@400;700&family=Cormorant+Infant&family=Poppins&family=Sahitya:wght@700&family=Ubuntu&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap');
.spectacledcoder-footer
{
display: flex;
flex-direction: column;
margin: auto;
margin-bottom: 0px;
width: 100%;
height: 500px;
background: url("data:image/svg+xml;charset=utf-8,") no-repeat center center;
background-size: cover;
background-repeat: no-repeat;
background-position: top;
color: #d2d1d3;
font-size: 15px;
}
.spectacledcoder-footer-heading
{
height: fit-content;
font-family: 'Rammetto One', cursive;
margin: auto;
}
.spectacledcoder-footer-content
{
width: 100%;
height: 80%;
display: flex;
margin: auto;
}
.spectacledcoder-footer-bottom
{
margin: auto;
width: 100%;
height: 20%;
display: flex;
font-family: 'Josefin Sans', sans-serif;
}
.spectacledcoder-footer-bottom-sec
{
margin: auto;
}
.spectacledcoder-footer-bottom-sec a
{
text-decoration: none;
color: #eeff00;
}
.spectacledcoder-footer-bottom-sec a:hover
{
font-weight: 700;
}
.spectacledcoder-footer-section
{
margin: auto;
}
.d-footer-ul
{
list-style: none;
font-family: 'Josefin Sans', sans-serif;
}
.d-footer-li
{
margin-bottom: 5px;
}
.d-footer-li:hover
{
cursor: pointer;
transform: translateX(10px);
transition: all 0.4s;
font-weight: 700;
}
.d-footer-li-h
{
margin-bottom: 10px;
}
.logo
{
max-width: 120px;
max-height: 120px;
display: flex;
margin: auto;
margin-top: 10px;
}
.logo-head
{
font-family: 'Josefin Sans', sans-serif;
margin: auto;
display: flex;
}
.logo a
{
margin: auto;
max-width: 100%;
}
@media only screen and (max-width: 900px) {
.spectacledcoder-footer {
display: flex;
flex-direction: column;
width: 100%;
margin-top: -370px;
position: relative;
z-index: 2;
background: url("data:image/svg+xml;charset=utf-8,") no-repeat center bottom / cover;
}
.spectacledcoder-footer-heading {
font-family: 'Rammetto One', cursive;
font-size: 6vw;
text-align: center;
margin: 10px 0;
}
.spectacledcoder-footer-content {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
gap: 30px;
width: 100%;
text-align: center;
padding: 50px 0;
}
.spectacledcoder-footer-section {
flex: 1 1 45%;
max-width: 300px;
}
.spectacledcoder-footer-bottom {
flex-direction: column;
align-items: center;
text-align: center;
gap: 10px;
padding: 10px 0;
}
.d-footer-ul {
padding: 0;
}
.d-footer-li,
.d-footer-li-h {
margin: 5px 0;
text-align: center;
}
.logo-head b {
display: block;
text-align: center;
}
.logo {
justify-content: center;
gap: 10px;
flex-wrap: wrap;
margin-top: 10px;
}
.logo a {
margin: 0 8px;
}
}
/*---- responsive-----*/
@media (max-width: 666px) {
.wrapper {
position: relative;
width: 100%;
padding: 0 50px;
margin-top: -40px;
}
ul.menu-bar {
background-color: rgba(0, 0, 0, 0.2);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
position: relative;
z-index: 1;
gap: 10px;
width: auto; /* keep width auto */
max-width: 90vw; /* shrink but max 90% viewport width */
margin: 0 auto; /* center horizontally */
padding: 10px 5px; /* some padding */
}
ul.menu-bar > li {
width: auto;
margin-left: 0; /* reset margin */
padding: 10px 14px;
font-size: 18px;
}
ul.menu-bar > li:hover::before {
background: linear-gradient(to bottom, #e8edec, #d2d1d3);
box-shadow: 0px 3px 20px 0px black;
transform: scale(1.2);
width: 100%;
}
ul.menu-bar li ul.dropdown {
display: none;
position: absolute;
top: 100%;
left: -20px; /* align dropdown directly below parent */
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 8px 0;
min-width: 120px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
z-index: 1000;
}
ul.menu-bar li:hover ul.dropdown {
display: block;
}
.flip-card {
max-width: 90%;
height: auto;
margin: 20px auto;
}
.widow {
width: 100%;
height: 100%;
background-image: url("black-widow1.jpg");
}
.bleck {
font-size: 7px;
}
.hulk{
width: 100%;
height: 100%;
background-image: url("hulk1.jpg");
}
.bruce {
font-size: 6.7px;
}
.scarlet {
width: 100%;
height: 100%;
background-image: url("scarlet-witch2.jpg");
}
.witch {
font-size: 6.5px;
}
.visien{
width: 100%;
height: 100%;
background-image: url("Vision2.jpg");
}
.vision {
font-size: 6.3px;
}
.antmen {
width: 100%;
height: 100%;
background-image: url("antman1.jpg");
}
.antman {
font-size: 7px;
}
.falcen {
width: 100%;
height: 100%;
background-image: url("falcon1.jpg");
}
.falcon {
font-size: 7px;
}
.hawkeyes {
width: 100%;
height: 100%;
background-image: url("hawkeye1.jpg");
}
.hawkeye {
font-size: 7px;
}
#sliderFrame {
height: auto;
}
#slider {
height: auto;
width: 100%;
}
ul.parent {
flex-direction: column;
}
ul li {
width: 100%;
text-indent: 0;
text-align: center;
}
.nav-arrows i {
width: 30px;
height: 30px;
font-size: 14px;
}
.sb-description h3 {
font-size: 16px;
text-align: center;
}
.nav-arrows a {
background: url(arrow1.png);
}
.mains {
padding: 0 10px;
}
.card-container {
width: 100%;
margin-top: -100px;
justify-content: center;
align-items: center;
padding: 10px;
}
.card {
width: 20%; /* 2 cards per row */
height: 160px;
flex: 1 1 auto;
}
.book {
position: relative;
display: flex;
margin-top: -30px;
width: 230px;
/*1* let pointer event go trough pages of lower Z than .book */
pointer-events: none;
transform-style: preserve-3d;
transition: translate 1s;
translate: calc(min(var(--c), 1) * 50%) 0%;
/* Incline on the X axis for pages preview */
rotate: 1 0 0 30deg;
}
.page {
/* PS: Don't go below thickness 0.5 or the pages might transpare */
--thickness: 4;
flex: none;
display: flex;
width: 100%;
font-size: 2cqmin;
/*1* allow pointer events on pages */
pointer-events: all;
user-select: none;
transform-style: preserve-3d;
transform-origin: left center;
transition:
transform 1s,
rotate 1s ease-in calc((min(var(--i), var(--c)) - max(var(--i), var(--c))) * 50ms);
translate: calc(var(--i) * -100%) 0px 0px;
transform: translateZ( calc((var(--c) - var(--i) - 0.5) * calc(var(--thickness) * .23cqmin)));
rotate: 0 1 0 calc(clamp(0, var(--c) - var(--i), 1) * -180deg);
}
.front,
.back {
position: relative;
flex: none;
width: 100%;
backface-visibility: hidden;
overflow: hidden;
background-color: #fff;
/* Fix backface visibility Firefox: */
translate: 0px;
}
.back {
translate: -100% 0;
rotate: 0 1 0 180deg;
}
}