/* Define custom font face */
@font-face {
    font-family: 'ArcadeClassic';
    src: url('assets/Pixel Emulator.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Style for the body element */
body {
    overflow-x: hidden;
    font-family: 'ArcadeClassic', sans-serif;
    height:  calc(var(--vh, 1vh) * 100);
    width: 100vw;
    color: #f5f5f5;
    text-align: center;
    background-color: rgb(148, 30, 56);
    padding: 0;
    margin: 0;
}

/* Style for the background container */
.background-case {
    width: 100%;
    height: 220%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
    overflow: hidden;
}

/* Style for the background gradient */
.background {
    background: radial-gradient(circle, rgb(241, 114, 142) 20%, rgb(184, 62, 88) 40%, rgb(148, 30, 56) 100%);
    background-size: 100% 100%;
    width: 200%;
    height: 200%;
    position: absolute;
    z-index: -1;
    top: -50%;
    left: -50%;
    pointer-events: none;
}

/* Style for the title element */
.title {
    cursor: pointer;
    display: block;
    font-size: clamp(2rem, 5vw, 5rem);
    margin: 0 auto;
    width: max-content;
    max-width: 100vw;
    padding: 0.5rem;
    color: #f5f5f5;
    background: #f376aa;
    border: 0.2px solid rgb(233, 233, 233);
    border-bottom-width: 8px;
    border-left-width: 2px;
    border-right-width: 2px;
    border-radius: 1rem;
    user-select: none;
    box-shadow: black 0px 0px 5px;
}

/* Centering container */
.center {
    padding-top: 4vh;
    width: 100%;
}

/* Style for the cartridge container */
.cartridge {
    width: 50vw;
    height: 0;
    margin: 0 auto;
}


/* Style for the arrows */
.arrows {
    position: relative;
    display: block;
    width: 80%;
    margin: 0 auto;
    height: auto;
    image-rendering: pixelated;
}
.fullscreen-section {
    height: calc(var(--vh) * 100);
  }
  
/* Hover effect for arrows */
.arrows:hover {
    cursor: pointer;
}

/* Keyframes for rotating and moving animation */
@keyframes rotateMove {
    0%, 100% { transform: rotate(0deg) translateX(0) translateY(0); }
    10% { transform: rotate(2deg) translateX(3px) translateY(-3px); }
    20% { transform: rotate(-4deg) translateX(5px) translateY(4px); }
    30% { transform: rotate(3deg) translateX(7px) translateY(-5px); }
    40% { transform: rotate(-2deg) translateX(10px) translateY(2px); }
    50% { transform: rotate(4deg) translateX(6px) translateY(-3px); }
    60% { transform: rotate(-3deg) translateX(4px) translateY(7px); }
    70% { transform: rotate(2deg) translateX(8px) translateY(5px); }
    80% { transform: rotate(1deg) translateX(5px) translateY(-4px); }
    90% { transform: rotate(-1deg) translateX(7px) translateY(3px); }
}

/* Style for cartridge heading */
.cartridge h2 {
    user-select: none;
    font-size: 2vw;
    color: #f5f5f5;
    text-align: center;
}

/* Style for cartridge image */
.cartridge-img img {
    position: relative;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    animation: rotateMove 20s infinite ease-in-out;
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
    will-change: transform;
}

/* Hover effect for cartridge image */
.cartridge-img:hover {
    margin-left: 37.5%;
    padding: 0;
    display: block;
    float: left;
    position: relative;
    top: 4vw;
    width: 25%;
    height: 0;
    transform: translateY(-40px) !important;
    transition: transform 0.6s ease-in-out;
}

/* Style for non-hovered cartridge image */
.cartridge-img:not(:hover) {
    height: 0;
    margin-left: 37.5%;
    padding: 0;
    display: block;
    float: left;
    position: relative;
    top: 4vw;
    width: 25%;
    transition: transform 2s ease-in-out;
}

/* Style for cartridge image container */
.cartridge-img {
    cursor: pointer;
}

/* Style for spark elements */
.spark, .red-spark {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    opacity: 1;
    pointer-events: none;
    transform: scale(1);
    animation: sparkle 0.3s ease-out forwards, explosion 0.2s ease-out forwards;
    filter: blur(10px);
    box-shadow: 0 0 30px rgb(255, 255, 255), 0 0 60px rgba(255, 0, 0, 1);
}

/* Style for white spark */
.spark {
    background: radial-gradient(circle, rgb(255, 255, 255), rgb(255, 0, 0));
}

/* Style for red spark */
.red-spark {
    background: radial-gradient(circle, rgb(255, 0, 0), rgb(255, 0, 0));
}

/* Keyframes for sparkle animation */
@keyframes sparkle {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

/* Keyframes for explosion animation */
@keyframes explosion {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

/* Style for shiny object */
.shiny-object {
    pointer-events: none;
    position: relative;
    overflow: hidden;
    width: 24vw;
    height: 24vw;
    top: -24.8vw;
    margin: 0 auto;
    animation: rotateMove 20s infinite ease-in-out;
    clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 90% 80%, 90% 100%, 10% 100%, 10% 80%, 0% 80%);
}

/* Style for shine effect */
.shine {
    pointer-events: none;
    position: absolute;
    top: -200%;
    left: -200%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
    animation: shine-animation 5s infinite ease-in-out;
    pointer-events: none;
}

.console {
    position: relative;
    top: 80%;
    width: 30vw;
    display: block;
    float: left;
    margin-left: 35vw;
}

/* Style for console image */
.console img {
    image-rendering: pixelated;
    width: 100%;
    height: auto;
}


/* Keyframes for shine animation */
@keyframes shine-animation {
    0% { top: -200%; left: -200%; }
    50% { top: 100%; left: 100%; }
    100% { top: 200%; left: 200%; }
}

.scroll-to{
    position: absolute;
    top: 90vh;
    width: 100%;
}

/* Media query for screens with max width of 1000px */
@media (max-width: 1000px) {
    .title{
        font-size: 8vw;
    }
    .cartridge img, .cartridge-img img {
        width: 150%;
        margin-top: 10%;
        margin-left: -25%;
    }
    .shiny-object {
        /* border: red solid 1px; */
        width: 36.5vw;
        height: 37vw;
        top: -38vw;
        left: -6vw;
    }
    .cartridge h2 {
        font-size: 3vw;
        margin-bottom: 20%;
    }
    /* console size goes up proportionally to the cartridge-img img */
    .console{
        width: 50vw;
        margin-left: 25vw;
    }
}

/* Media query for screens with max width of 700px */
@media (max-width: 700px) {
    .title{
        font-size: 8vw;
    }
    .cartridge img, .cartridge-img img {
        padding-top: 6vh;
        width: 170%;
        margin-top: 10%;
        margin-left: -35%;
    }
    .shiny-object {
        /* border: red solid 1px; */
        width: 42vw;
        height: 42vw;
        top: -43.5vw;
        left: -9vw;
    }
    .cartridge h2 {
        font-size: 6vw;
        margin-bottom: 20%;
        width: 200%;
        margin-left: -50%;
    }
    /* console size goes up proportionally to the cartridge-img img */
    .console{
        width: 50vw;
        margin-left: 25vw;
    }
}

/* Media query for screens with max width of 400px */
@media (max-width: 400px) {
    .title{
        font-size: 8vw;
    }
    .cartridge img, .cartridge-img img {
        padding-top: 6vh;
        width: 170%;
        margin-top: 10%;
        margin-left: -35%;
    }
    .cartridge-img img{
        width: 200%;
        margin-left: -50%;
    }
    .shiny-object {
        /* border: red solid 1px; */
        width: 50vw;
        height: 49.5vw;
        top: -51vw;
        left: -13vw;
    }
    .cartridge h2 {
        font-size: 6vw;
        margin-bottom: 20%;
        width: 200%;
        margin-left: -50%;
    }
    /* console size goes up proportionally to the cartridge-img img */
    .console{
        width: 70vw;
        margin-left: 15vw;
    }
}

/* Style for console container */

/* Style for cartridge container */
.cartridge-container {
    position: relative;
    width: 100%;
    height: auto;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

@keyframes spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(720deg); }
}

.explosion-aura {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 100, 0.7) 30%, rgba(255, 165, 0, 0.5) 60%, rgba(255, 255, 0, 0) 100%);
    box-shadow: 0 0 40px rgba(255, 255, 100, 0.8), 0 0 80px rgba(255, 165, 0, 0.6);
    transform: scale(0);
    animation: explosion-effect 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes explosion-effect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Disable hover effect when clicked */
/* Keep the image in place when disabled */
.cartridge-img.disabled {
    transition: none !important;
}

@keyframes moveDown{
    0% { transform: translateY(0); }
    100% { transform: translateY(70vh); }
}
#grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height:  calc(var(--vh, 1vh) * 100);
    display: grid;
    grid-template-columns: repeat(20, 5%);
    grid-template-rows: repeat(20, 5%);
    pointer-events: none;
    z-index: 9999; /* Ensure it's on top */
}
.block {
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
}

