@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
}

/* dark - light mode */

.dark-mode {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    transition: all 0.3s ease;
}

.dark-mode .resetBtn > button, .dark-mode .rulesBtn > button {
    color: rgb(255, 255, 255);
}

/* Theme Toggle Switch */

.icon-moon, .icon-sun {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    color: yellow;
    transition: .4s ease;
  }

  .icon-moon {
    left: 15px; /* Position moon icon on the left side */
  }

    .icon-sun {
    right: 0px; /* Position sun icon on the right side */
  }

    input:checked + .slider .icon-sun {
    display: none;
  }
  
    input:not(:checked) + .slider .icon-moon {
    display: none;
  }

.mode-toggle {
    position: absolute;
    display: inline-block;
    width: 60px;
    height: 22px;
    padding: -50px;
    right: 25px;
  }
  
  .mode-toggle input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000000;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 32px;
    left: 5px;
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translatex(-5px);
    background-color: rgb(255, 255, 255);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50px 0 0 50px;
  }
  
  input:checked + .slider {
    background-color: #000000;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 0 #ffffff;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    background-color: #ffffff;
    border-radius: 0 50px 50px 0;
    box-shadow: 0 0 10px #ffffff;
  }
  
  /* sliders */
  .slider.round {
    border-radius: 34px;
    border: 1px solid white;
  }
  .slider.round:before {
    width: 29px;
    box-shadow: 0 0 10px #ffffff;
  }

/* header style*/

header {
    background: rgb(41, 41, 41);
    padding: 5px;
    border-bottom: 3px solid #47c6bd;
    box-shadow: 0 0 10px 3px #47c6bd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

header > h1 {
    text-align: center;
    font-family: "Alata", sans-serif;
    font-size: 30px;
    margin: 2px;
    animation: flicker 1.5s infinite alternate;
    color: #ffffffd2;
    width: 100%;
}

/* Flickering animation */
@keyframes flicker {
    
  0%, 75%, 9%, 80%, 45%, 8%, 70% {

      text-shadow:
      0 0 1px #777777,
      0 0 0px #292929,
      0 0 3px #b6b6b6,
      0 0 0px rgb(255, 255, 255),
      0 0 5px rgb(128, 128, 128),
      0 0 0px rgb(12, 12, 12),
      0 0 1px rgb(202, 202, 202),
      0 0 2px rgb(24, 24, 24);
  
  }
  
  1%, 2%, 1% {        
      text-shadow: none;
  }    
}

/* score board */

#scoreLabel {
    font-size: 20px;
    font-family: "Alata", sans-serif;
    padding-top: 25px;
    padding-bottom: 5px;
    margin: 1px;
    text-align: center;
    transition: all 0.3s ease;
}

.scoreBoard {
    margin: 20px auto;
    padding: 30px 30px;
    max-width: 500px;
    height: auto;
    border: 10px solid #47c6bd;
    border-radius: 500px;
    
    font-size: 50px;

    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.badge {
    background-color: #f65c51;
    font-size: 25px;
    color: white;
    font-family: "Alata", sans-serif;
    padding: 2px 10px;
    box-shadow: 0 0 20px 5px #f5534e;
}

#userLabel {
    position: absolute;
    top: -20px;
    left: -10px;
    padding: 60px 40px;
    padding-right: 27px;
    border-radius: 82px 0px 0px 82px;
}

#cpuLabel {
    position: absolute;
    top: -20px;
    right: -10px;
    padding: 60px 40px;
    border-radius: 0px 82px 82px 0px;
}

/* Results */

.result {
    font-size: 35px;
    padding-top: 15px;
}

.result > p {
    font-family: "Alata", sans-serif;
    text-align: center;
    font-weight: bold;
}

/* rock paper scissor choices */

.choices {
    text-align: center;
    margin: 50px 0;
}

.choice {
    display: inline-block;
    border: 3px solid #47c6bd;
    border-radius: 20px;
    margin: 0px 15px;
    padding: 10px;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    font-family: "Alata", sans-serif;
}

.choice > * {
    transform: translateY(0px);
    transition: all 0.3s ease;
}

.choice:hover {
    transform: translateY(25px);
    cursor: pointer;
    background-color: #47c6bd57;
    box-shadow: 0 0 50px 15px #47c6bd;
    color: #00000000;
}

.choice > img {
    transform: translateY(0px);
}

.choice:hover img{
    transform: scale(2) translateY(-10px);
}

/* Win-lose-draw choice border Glow */

.greenGlow {
    border: 3px solid #43ec4c;
    box-shadow: 0 0 50px 15px #43ec4c;
}

.redGlow {
    border: 3px solid #f73232;
    box-shadow: 0 0 50px 15px #f73232;
}

.greyGlow {
    border: 3px solid #7e7e7e;
    box-shadow: 0 0 50px 15px #7e7e7e;
}

/* reset - rules btn */

.buttonsWrapper {
    text-align: center;
}

