body {
    display: flex;
    justify-content: center;
    background-image: url('Background/Background.png');
    align-items: center;
    height: 100vh;
    margin: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
}


.logo-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  pointer-events: none;
  text-align: center;
  background: transparent;
  z-index: 1000;
}

.logo-container img {
  top: 20px;
  left: 50%;
  width: 85%;
  height: auto;
}

@media (max-width: 900px) {
  .logo-container {
    width: 60%;
    top: 15px;
  }
}

@media (max-width: 600px) {
  .logo-container {
    width: 80%;
    top: 10px;
  }
}

.app-container {
  margin-top: 80px;
}

@media (max-width: 600px) {
  .app-container {
    margin-top: 40px;
  }
}

.input-container {
    margin-top: 1px;
    position: relative;
    width: 100%;
    height: 57px;
}

input {
    width: 100%;
    height: 100%;
    background-color: #ccc;
    border: 2px solid black;
    border-radius: 5px;
    padding: 0 5px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.arrow {
    width: 20px;
    height: 30px;
    background-image: url('ShapeMount/SetaMount.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 28px;
    left: 0;
    z-index: 4;
}

.yellow-area {
    position: absolute;
    top: 52%;
    left: 50%;
    width: 10px;
    height: 18px;
    background-color: #01F6C7;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.btn-reset {
    z-index: 6 !important;
    display: flex;
    position: relative;
    margin-top: 2%;
    left: 50%; 
    transform: translateX(-50%);
    gap: 10px;
}

.btn-reset button {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2)),
        url('Buttons/TextureButton.png');
    background-color: #5a3e2b;
    background-repeat: repeat;
    background-size: cover;
    border: 2px solid #3b2a1a;
    border-radius: 4px;
    width: 100px;
    height: 30px;
    box-shadow: 0 0px 10px rgba(0,0,0,0.9);
    cursor: pointer;
    transition: transform 0.2s;
    color: #f4e1c1;
    font-family: 'Georgia', serif;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0px 0px 2px #000;
}

.btn-reset button:hover {
    transform: scale(1.05);
}

.button-container {
    position: relative;
    display: inline-block;
}

.image-button {
    position: relative;
    z-index: 3;
    background: transparent;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 17px;
    cursor: pointer;
}

.button-image {
    position: absolute;
    top: -40px;
    left: -32%;
    width: 138%;
    height: 350%;
    z-index: 3;
}

@media only screen and (max-width: 1070px) {
    .png-overlay {
        position: relative;
        top: auto;
        left: auto;
        width: 150px;
        max-width: 100%;
        height: auto;
    }
}

.png-overlay {
    position: fixed;
    top: 7%;
    left: 35%;
    width: 28%;
}

footer {
    text-align: center;
    background-color: rgba(137, 81, 41, 0.5);
    background-repeat: repeat;
    background-size: cover;
    color: #f5fffa;
    padding: 7px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.4);
    font-family: 'Georgia', serif;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin: 0 0px;
    display: inline-block;
    border: 2px solid #cfb39c;
}

.dot.active {
    background-color: rgba(255, 255, 255, 0.4);
}

.dots {
    right: -3%;
    position: relative;
    padding-top: 5%;
    margin-bottom: -7%;
    z-index: 5;
}


.timer-container {
    height: 5px;
    right: 12px;
    width: 100%;
    max-width: 200px;
    margin: -2px auto -4px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #cfb39c;
    border-radius: 31px;
    overflow: hidden;
    text-align: left;
    z-index: 6;
    position: relative;
}

.timer {
    font-size: 8px;
    font-weight: bold;
    color: black;
    padding: 8px;
    right: 5px;
    border-radius: 0px;
    transition: width 1s linear, background-color 1s linear;
    width: 100%;
    background-color: #cfb39c !important;
}

.timercount {
    display: inline;
    position: relative;
    z-index: 6;
    left: 85%;
    right: 0px;
    border-radius: 1px;
    padding-bottom: 0px;
    bottom: 9px;
    color: black;
}

.message {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    z-index: 10;
}

