body, html {
  height: 100% !important;
  padding:0px !important;
  width:100% !important;
  margin: 0;
  font-family: Arial, sans-serif;
  background-image: url("background1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.container {
  display: flex;
  flex-wrap: wrap;
  height: 100%;
  max-width:100% !important;
}

.sidebar {
  display: block;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  flex: 0 0 400px;
  padding-top: 10px;
  flex-wrap: wrap;
  width: 600px;
}

.sidebar-content {
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  max-height: 90vh;
  overflow-y: auto;

}

.sidebar-footer {
  position: fixed;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 10px;
  right: 0;
  bottom: 0px;
}


.content-area {
  box-sizing: border-box;
  flex-grow: 1;
  flex-basis: calc(100% - 400px);
  max-width: calc(100% - 400px);
  height: 100vh;
  overflow: auto;
  position: relative;
    border: 1px solid grey;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.item {
  z-index: 9999;
  box-sizing: border-box;
  padding: 8px;
  background-color: #f7f7f7;
  text-align: center;
  cursor: move;
  margin: 5px;
  height: 40px;
  border: 1px solid grey;
  border-radius: 5px;
width: auto;
}

#lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.item:hover {
  background-color: rgb(220, 137, 54);
  cursor: grab;
}

@media (max-width: 768px) {
  .sidebar {
    flex-basis: 100%;
    max-width: 100%; 
    max-height: 40%;
    
  }
.sidebar-content{
  max-height: 65%;
  overflow-y: auto;

}
.sidebar-footer {
  position: fixed;
  padding: 10px;
  bottom: 0px;
}

  .content-area {
    flex-basis: 100%;
    max-width: 100%;
    height: 60vh;
  }

  .item {
    padding: 5px;
   height: 30px;
  }
}

@keyframes floatAnimation {
  0%, 100% {
      transform: translate(0, 0);
  }
  25% {
      transform: translate(-5px, 5px);
  }
  50% {
      transform: translate(5px, -5px);
  }
  75% {
      transform: translate(-5px, -5px);
  }
}

.content-area .item {
  animation: floatAnimation 10s ease-in-out infinite;
  
  -webkit-animation: floatAnimation 10s ease-in-out infinite;
}


.search {
  background-color: transparent !important;
  width: 150px !important;
  padding:10px !important;
  height: 10px !important;
  color:#ffffff !important;
  border:1px solid grey !important;
  border-radius: 5px !important;
  -webkit-border-radius: 5px !important;
  -moz-border-radius: 5px !important;
  -ms-border-radius: 5px !important;
  -o-border-radius: 5px !important;
  height: 34px !important;
}
.search::placeholder{
  color:#f7f7f7
}

button {
  background-color: transparent !important;
  padding: 5px !important;
  border: 1px solid grey !important;
  border-radius: 5px !important;
  -webkit-border-radius: 5px !important;
  -moz-border-radius: 5px !important;
  -ms-border-radius: 5px !important;
  -o-border-radius: 5px !important;
  min-width: 10px !important;
 
}

.change{
  background-color: transparent !important;
color: #f7f7f7 !important;
padding: 6px !important;
  border: 1px solid grey !important;

  border-radius: 5px !important;
  -webkit-border-radius: 5px !important;
  -moz-border-radius: 5px !important;
  -ms-border-radius: 5px !important;
  -o-border-radius: 5px !important;
  width: 100px !important;
  height: 34px !important;
}
.swal2-container {
  z-index: 99999 !important; /* Ensure it's higher than other elements */
}

.swal2-popup {
font-size:1.3rem !important;
}
.swal2-actions button {
color:inherit !important
}

.official-game-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20000;
  display: flex;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  background: rgba(20, 20, 24, 0.9);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.official-game-link:hover,
.official-game-link:focus-visible {
  background: #da8936;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.official-game-link img {
  display: block;
  width: 22px;
  height: 22px;
}
