@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  color: #fff;
  font-family: "Arial", sans-serif;
  transition: all 0.5s ease;
}

body {
  overflow: hidden;
  background: #dfdfdf;
  background-image: url("background.png");
}

h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  -webkit-text-stroke: 2px rgb(255, 156, 0, 0.65);
  text-shadow: 0 2px 9px #282828;

}

h2 {
  text-align: center;
  color: #555;
}

.container {
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
}

.icon-bg {
  width: 50px;
  height: 50px;
  padding: 5px;
  background-color: rgba(255, 255, 255, 0.6);
  background-size: contain;

  border-radius: 5%;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background-color: white;
  height: 70px;
  width: 100%;
  top: 0px;
  right: 0px;
  left: 0px;
  box-shadow:  0px 5px 5px rgba(0, 0, 0, 0.1);
  position: absolute;
  direction: rtl;
}
.logo {
  display: flex;
  flex: 0 0 auto;
  align-content: center;
  width: 80px;
  height: 90%;
  margin-top: 0px;
  background-image: url("claplab-logo.png");
  background-repeat: no-repeat;
  background-size: contain;
}
form {
  width: 600px;
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  justify-content: center;
}

form div,
form label,
form input,
form textarea {
  width: 90%;
}

form input[type="radio"] {
  margin-left: 20px;
  width: auto;
}

form :checked + label {
  color: #000;
  letter-spacing: 2px;
}

form input[type="checkbox"] {
  width: 30px;
  height: 30px;
  margin-right: 0px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgb(237, 33, 124);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
}
#gameEntries {
  margin-top: 4.5rem;
  overflow-y: scroll;
  overflow-x: visible;
  width: fit-content;
  height: 30vh;
  min-height: 15rem;
  padding-left: 10px;
  padding-right: 10px;
}
#gameEntries:empty {
  overflow-y: hidden;
}
form input[type="checkbox"]:checked {
  background: rgb(237, 33, 124);
  border-color: rgb(237, 33, 124);
}

form input[type="checkbox"]:checked::after {
  content: "\2714";
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

form input[type="checkbox"]:hover {
  box-shadow: 0 0 5px rgba(237, 33, 124, 0.5);
  background-color: rgba(255, 255, 255, 0.2);
}

form input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(237, 33, 124, 0.3);
}
.checkbox-container {
  margin-top: 20px;
  display: inline-flex;
  width: 300px;
}
.checkbox-container label {
  margin: none;
}
input[type="radio"]:checked:after {
  position: relative;
  box-shadow: 0 8px 6px -6px #555;
  content: "";
  display: inline-block;
}

#forMakeShortcut {
    align-self: center;
    text-align: center;
}
.radioFiled {
  width: 90%;
  margin-bottom: 20px;
  direction: ltr;
}

.field:nth-of-type(2) {
  margin: 3px 0;
}

label,
input,
textarea {
  padding: 4px;
}

label,
[placeholder] {
  color: #555;
  font-size: 15px;
}

.field:focus-within label {
  color: #000;
  letter-spacing: 2px;
}

.game-entry {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.game-entry .field {
  margin-inline-start: 10px;
}

.game-entry input {
  width: 200px;
}

.game-entry label {
  margin-bottom: 0;
}

.game-entry input[type="checkbox"] {
  margin-right: 10px;
}

.remove-entry {
  color: white;
  cursor: pointer;
  margin-left: 10px;
  align-self: end;
  padding: 10px;
  text-decoration: underline;
}

.open-game {
  color: white;
  cursor: pointer;
  margin-left: 10px;
  align-self: end;
  padding: 10px;
  text-decoration: underline;
}

#addGameBtn {
  margin-bottom: 10px;
}

input,
textarea {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 4px;
  box-shadow: 0 8px 6px -6px #555;
}

input:focus,
textarea:focus {
  background: white;
  box-shadow: none;
}

button {
  background: rgb(237, 33, 124);

  margin: 16px 0 50px 0;
  padding: 4px 16px;
  color: #fff;
  border-color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
}

button:hover {
  background: rgb(137, 17, 61);
}

.exportBtn {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    box-shadow: 0 8px 6px -6px #555;
    font-size: 25px;
}

.exportBtn:hover {
  letter-spacing: 2px;
  box-shadow: none;
}
.browse input[type="text"] {
  width: 400px;
}
.browse button {
  width: 17%;
  margin: 0;
  border-radius: 4px;
  text-align: center;
}

#loader {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 1;
  width: 80px;
  height: 80px;
  margin: -76px 0 0 -76px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

.language-selector {
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  margin-right: 20px;
  margin-left: 20px;
  position: relative;
  display: inline-block;
}

.language-selector select {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  margin: 10px;
  background-color: rgb(237, 33, 124);
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.language-selector::after {
  content: '\25BC';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: white;
  pointer-events: none;
}

.language-selector select:hover,
.language-selector select:focus {
  background-color: rgb(255, 64, 149);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.language-selector select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(237, 33, 124, 0.5);
}

/* Style for options in the dropdown */
.language-selector select option {
  background-color: white;
  color: rgb(237, 33, 124);
}

.language-selector button:hover {
  background-color: rgb(137, 17, 61);
}

#loading {
  position: absolute;
  left: 50%;
  top: 65%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: left;
}

#downloading {
  color: black;
  width: 400px;
  overflow-y: scroll;
  resize: none;
  height: 100px;
  padding: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.animate-bottom {
  position: relative;
  bottom: -200px;
  padding: 0;
  display: none;
  -webkit-animation-name: animatebottom;
  -webkit-animation-duration: 1s;
  animation-name: animatebottom;
  animation-duration: 1s;
  display: n;
}

@keyframes animatebottom {
  from {
    bottom: -300px;
    opacity: 0;
  }

  to {
    bottom: -200px;
    opacity: 1;
  }
}

.complete {
  margin-bottom: 10px;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  position: absolute;
  width: 2;
}

#error {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
  color: #000;
}

.error-btn {
  background: rgb(237, 33, 124);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 15px;
  margin-top: 10px;
}

.error-btn:hover {
  background: rgb(137, 17, 61);
}

.invisible {
  visibility: hidden;
}