.victory-message, .error-message {
  display: none;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 35px 20px;
  border-radius: 100%;
  font-size: 20px;
  font-family: 'Georgia', serif;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  border: 3px solid #5a3e2b;
  background-image: url('Buttons/TextureButton.png');
  background-size: cover;
  background-repeat: repeat;
  color: #f4e1c1;
  text-shadow: 1px 1px 2px #3b2a1a;
  z-index: 10;
}


.victory-message {
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(90, 62, 43, 0.85);
  border: 1px solid green;
  color: #90ee90;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
}

.error-message {
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(139, 69, 19, 0.9);
  border: 1px solid red;
  color: #ff7f7f;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
}

.image-option {
    border: 1px solid transparent;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    border-radius: 4px;
    padding: 0px;
}

.image-option:hover {
    border-color: #fff;
}

.image-selection {
    box-sizing: border-box;
    margin-top: 5%;
    position: relative;
    padding: 0px;
    color: white;
    border: 2px solid #3b2a1a;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 1.9);
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('Buttons/TextureButton.png');
    background-repeat: repeat;
    background-size: cover;
    left: -10%;
    top: 0%;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.3s ease;
}



.victory-message.show {
  animation: greenGlowShake 1.2s ease-out forwards;
}

.error-message.show {
  animation: redGlowShake 1.2s ease-out forwards;
}

@keyframes greenGlowShake {
  0% {
    transform: translate(-50%, -50%) translateX(0);
    box-shadow: 0 0 0 rgba(0, 255, 0, 0.3);
    opacity: 0.8;
  }
  10% {
    transform: translate(-50%, -50%) translateX(-2px);
  }
  20% {
    transform: translate(-50%, -50%) translateX(2px);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
  }
  30% {
    transform: translate(-50%, -50%) translateX(-2px);
  }
  40% {
    transform: translate(-50%, -50%) translateX(2px);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
  }
  50% {
    transform: translate(-50%, -50%) translateX(-1px);
  }
  60% {
    transform: translate(-50%, -50%) translateX(1px);
  }
  70% {
    transform: translate(-50%, -50%) translateX(-1px);
  }
  80% {
    transform: translate(-50%, -50%) translateX(1px);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
  }
  90% {
    transform: translate(-50%, -50%) translateX(0);
  }
  100% {
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px rgba(0, 255, 0, 0.4);
    opacity: 1;
  }
}

@keyframes redGlowShake {
  0% {
    transform: translate(-50%, -50%) translateX(0);
    box-shadow: 0 0 0 rgba(255, 0, 0, 0.3);
    opacity: 0.8;
  }
  10% {
    transform: translate(-50%, -50%) translateX(-2px);
  }
  20% {
    transform: translate(-50%, -50%) translateX(2px);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
  }
  30% {
    transform: translate(-50%, -50%) translateX(-2px);
  }
  40% {
    transform: translate(-50%, -50%) translateX(2px);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
  }
  50% {
    transform: translate(-50%, -50%) translateX(-1px);
  }
  60% {
    transform: translate(-50%, -50%) translateX(1px);
  }
  70% {
    transform: translate(-50%, -50%) translateX(-1px);
  }
  80% {
    transform: translate(-50%, -50%) translateX(1px);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  }
  90% {
    transform: translate(-50%, -50%) translateX(0);
  }
  100% {
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.4);
    opacity: 1;
  }
}

.wood-button {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2)),
        url('Buttons/TextureButton.png');
    background-color: #5a3e2b;
    background-repeat: repeat;
    background-size: cover;
    border: 2px solid #3b2a1a;
    border-radius: 50px;
    width: 35px;
    height: 35px;
    box-shadow: 0 0px 3px rgba(0,0,0,0.8);
    cursor: pointer;
    transition: transform 0.2s;
    color: #f4e1c1;
    font-family: 'Georgia', serif;
    font-size: 15px;
    font-weight: bold;
    text-shadow: 0px 0px 2px #000;
}

.wood-button:hover {
    transform: scale(1.05);
}

.speed-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}


.wood-button.active {
  outline: 1px solid rgba(244, 225, 193, 0.2);
  box-shadow: 0 0 8px #f4e1c1;
  transform: scale(1.05);
}





