* { 
  box-sizing:border-box; 
  font-family: 'New Super Mario Font U', sans-serif;
}

html, body { 
  width:100%; 
  height:100%; 
  margin:0; 
}

body { 
  padding:30px; 
  display:flex; 
  justify-content:center; 
  align-items:center; 
  background: linear-gradient(to top, #aaa 0%, white 100%);
}

.gameboy {
  position:relative;
  width:350px;
  height:570px;
  border-radius:20px;
  padding:20px;
  background-color:#4f50db;
  box-shadow:0px -5px 0px #0d0e51, 0px 5px 0px #3d38b5;
  cursor:default;
  margin:0 auto;

  &::after {
    content:'';
    display:block;
    position:absolute;
    top:calc(100% - 34px);
    left:5px;
    width:calc(100% - 10px);
    height:50px;
    border-radius:50%;
    background-color:#4f50db;
    box-shadow:0px 5px 0px #3d38b5;
    border-bottom:2px solid #9998eb;
  }
  
  .screen-area {
    position:relative;
    padding:35px 50px 5px 50px;
    border-radius:15px 15px 15px 15px;
    background-color:#23252d;
    color:#67879a;
    box-shadow:0px 2px 0px black, 0px -2px 0px black, -2px 0px 0px black, 2px 0px 0px black;
    
    &::after {
      content:'';
      display:block;
      position:absolute;
      top:calc(100% - 20px);
      left:5px;
      width:calc(100% - 10px);
      height:30px;
      border-radius:50%;
      background-color:#23252d;
      box-shadow:0px 2px 0px black;
    }
    
    .power {
      position:absolute;
      display:block;
      width:50px;
      left:0px;
      top:80px;
      font-size:10px;
      letter-spacing:-0.5px;
      text-align:center;
      
      .indicator {
        line-height:14px;
        
        .led {
          position:relative;
          display:inline-block;
          background-color:#ca1a21;
          width:8px;
          height:8px;
          border-radius:50%;
          box-shadow:0px 0px 10px #ff552e;
          z-index:5;
        }
        .arc {
          position:relative;
          display:inline-block;
          width:8px;
          height:8px;
          margin-left:-2px;
          
          &::before {
            position:absolute;
            left:3px;
            content:'';
            display:inline-block;
            width:8px;
            height:8px;
            border-radius:50%;
            background-color:#67879a;
          }
          &::after {
            position:absolute;
            left:0px;
            content:'';
            display:inline-block;
            width:8px;
            height:8px;
            border-radius:50%;
            background-color:#23252d;
          }
        }
      }
    }
    
    .real-display {
      background-color:#929d97;
      height:190px;
      width:210px;
      border-radius:3px;
      margin-bottom:15px;
    }

    #counterText {
      font-size: 66px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      color: #E1B530; /* Imposta il colore del testo a bianco o adatto al tuo design */
    }

    #gifImage {
      display: none;
      width: 210px;
      height:205px;
    }
    
    .label {
      position:relative;
      text-align:center;
      font-size:20px;
      z-index:5;
      
      .title {
        display:inline;
        font-weight:bold;
      }
      .subtitle {
        display:inline;
        font-weight:bold;
        font-size:22px;
        letter-spacing:-1px;
        
        .c, .o1, .l, .o2, .r {
          display:inline-block;
        }
        .c {
          color:#aa2058;
        }
        .o1 {
          color:#605bd9;
          font-size:20px;
        }
        .l {
          color:#78b930;
          transform:rotateZ(-10deg);
        }
        .o2 {
          color:#b6b524;
          font-size:20px;
        }
        .r {
          color:#317aaf;
        }
      }
    }
  }
  
  .nintendo {
    padding:0px 5px;
    width:82px;
    color:#3436bf;
    font-weight:bold;
    text-align:center;
    margin:0 auto;
    border:2px solid #3436bf;
    border-radius:11px;
    margin-top:30px;
    text-shadow:0px -2px 1px #6b67ed;
    box-shadow:0px -2px 1px #6b67ed;
  }

  .counter-buttons {
    display: flex;
    justify-content: flex-start;
    position:relative;


    .increment-button, .decrement-button {
      position:absolute;
      display:inline-block;
      font-size:22px;
      width:40px;
      height:40px;
      line-height: 40px;
      border-radius:50%;
      background-color:#2c313e;
      border-bottom:2px solid #888;
      box-shadow:-1px 1px 5px black, 0px 0px 5px black inset;
      text-shadow:0px -1px 1px #888;
      color:#2c313e;
      text-align:center;
      cursor:pointer;
    }

    .reset-button {
      position:absolute;
      display:inline-block;
      font-size:22px;
      border-radius: 10%;
      width:80px;
      height:46px;
      line-height: 40px;
      background-color:#2c313e;
      border-bottom:2px solid #888;
      box-shadow:-1px 1px 5px black, 0px 0px 5px black inset;
      text-shadow:0px -1px 1px #888;
      color:#2c313e;
      text-align:center;
      cursor:pointer;
      top: 22px;
      left: 12px;
    }

    .increment-button {
      top:15px;
      right:10px;
    }

    .decrement-button{
      top:35px;
      left:62%;
    }
  }

  .start-stop {
    width:100%;
    height:60px;
    display:flex;
    justify-content:center;
    
    .stop, .start {
      display:inline-block;
      color:#6b67ed;
      text-shadow:0px -1px 0px #3436bf;
      letter-spacing:-1px;
      width:60px;
      font-size:16px;
      text-align:center;
      margin-top:120px;
      
      &::before {
        content:'';
        display:block;
        margin:0 auto;
        width:30px;
        height:10px;
        margin-bottom:5px;
        border-radius:40%;
        background:linear-gradient(to bottom, #0b0a1c 0%, #0b0a1c 30%, #62636c 70%, #62636c 100%);
        background-repeat:no-repeat;
        border:2px solid #0b0a1c;
        box-shadow:0px -2px 1px #8482e9;
        cursor:pointer;
      }
      &:active::before {
        background:linear-gradient(to bottom, #0b0a1c 0%, #0b0a1c 50%, #62636c 100%);
      }
    }
  }

  .speaker {
    position:absolute;
    display:flex;
    width:75px;
    height:75px;
    right:15px;
    bottom:5px;
    justify-content:space-between;
    flex-wrap:wrap;
    z-index:100;
    transform:skewY(-10deg);
    
    .dot {
      width:7px;
      height:7px;
      margin:1px;
      border-radius:50%;
    }
    .dot.placeholder {
      background-color:transparent;
    }
    .dot.open {
      background-color:#0a0717;
      box-shadow:0px 0px 2px #7c7be0 inset;
    }
    .dot.closed {
      background:linear-gradient(to bottom, #6664e5 0%, #2d3590 100%);
      box-shadow:0px 0px 2px #7c7be0 inset;
    }
  }
}