@media (max-device-width: 1000px) and (min-device-height: 300px) {
  * {
    box-sizing: border-box;
    margin: 0;
  }


  @keyframes animate {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  body {
    background-image: linear-gradient(crimson, blue);
    font-family: 'Poppins', sans-serif;
    max-width: 100%;
    overflow: auto;
  }

  .logooText {
    color: rgb(78, 250, 238);
    font-weight: normal;
    font-size: xx-small;
  }

  .score {
    display: inline-block;
  }

  .logo {
    position: absolute;
    left: 10px;
    top: 45px;
    z-index: 10;
    opacity: 0.2;
    transition: all 6s;
    width: 80px;
    height: 80px;
  }

  .p {
    position: absolute;
    z-index: 100;
    color: rgb(84, 211, 95);
    top: 600px;
    font-size: small;
    padding-left: 10px;
    opacity: 0.5;
  }

  h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 50;
    margin-bottom: 0%;
    font-size: large;
  }

  p {
    text-align: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: medium;
  }

  .divoverall {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 200px;
    margin-left: 35px;
    height: fit-content;
    z-index: 5;
    padding: 0px;
  }

  .player1 {
    width: 170px;
    height: 350px;
    background-color: rgba(219, 220, 220, 0.932);
    opacity: 0.6;
    justify-content: center;
    display: inline-block;
    border-radius: 3% 0% 0% 3%;
    padding-top: 5%;
    transition: all 0.3s;
  }

  .player2 {
    width: 170px;
    height: 350px;
    background-color: rgba(219, 220, 220, 0.932);
    opacity: 0.6;
    justify-content: center;
    display: inline-block;
    border-radius: 0% 3% 3% 0%;
    padding-top: 5%;
    transition: all 0.3s;
  }

  .opa {
    opacity: 1;
  }

  .currentscore1 {
    color: red;
    font-family: 'Poppins', sans-serif;
    margin-top: 5%;
    display: block;
    text-align: center;
    font-size: medium;
  }

  .currentscore2 {
    color: red;
    font-family: 'Poppins', sans-serif;
    margin-top: 5%;
    display: block;
    text-align: center;
    font-size: medium;
  }

  .totalscore1div {
    width: fit-content;
    height: 110px;
    padding: 14px;
    background-color: rgb(204, 247, 203);
    opacity: 0.8;
    display: inline-block;
    border-radius: 4%;
    margin-top: 15%;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
  }

  .totalscore2div {
    border-radius: 10px;
    width: fit-content;
    height: 110px;
    padding: 14px;
    background-color: rgb(183, 241, 238);
    opacity: 0.8;
    display: inline-block;
    border-radius: 4%;
    margin-top: 15%;
    justify-content: center;
    text-align: center;
  }

  .totalscorevalue1 {
    display: block;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: red;
    font-size: larger;
    font-size: x-large;
  }

  .totalscorevalue2 {
    display: block;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: red;
    font-size: x-large;
  }

  .newgame {
    border-style: hidden;
    border-radius: 20px;
    width: 100px;
    height: 30px;
    background-color: rgb(255, 255, 255);
    opacity: 0.7;
    z-index: 20;
    shape-rendering: crispEdges;
    font-family: 'Poppins', sans-serif;
    font-size: x-small;
    transition: all 0.3s;
    cursor: pointer;
    margin-top: 50px;
  }

  .newgame:hover {
    background-color: aquamarine;
  }

  .newgame:active {
    transform: translateY(2px);
  }



  .rolldicediv {
    border-style: hidden;
    border-radius: 4px;
    width: fit-content;
    height: 30px;
    background-color: rgb(255, 255, 255);
    opacity: 0.9;
    z-index: 20;
    shape-rendering: crispEdges;
    font-family: 'Poppins', sans-serif;
    font-size: x-small;
    transition: all 0.3s;
    cursor: pointer;
    margin-top: 210px;
  }

  .rolldicediv:hover {
    background-color: rgb(238, 13, 13);
  }

  .rolldicediv:active {
    transform: translateY(2px);
  }



  .hold {
    border-style: hidden;
    border-radius: 4px;
    width: fit-content;
    height: 30px;
    background-color: rgb(255, 255, 255);
    opacity: 0.9;
    z-index: 20;
    font-family: 'Poppins', sans-serif;
    font-size: x-small;
    transition: all 0.3s;
    cursor: pointer;
    color: red;
  }

  .hold:active {
    transform: translateY(2px);
  }

  .hold:hover {
    background-color: aquamarine;
  }


  .dicevaluediv {
    position: absolute;
    border-style: hidden;
    opacity: 0.9;
    z-index: 20;
    margin-top: 13%;
    font-family: 'Poppins', sans-serif;
    font-size: 100%;
    color: rgb(206, 35, 35);
    letter-spacing: 20px;
    padding-top: 0.2%;
    border-radius: 20%;
  }

  .dicevaluedivonedice {
    border-style: hidden;
    background-color: transparent;
    opacity: 0.9;
    z-index: 20;
    font-family: 'Poppins', sans-serif;
    font-size: 100%;
    color: rgb(0, 0, 0);
    letter-spacing: 20px;
    padding-top: 0.2%;
    border-radius: 20%;
    margin-top: 120px;
  }

  .dicevaluediv6 {
    border-style: hidden;
    background-color: transparent;
    opacity: 0.9;
    z-index: 20;
    font-family: 'Poppins', sans-serif;
    font-size: 100%;
    color: rgb(206, 35, 35);
    letter-spacing: 20px;
    padding-top: 0.2%;
    border-radius: 20%;
    margin-top: 120px;
  }

  .dicevaluediv5 {
    border-style: hidden;
    background-color: transparent;
    opacity: 0.9;
    z-index: 20;
    font-family: 'Poppins', sans-serif;
    font-size: 100%;
    color: rgb(206, 35, 35);
    letter-spacing: 20px;
    padding-top: 0.2%;
    border-radius: 20%;
    margin-top: 120px;
  }

  .dicevaluediv4 {
    border-style: hidden;
    background-color: transparent;
    opacity: 0.9;
    z-index: 20;
    font-family: 'Poppins', sans-serif;
    font-size: 100%;
    color: rgb(206, 35, 35);
    letter-spacing: 20px;
    padding-top: 0.2%;
    border-radius: 20%;
    margin-top: 120px;
  }

  .dicevaluediv3 {
    border-style: hidden;
    background-color: transparent;
    opacity: 0.9;
    z-index: 20;
    font-family: 'Poppins', sans-serif;
    font-size: 100%;
    color: rgb(206, 35, 35);
    letter-spacing: 20px;
    padding-top: 0.2%;
    border-radius: 20%;
    margin-top: 120px;
  }

  .dicevaluediv2 {
    border-style: hidden;
    background-color: transparent;
    opacity: 0.9;
    z-index: 20;
    font-family: 'Poppins', sans-serif;
    font-size: 100%;
    color: rgb(206, 35, 35);
    letter-spacing: 20px;
    padding-top: 0.2%;
    border-radius: 20%;
    margin-top: 120px;
  }


  .hide {
    display: none;
  }


  .howToPlayGame {
    width: 100px;
    height: 30px;
    background-color: rgb(24, 241, 24);
    border-radius: 30px;
    opacity: 0.8;
    border-style: none;
    position: relative;
    top: 0px;
    left: 0px;
    cursor: pointer;
    transition: all 0.5s;
    font-family: 'Poppins', sans-serif;
    font-size: x-small;
    margin-top: 100px;
  }

  .howToPlayGame1 {
    width: 100px;
    height: 30px;
    background-color: rgb(24, 241, 24);
    border-radius: 30px;
    opacity: 0.8;
    border-style: none;
    cursor: pointer;
    transition: all 0.5s;
    font-family: 'Poppins', sans-serif;
    font-size: xx-small;
    color: black;
    text-align: center;
    margin-left: 35%;

  }

  .howToPlayGame:hover,
  .howToPlayGame1:hover {
    opacity: 1;
    transform: scale(1.1);
  }

  .modal_window {
    width: 100%;
    height: fit-content;
    position: absolute;
    top: 40px;
    z-index: 100;
    background-color: white;
    border-radius: 20px;
    animation: animate 0.7s ease-in-out;
    padding: 20px;
    text-align: left;
    overflow: auto;
    margin: 0px;
    left: 0%;
  }

  .backdrp_filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
    z-index: 50;
    animation: animate 0.7s ease-in-out;
  }


  .normalP {
    font-size: small;
    color: black;
    font-family: 'Poppins', sans-serif;
    text-align: left;
  }

  .all-div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    top: 130px;
    gap: 4px;
    height: fit-content;
  }
}