/* Reset button */

.resetBtn {
    text-align: center;
    display: inline-block;
    padding-right: 10px;
}

.resetBtn > button {
    background-color: transparent;
    font-size: 15px;
    font-family: 'Alata', sans-serif;
    padding: 7px 14px;
    width: 150px;
    margin-top: 20px;
    border: 3px solid #f5534e;
    border-radius: 10px;
}

.resetBtn > button:hover {
    cursor: pointer;
    background-color: #f5534e7c;
    box-shadow: 0 0 2px 2px #f5534e;
}

/* Rules button */

.rulesBtn {
    text-align: center;
    display: inline-block;
    padding-left: 10px;
}

.rulesBtn > button {
    background-color: transparent;
    font-size: 15px;
    font-family: 'Alata', sans-serif;
    padding: 7px 14px;
    margin-top: 15px;
    width: 150px;
    border: 3px solid #47c6bd;
    border-radius: 10px;
}

.rulesBtn > button:hover {
    cursor: pointer;
    background-color: #47c6bd75;
    box-shadow: 0 0 2px 2px #47c6bd;
}

/* rules box - info box content */

.info-box-hidden {
    display: none;
}

#infoBox {
    position: fixed;
    z-index: 1;
    left: 0%;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.432);
}

.info-content {
    background-color: #00000050;
    font-size: 25px;
    color: #ffffff;
    font-family: 'Alata', sans-serif;
    margin: 15% auto; 
    padding: 30px 40px;
    border: 1px solid #888;
    width: 50%;
    left: -7%;
    position: relative;
    border: 3px solid #47c6bd;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.info-content {
    animation-name: infoBoxAnimation;
    animation-duration: 0.3s;
    animation-iteration-count: 1;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
  }
  
  @keyframes infoBoxAnimation {
    from {
      transform: rotate(0deg) scale(0.5) skew(0deg) translate(100px);
    }
    to {
      transform: rotate(0deg) scale(1) skew(0deg) translate(100px);
    }
  }

.info-content > p {
    font-size: 20px;
    padding: 15px;
    line-height: 1.8;
}

.info-content > i {
    font-size: 18px;
    padding: 0px;
}

.close-btn {
    color: #f5534e;
    font-size: 25px;
    font-family: 'Alata', sans-serif;
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 25px;
    cursor: pointer;
}

.close-btn:hover {
    transform: scale(1.1);
    text-shadow: 1px 1px 2px red, 0 0 1em red, 0 0 0.2em red;
}

/* Styles for screens less than 768px wide */

@media only screen and (max-width: 768px) {

    header > h1 {
        text-align: start;
        font-size: 25px;
     }
    .scoreBoard {
        font-size: 30px;  
        width: 90%;
    }
    .badge {
        font-size: 20px;
        padding: 0px 0px;
    }
    #userLabel {
        top: -16px;
        padding: 50px 35px;
        width: 110px;
    }
    #cpuLabel {
        top: -16px;
        padding: 50px 35px;
    }
    .result {
        font-size: 20px;
    }
    .choice {
        margin: 5px;
        padding: 0px;
        width: 25%;
        height: 120px;
    }
    .choice:hover {
        transform: none;
        background-color: initial;
        box-shadow: none; 
        color: initial; 
    }
    .choice > img {
        transform: none;
        width: 90px;
    }
    
    .choice:hover img{
        transform: none;
    }
    .choice > p {
        font-size: 12px;
        transform: none;
        color: rgb(0, 0, 0);
    }
    .dark-mode .choice > p {
        color: rgb(255, 255, 255);
    }
    .resetBtn {
        padding-right: 1px;
    }
    .resetBtn > button {
        font-size: 13px;
        padding: 7px 14px;
        width: 100px;
        margin-top: 10px;
    }
    .resetBtn > button:hover {
        cursor: pointer;
        background-color: transparent;
        box-shadow: none;
        
    }
    .rulesBtn > button {
        font-size: 13px;
        padding: 7px 14px;
        width: 100px;
        margin-top: 10px;
    }
    .rulesBtn > button:hover {
        cursor: pointer;
        background-color: transparent;
        box-shadow: none;
    }

    #infoBox {
        width: 100%;
        height: 100%;
    }
    .info-content {
        font-size: 20px;
        margin: 30% auto; 
        padding: 10px 5px;
        border: 1px solid #888;
        width: 80%;
        left: -26%;
        border: 3px solid #47c6bd;
        border-radius: 10px;
        backdrop-filter: blur(10px);
    }
    .info-content > p {
        font-size: 15px;
        padding: 10px;
        line-height: 1.7;
    }
    
    .info-content > i {
        font-size: 12px;
        padding: 0px;
    }

  }

  /* copy right footer bottom */

  .copy-right-sec{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: rgb(41, 41, 41);
    text-align: center;
  }
  .copy-right-sec i{
    color: #ffffff;
    margin: 0 1.8rem;
  }
