html, body {
  height: auto;       /* כדי לא להגביל לגובה מסך */
  min-height: 100vh;  /* כן נשמור על מינימום מסך */
  overflow-y: auto;   /* נאפשר גלילה אנכית */
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #111, #222);
  color: white;
  /* display: flex;
  justify-content: center;
  align-items: center; */
}

.screen {
  /* height: 100vh; */
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
}

.hidden {
  display: none;
}

button {
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
  margin: 0.7rem;
  border-radius: 8px;
  border: none;
  background-color: #e72c29; /* אדום במקום ורוד */
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.addplayers{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 70%;
}

.add{
  background-color: #e72c29; /* אדום במקום ורוד */
  /* font-size: 1.5rem; */
  padding: 0.5rem 0.75rem;
  margin: 0 10px 0 0;
  border: 2px #860631 solid;
}
.remove-btn{
  font-size: 18px;
  box-sizing: border-box;
  padding: 8px 13px;
  background-color: red;
  margin: 0;
}
input {
  padding: 0.7rem;
  font-size: 1.1rem;
  border-radius: 6px;
  border: none;
  width: 100%;
  text-align: center;
}
/* input[type=text]{
} */
input[type=text]:focus{
  outline: 2px solid #860631;
}
hr{
  color: #3d3d3d;
  margin-top: 4vh;
  margin-bottom: 1vh;
  width: 90%;
  opacity: 0.8;
}
h1{
  font-size: 2.2rem;
  font-weight: bolder;
  background-color: #2424244f;
  width: 100vw;
  text-align: center;
  padding: 2rem 0px;

}
h2{
  text-align: center;
  /* width: 0 auto; */
  margin: 0;
  padding: 5px;
}
h3{
  margin: 5px 0
}


.dareinfo{
  margin: 0;
  padding: 0;
  text-align: center;
}
.info, .settings{
  margin-top: 15px;
}
.info h3, .settings h3{
  text-align: center;
}
strong{
  color: #e72c29; /* אדום במקום ורוד */
}
i{
  color: white;
  position: absolute;
  bottom: 5px;
  text-align: center;
}
.vers{
  bottom: 23px;
}
i a {
  color: red;
}
ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  font-size: 1.2rem;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  width: 80%;
  max-width: 800px;
}
li {
  font-size: 18px;
  padding: 30px 12px;
  border-radius: 10px;
  background-color: #e72c2975; /* אדום שקוף במקום ורוד */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  box-sizing: border-box;
  
}

.result-box {
  height: 100%;
  font-size: 2rem;
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  background-color: #222;
  border-radius: 12px;
  min-height: 140px;
  width: 90%;
}
/* .result-box span{
  margin: 0.7rem;
} */

.p1 {
  color: #e72c29; /* אדום במקום ורוד */
  font-weight: bold;
}

.p2 {
  color: #03a9f4;
  font-weight: bold;
}

.loading {
  font-size: 2rem;
  color: gold;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes flash {
  0% { background-color: #111; }
  50% { background-color: #333; }
  100% { background-color: #111; }
}

.dramatic {
  animation: flash 1s ease-in-out;
}

.start{
  font-size: 1.35rem;
  font-weight: bold;
  width: 75%;
  height: 7vh;
  border: 2px #860631 solid;
  min-height: 50px;
}

#customAlert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.alertBox {
  background-color: #860631;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  font-size: 18px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.alertBox button {
  background-color: #e72c29;
  margin-top: 15px;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}


#turnBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
figure{
  min-width: 100%;
  background-color: #2424244f;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5rem 0 1rem 0;
  box-shadow: 0px 10px 24px 10px rgba(36,36,36,0.3);
  -webkit-box-shadow: 0px 10px 24px 10px rgba(36,36,36,0.3);
  -moz-box-shadow: 0px 10px 24px 10px rgba(36,36,36,0.3);
}
img{
  width: 100%;
  padding: 0rem 1rem 0 1rem;
  user-select: none;

}

#lobby{
  padding: 0;
}

.result-fig{
  background-color: transparent;
  margin: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
}

.backbut{
  background-color: red;
}
#turnBtn{
  font-weight: bold;
}
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.dramatic #result span {
  animation: shake 0.5s;
}

.float{
  position: fixed;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  /* background-color: #e72c29; */
  color: white;
  font-size: 27px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px #1b1b1b solid;
}
.left{
  left: 0;
  top: 0;
  background-color: #424242de;
}
.right{
  right: 0;
  top: 0;
  background-color: #424242de;
}

.mode-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.3rem;
}
#modeLabel{
  font-size: 40px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 50px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition: .4s;
  border-radius: 34px;
  background-color: rgba(65, 105, 225); /* כחול לקל */
}

.slider:before {
  position: absolute;
  content: "";
  height: 38px;
  width: 38px;
  left: 6px;
  bottom: 6px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #e72c29; /* אדום לחם */
}

input:checked + .slider:before {
  transform: translateX(40px);
}

.visually-hidden {

  display: none;
}

