/* Estilos generales del cuerpo */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #000;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
}

.game-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

/* Estilo para el contenedor principal del Game Boy */
.game-boy {
    width: 320px;
    height: 500px;
    background-color: #d3d3d3;
    border-radius: 10px 10px 50px 10px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Contenedor de la pantalla del Game Boy */
.screen-container {
    width: 280px;
    height: 230px;
    background-color: #8c8c8c;
    border-radius: 10px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.power-light {
    width: 10px;
    height: 10px;
    background-color: #ff0000;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 10px;
}

.screen {
    width: 200px;
    height: 205px;
    background-color: #9bbc0f;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.start-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0f0;
    font-size: 14px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border: 2px solid #0f0;
    z-index: 10;
}

#tetris-game-container {
    display: none;
    align-items: stretch;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wall {
    width: 10px;
    background-color: #333;
    background-image: linear-gradient(#333 75%, #444 75%);
    background-size: 10px 10px;
}

#extra-right-wall {
    width: 10px;
    background-color: #333;
    background-image: linear-gradient(#333 75%, #444 75%);
    background-size: 10px 10px;
}

.game-board {
    width: 100px;
    background-color: #726F6F;
    display: grid;
    grid-template-columns: repeat(10, 10px);
    grid-template-rows: repeat(20, 10px);
    border: 1px solid #0f0;
    position: relative;
}

.game-info {
    width: 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    border: 2px solid #0f0;
    padding: 5px;
    background-color: #222;
}

.game-info div {
    margin: 5px 0;
    font-size: 8px;
}

.next-piece {
    width: 50px;
    height: 50px;
    display: grid;
    grid-template-columns: repeat(4, 10px);
    grid-template-rows: repeat(4, 10px);
    border: 1px solid #0f0;
    margin-top: 10px;
    place-items: center;
}

.next-piece .cell {
    width: 10px;
    height: 10px;
    border: 1px solid #333;
    background-color: #222;
}

.cell {
    width: 10px;
    height: 10px;
    border: 1px solid #333;
}

.pause-overlay,
.game-over-overlay {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #0f0;
    font-size: 12px;
    text-align: center;
    border: 2px solid #0f0;
}

.logo {
    margin-top: 5px;
    font-family: Arial, sans-serif;
    position: relative;
    text-align: left;
    padding-left: 30px;
}

.nintendo {
    font-size: 16px;
    font-weight: bold;
    color: #003c9d;
}

.game-boy-text {
    font-size: 24px;
    font-weight: bold;
    color: #003c9d;
    margin-left: 0px;
}

.tm {
    font-size: 8px;
    color: #003c9d;
    vertical-align: mid;
}

.controls {
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
}

.dpad {
    width: 90px;
    height: 90px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 30px;
}

.dpad::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 90px;
    background-color: #333;
}

.dpad::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 30px;
    background-color: #333;
}

.dpad div {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dpad .up {
    top: 0;
    left: 30px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.dpad .left {
    top: 30px;
    left: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.dpad .right {
    top: 30px;
    right: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.dpad .down {
    bottom: 0;
    left: 30px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    margin-right: 30px;
}

.buttons div {
    width: 40px;
    height: 40px;
    background-color: #800000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.buttons .a {
    margin-top: 0px;
    margin-right: 40px;
}

.buttons .b {
    margin-top: 10px;
    margin-right: 0px;
}

.start-select {
    display: flex;
    justify-content: space-between;
    width: 120px;
    margin-top: 20px;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.start-select div {
    width: 50px;
    height: 15px;
    background-color: #c0c0c0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.select-text,
.start-text {
    position: absolute;
    bottom: 40px;
    font-size: 10px;
    color: #003c9d;
    font-family: Arial, sans-serif;
}

.select-text {
    left: 126px;
}

.start-text {
    right: 129px;
}

.speaker {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #d3d3d3;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.line {
    width: 40px;
    height: 2px;
    background-color: #333;
    margin: 2px 0;
}

.restart-message {
    font-size: 10px;
    color: #0f0;
}


