body {
    -webkit-touch-callout: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    overflow: hidden;
    font-family: 'LuckiestGuy', Arial, Helvetica, sans-serif;
    color: white;
    background-color: black;
    min-height: 100vh;
}

.d-none {
    display: none !important;
}

.backgroundImage {
    z-index: -2;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title {
    position: relative;
    font-size: 64px;
    text-shadow: 5px 5px 5px rgba(0,0,0, 0.8);
    margin-bottom: 50px;
    margin-top: 50px;
}

.canvasContainer {
    position: relative;
}

canvas {
    z-index: 0;
    background-color: rgb(0, 0, 0);
    display: block;
}

.canvasFrame {
    z-index: -1;
    position: absolute;
    top: -162px;
    left: -109px;
    height: 760px;
    width: 910px;
}

.pannelContainer {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.startscreen {
    background: url('../img/3. Background/Mesa de trabajo 1.png') no-repeat center center;
    background-size: 120%;
}

.startscreenFullScreen {
    background-size: cover !important;
}

.startBtn {
    margin-top: 200px;
    width: 208px;
    height: 67.5px;
    cursor: pointer;
}

.startBtn:hover {
    scale: 1.1;
}

.endScreen {
    height: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.tryAgainBtn {
    width: 208px;
    height: 67.5px;
    cursor: pointer;
}

.endTitle {
    width: 667px;
    height: 93px;
    animation: scaleIn 225ms ease-in-out;
}

.topPannel {
    position: absolute;
    z-index: 3;
    height: 10%;
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
}

.topBotPannelFullScreen {
    height: 15vh
}

.topPannel img {
    cursor: pointer;
    height: 40px;
    width: 40px;
    padding-top: 10px;
    padding-right: 10px;
    filter: invert();
}

.topPannel img:hover {
    filter: brightness(0) saturate(100%) invert(69%) sepia(0%) saturate(0%) hue-rotate(92deg) brightness(95%) contrast(91%);
}

.midPannel {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 90%;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.midPannelFullScreen {
    height: 70vh;
}

.settingPannel {
    display: flex;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(4px);
    border: 2px solid white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: default;
    padding: 20px;
    animation: scaleIn 225ms ease-in-out;
}

.settingHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.settingTitle {
    font-size: 32px;
}

.closeMark {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.closeMark:hover {
    filter: brightness(0) saturate(100%) invert(69%) sepia(0%) saturate(0%) hue-rotate(92deg) brightness(95%) contrast(91%);
}

.settingPannel a {
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.settingPannel a:hover {
    color: rgb(165, 165, 165);
}

.settingPannel a:hover img {
    filter: brightness(0) saturate(100%) invert(69%) sepia(0%) saturate(0%) hue-rotate(92deg) brightness(95%) contrast(91%);
}

.settingPannel img {
    filter: invert(99%) sepia(4%) saturate(760%) hue-rotate(217deg) brightness(118%) contrast(100%);
}

.instrucionHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottomPannel {
    position: absolute;
    z-index: 1;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
}

.bottomPannel a {
    all: unset;
    cursor: pointer;
}

.bottomPannel a:hover {
    color: rgb(165, 165, 165);
}

.hoverEffect:hover img {
    filter: brightness(0) saturate(100%) invert(69%) sepia(0%) saturate(0%) hue-rotate(92deg) brightness(95%) contrast(91%);
}

.backBtn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.backBtn:hover {
    color: lightgrey;
}

.slider {
    width: 600px;
    height: 300px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.slider img {
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: none; 
}

.sliderBtn {
    height: 50px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 2rem;
    z-index: 2;
    cursor: pointer;
    border-radius: 0.25rem;
    padding: 0 0.5rem;
    background-color: rgba(0,0,0,0.1);
}

.sliderBtn:hover {
    color: white;
    background-color: rgba(0,0,0,0.2);
}

.sliderBtn.prevImg {
    left: 0.5rem;
}

.sliderBtn.nextImg {
    right: 0.6rem;
}

.mobileController {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 720px;
    margin-left: 25px;
    margin-right: 25px;
    margin-bottom: 10px;
}

.mobileControllerSection {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
}

.mobileControllerBtn {
    height: 25px;
    width: 25px;
    padding: 10px;
    border: solid 2px white;
    border-radius: 15px;
    filter: brightness(0) saturate(100%) invert();
}

.mobileRotationScreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.mobileRotationScreen img {
    height: 96px;
    width: 96px;
    filter: invert();
}

.mobileRotationScreen span {
    font-size: 32px;
    text-shadow: 5px 5px 5px rgba(0,0,0, 0.8);
    text-align: center;
}

.rotate-device {
    -webkit-animation: spin 3s ease-in-out infinite;
    -moz-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}
