body {
    margin: 0;
    padding: 0;
    background-color: black;
    overflow: hidden;
    font-family: Verdana, Geneva, Tahoma, sans-serif;

}

button:hover {
    cursor: pointer;
}

/* REMOTE */

.opener {
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: transparent;
    display: none;
    cursor: pointer;
}

.remote {
    position: absolute;
    background-color: red;
    margin: 10px;
    height: calc(100% - 20px);
    width: calc(100% - 20px);
    border-radius: 60px 60px 200px 200px;
    padding: 20px;
    box-sizing: border-box;

    z-index: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    transition: all .5s ease-in-out;
}

.open {

    transition: all .5s ease-in-out;
    transform: scale(.2);
    /* opacity: .6; */
}

.top {
    background-color: rgb(195, 0, 0);
    border-radius: 999px;
    box-sizing: border-box;
    padding: 0 5%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .5s ease-in-out;

}

.top h1 {
    font-size: 30px;
    letter-spacing: -2pt;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: black;
    opacity: .4;
    padding: 1px;
    font-weight: 400;
}

.top button {
    aspect-ratio: 1;
    border-radius: 100%;
    height: 30px;
    background-color: white;
    color: black;
    border: none;
}

.teclas {
    /* background-color: aqua; */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 80%;
    width: 100%;
    align-items: center;
    justify-items: center;
}

.teclas button {
    aspect-ratio: 1;
    border-radius: 100%;
    font-size: 1.2rem;
    width: 90%;
    background-color: black;
    color: whitesmoke;
}

.teclas button:active {
    background-size: cover;
    color: transparent;
    background-position: center;
}

.teclas button:active:nth-child(1) {
    background-image: url('button1.webp');

}

.teclas button:active:nth-child(2) {
    background-image: url('button2.webp');

}

.teclas button:active:nth-child(3) {
    background-image: url('button3.webp');

}

.teclas button:active:nth-child(4) {
    background-image: url('button4.webp');

}

.teclas button:active:nth-child(5) {
    background-image: url('button5.webp');

}

.teclas button:active:nth-child(6) {
    background-image: url('button6.webp');

}

.teclas button:active:nth-child(7) {
    background-image: url('button7.webp');

}

.teclas button:active:nth-child(8) {
    background-image: url('button8.webp');

}

.teclas button:active:nth-child(9) {
    background-image: url('button9.webp');

}

/* --- New Toggle Logic --- */

/* When toggled ON: Show images by default */
.remote.show-images .teclas button {
    background-size: cover;
    color: transparent;
    background-position: center;
}

/* Assign images based on child position (Same as your current logic) */
.remote.show-images .teclas button:nth-child(1) {
    background-image: url('button1.webp');
}

.remote.show-images .teclas button:nth-child(2) {
    background-image: url('button2.webp');
}

.remote.show-images .teclas button:nth-child(3) {
    background-image: url('button3.webp');
}

.remote.show-images .teclas button:nth-child(4) {
    background-image: url('button4.webp');
}

.remote.show-images .teclas button:nth-child(5) {
    background-image: url('button5.webp');
}

.remote.show-images .teclas button:nth-child(6) {
    background-image: url('button6.webp');
}

.remote.show-images .teclas button:nth-child(7) {
    background-image: url('button7.webp');
}

.remote.show-images .teclas button:nth-child(8) {
    background-image: url('button8.webp');
}

.remote.show-images .teclas button:nth-child(9) {
    background-image: url('button9.webp');
}

/* When toggled ON: Make them black when clicked (The Reverse) */
.remote.show-images .teclas button:active {
    background-image: none !important;
    background-color: black !important;
    color: whitesmoke !important;
}

.info {
    /* background-color: yellow; */
    width: 100%;

    justify-content: center;
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.info button,
.info a {
    aspect-ratio: 1;
    border-radius: 100%;
    height: 30px;
    background-color: rgb(255, 235, 12);
    color: black;
    border: none;
}

/* CREDITS */
.credits {
    position: absolute;
    background-color: rgb(147, 147, 147);
    color: rgb(147, 147, 147);
    height: 100%;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    font-size: 2.5rem;
    overflow-x: scroll;

    z-index: -1;
}

.credits-open {
    color: rgb(252, 245, 210);

}