@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900');

/* PLACES TO CHANGE COLOURS */
#console {
    background : url("img/bgcapit.png") center;
    background-repeat: no-repeat;
  background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white; /* Change the colour of the whole machine */
    width: 350px;
    height: 500px;
    padding: 30px;
}

.boxed {
    border: 2px black solid;
    padding: 15x 20px 15px 20px;
    background-color: white; /* Change the default colour of the buttons*/
    border-radius: 10px;
    box-shadow: rgb(237, 29, 35, 1) -5px 5px, rgba(237, 29, 35, 0.3) -10px 10px, rgba(237, 29, 35, 0.2) -15px 15px, rgba(237, 29, 35, 0.1) -20px 20px, rgba(237, 29, 35, 0.05) -25px 25px;
    margin: 10px;
    
}

#banner {
    width: 100%;
    text-align: center;
    font-size: 40pt;
    font-weight: 900;
    color: white; /* Change the colour of the machine title text*/
    border-radius: 10px;
    padding: 0;
    -webkit-text-stroke: 4px black; /* Change the outline colour of the machine title text*/
    paint-order: stroke fill;
    text-shadow: 5px 5px 0px black; /* Change the drop shadow colour of the machine title text - should probably be the same as the stroke*/
}

#window {
    position: relative;
    background-color: white; /* Change the background colour of the claw machine game window */
    width: 100%;
    height: 350px;
    border: 2px black solid; /* Change the outline colour of the claw machine game window*/
    padding: 15x 20px 15px 20px;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: 1s;
}

#claw-block {
    height: 35px;
    width: 80px;
    margin-bottom: 0;
    margin-top: -25px;
    z-index: 2;
    position: relative;
    background-color: white; /* Change the colour of the block that is on the rope carrying the claw*/
}

#drop {
    border-radius: 50px;
    color: black;
    font-weight: 700;
    background-color: white; /* If you want to make the drop button a different colour*/
}

.btn {
    color: black;
    padding: 10px 30px 10px 30px;
    width:fit-content;  
    margin-left: auto;
    margin-right: auto;
    background-color:  white; /* If you want to make the arrow buttons a different colour*/
}

#play-again {
    opacity: 0;
    transition: opacity 1s;
    background-color: white; /* If you want to make the play again button a different colour*/
}

#download {
    opacity: 0;
    transition: opacity 1s;
    background-color: white; /* If you want to make the download button a different colour*/
}

/* EVERYTHING ELSE */

body {
    background-image: url("img/anakbg.png");
 background-color: #cccccc;
    font-family: 'Rubik', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

#claw {
    transition: transform 0.5s;
}

#claw-rail {
    z-index: 0;
    padding: 0;
    margin: 25px 0 0 -1px;
    width: 101%;
    height: 102%;
    transform-origin: center center;
}

#claw-hands {
    width: 90px;
    margin-left: -245px;
    margin-top: -10px;
    transition: transform .7s;
    position: relative;
    transform-origin: top center;
}

#claw-rope {
    width: 90px;
    margin-left: -245px;
    margin-top: 0;
    transition: transform .7s;
    transform-origin: top center;
}

/* claw machine window content */
.content {
    position: absolute;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#ball-front {
    width: 100%;
    margin-top: -35px;
    z-index: 10;
    position: relative;
}

/* control panel specific styles */
#controls {
    display: flex;
    flex-direction: row;
    font-size: 18pt;
    width: 100%;
    column-gap: 25px;
    justify-content: space-evenly;
    transition: 1s;
}

/* button hover effect */
@media (hover: hover) {
    .btn.boxed:hover {
        transform: translate(5px, 5px);
        box-shadow: 0px 0px 0px black;
        transition: transform .1s;
    }
}

/* results page */

#result-window {
    position: relative;
    width: 100%;
    height: 350px;
    padding: 15x 20px 15px 20px;
    border-radius: 10px;
    opacity: 0;
    transition: 1s;
    transform: translateY(10px);
    text-align: center;
}

#result-image {
    width: 90%;
    padding-top: 8px;
}

#welcome-wrapper {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    pointer-events:auto;
    z-index: 9999999;
}
#congrats-wrapper{
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    pointer-events:auto;
    z-index: 9999999;
}
#welcome, #congrats {
    width: 800px;
    max-width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 30px;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1.75;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.2);
    color: #f0f0f0;
}
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none; /* Ensure it doesn't block interactions */
  z-index: 10; /* Place above other content */
}

/* Individual Confetti Pieces */
.confetti {
  position: absolute;
  top: -10px; /* Start slightly above the container */
  width: 30px;
  height: 30px;
  background-color: #ff6f61; /* Default color (will be overridden by JS) */
  border-radius: 50%; /* Circular shape */
  opacity: 1;
}

/* Slow Animation */
.confetti--animation-slow {
  animation: confetti-slow 3s linear infinite;
}

/* Medium Animation */
.confetti--animation-medium {
  animation: confetti-medium 2s linear infinite;
}

/* Fast Animation */
.confetti--animation-fast {
  animation: confetti-fast 1.5s linear infinite;
}

/* Keyframes for Slow Animation */
@keyframes confetti-slow {
  0% {
    transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
  }
  100% {
    transform: translate3d(25px, 105vh, 0) rotateX(360deg) rotateY(180deg);
  }
}

/* Keyframes for Medium Animation */
@keyframes confetti-medium {
  0% {
    transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
  }
  100% {
    transform: translate3d(100px, 105vh, 0) rotateX(100deg) rotateY(360deg);
  }
}

/* Keyframes for Fast Animation */
@keyframes confetti-fast {
  0% {
    transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
  }
  100% {
    transform: translate3d(-50px, 105vh, 0) rotateX(10deg) rotateY(250deg);
  }
}
.tumbul-ngab{
  width: 100%;
  margin-bottom: 10px;
    height: 40px;
    color: #fff;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: "Lato", sans-serif;
    font-weight: 500;
    background: rgb(237, 29, 35);
    cursor: pointer;
    transition: all 0.3sease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, 0.5), 7px 7px 20px 0px rgba(0, 0, 0, 0.1), 4px 4px 5px 0px rgba(0, 0, 0, 0.1);
    outline: none;
}

@media only screen and (max-width: 768px) {
  #banner{
      font-size:20pt;
  }
  h1{
      font-size:24px;
  }
  #ball-front {
    margin-top: -15px;
}
}

#right-arrow, #left-arrow{
    background:white!important;
}

.github {
  bottom: 10px;
  right: 10px;
  position: fixed;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px 6px 12px;
  border: 1px solid #000;
  z-index: 2000;
}

.github a:hover,
.github a:link,
.github a:visited,
.github a:active {
  color: #000;
  text-decoration: none;
}

.github img {
  height: 30px;
}

.github #gh-project {
  font-size: 20px;
  padding-left: 5px;
  font-weight: bold;
  vertical-align: bottom;
}
#tsparticles {
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: -1;
    }