.screen{
    display: none;
    overflow: hidden;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    padding: 0;
    margin: 0;
    
    position: absolute;
    z-index: 5; /* Ensure it's on top */
    /* background-color: aqua; */
}
.screen-content{
    /* border: blue solid 2px; */
    position: absolute;
    z-index: 5; /* Ensure it's on top */
    width: 100%;
    max-width: 125vh;
    left: 50%;
    transform: translateX(-50%);
    height: calc(var(--vh, 1vh) * 65.7);
    margin-top: calc(var(--vh, 1vh) * 18.7);
    font-size: clamp(1rem, 6vw, 3rem);
    color: /*rgb(40, 148, 148)*/white;
}

.background-2{
    background-color: rgb(88, 89, 89);
    width: 120%;
    height: calc(var(--vh, 1vh) * 120);
    margin-left: -10%;
    margin-top: calc(var(--vh, 1vh) * -10);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
.rarclass {
    /* border: green solid 2px; */
    width: auto;
    height: calc(var(--vh, 1vh) * 100);
    image-rendering: pixelated;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.options {
    width: 40%;
    height: 100%;
    position: relative; /* Needed for absolute positioning of pseudo-elements */
    padding-right: 20px; /* Extra space for the border effect */
    display: block;
    float: left;
}

.options::after,
.options::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px; /* Each line is 7.5px wide to make up the 20px total including spacing */
    height: 100%;
    background-color: rgb(40, 148, 148);
}

.options::before {
    width: 5px;
    right: 12.5px; /* Moves the first line left to create the 5px gap */
}


.option {
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.option::before, .option::after, .option .horizontal-top, .option .horizontal-bottom {
    content: '';
    position: absolute;
    background-color: rgb(40, 148, 148); /* Border color */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-in-out;
}

.option::before {
    top: 10%;
    left: 7%;
    width: 2px; /* Left vertical border */
    height: 50%;
}

.option::after {
    bottom: 10%;
    right: 7%;
    width: 2px; /* Right vertical border */
    height: 50%;
}

.option .horizontal-top {
    top: 10%;
    left: 7%;
    width: 50%; /* Top horizontal border */
    height: 2px;
}

.option .horizontal-bottom {
    bottom: 10%;
    right: 7%;
    width: 50%; /* Bottom horizontal border */
    height: 2px;
}

.option.hovered::before, .option.hovered::after, .option.hovered .horizontal-top, .option.hovered .horizontal-bottom {
    opacity: 1; /* Fade in on hover */
}

.option:hover{
    cursor: pointer;
}

.exit-button{
    width: calc(58.5% - 20px);
    /* border: 2px solid green; */
    height: 20%;
    text-align: right;
    /* padding-top: 5%; */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.exit-button::before {
    top: 10%;
    left: 7%;
    width: 2px; /* Left vertical border */
    height: 50%;
}

.exit-button::after {
    bottom: 10%;
    right: 7%;
    width: 2px; /* Right vertical border */
    height: 50%;
}

.exit-button .horizontal-top {
    top: 10%;
    left: 7%;
    width: 50%; /* Top horizontal border */
    height: 2px;
}

.exit-button .horizontal-bottom {
    bottom: 10%;
    right: 7%;
    width: 50%; /* Bottom horizontal border */
    height: 2px;
}

.exit-button::before, .exit-button::after, .exit-button .horizontal-top, .exit-button .horizontal-bottom {
    content: '';
    position: absolute;
    background-color: rgb(40, 148, 148); /* Border color */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-in-out;
}

.exit-button:hover::before, .exit-button:hover::after, .exit-button:hover .horizontal-top, .exit-button:hover .horizontal-bottom {
    opacity: 1; /* Fade in on hover */
}

.exit-button:hover{
    cursor: pointer;
}

.exit-button img{
    image-rendering: pixelated;
    height: 60%;
}

.image-plate{
    width: calc(58.5% - 20px);
    height: 79%;
    float: right;
    display: block;
    font-size: 20%;
}

.choice{
    margin-top: 1%;
    margin-right: 1%;
    width: 98%;
    height: 98%;
    position: relative;
    top: 0;
    left: 0;
    display: none;
    overflow: hidden;
    z-index: 1;
}

.choice img{
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    min-width: 500px;
    transform-origin: 100% 100%;
    transform: scale(0);
    transition: transform 0.5s ease-in-out;
}

.choice.show img{
    transform: scale(1);
}

.choice p {
    margin-top: 3vh;
    margin-left: 20px;
    padding-bottom: 20px;
    opacity: 0;
    position: relative;
    top: -100%;
    left: 0;
    width: calc(100% - 30px);
    height: calc(100% - 3vh - 15px); /* You can adjust this height */
    font-size: 210%;
    color: white;
    text-align: left;
    z-index: 10;
    white-space: pre-wrap;
    transition: font-size 0.3s ease;
    overflow-y: auto; /* Enables vertical scrolling if content overflows */
}



@media (max-width: 500px){
    .choice p{
        font-size: 250%;
    }
}

.breakable{
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.chops-l{
    position: absolute;
    width: 30vw;
    top: 15vh;
    height: 80vh;
background: radial-gradient(ellipse at left center, rgb(0, 247, 255) 0%, rgba(255, 0, 0, 0) 70%);

}
.chops-r{
    background: radial-gradient(ellipse at right center, rgb(0, 247, 255) 0%, rgba(255, 0, 0, 0) 70%);
    position: absolute;
    width: 20vw;
    right: 0vw;
    top: 15vh;
    height: 80vh;
}
.chops-l img, .chops-r img{
    image-rendering: pixelated;
    position: relative;
}

.chops-l .img-1{
    left: -4vw;
    height: 35vw;
    top: 18vh;
}

.chops-r .img-1{
    height: 35vw;
    left: -5vw;
    top: 20vh;
}
.chops-r .img-2{
    height:20vw;
}

@media (max-width: 1000px){
    .chops-l{
        opacity: 0;
    }
    .chops-r{
        opacity: 0;
    }
}