body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
}

/* Záró gomb stílusa */
.close-button {
    background-color: transparent;
    color: black;
    border: none;
    font-size: 20px;
    cursor: pointer;
    align-self: flex-end; /* A gomb a jobb felső sarokba kerül */
}

.close-button:hover {
    color: red;
}

/* Beúsó animáció */
@keyframes slideIn {
    0% {
        transform: translate(-50%, -60%); /* Kezdeti helyzet */
        opacity: 0; /* Kezdeti átlátszóság */
    }
    100% {
        transform: translate(-50%, -50%); /* Végeredmény */
        opacity: 1; /* Teljes átlátszóság */
    }
}


/* Felugró ablak stílusa */
.popup-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.popup-content {
    display: flex;
    flex-direction: column;  /* Függőleges elrendezés */
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
}

/* Iskolai terem elrendezése */
.classroom {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    position: relative; /* A tanári asztal pozicionálása miatt szükséges */
}

.side.right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    margin-top: 95px; /* Lejjebb tolja a jobb oldali padsort */
}


.teacher-desk {
    width: 200px;
    height: 60px;
    background-color: #999;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 60px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    margin-left: 0px;
    margin-top: 20px; /* Ez a rész biztosítja, hogy a tanári asztal a padsor alatt legyen */
}


.side {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Kisebb távolság a boxok között */
}

.side.left {
    margin-top: 95px;
}

.side.center {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}


.row {
    display: flex;
    gap: 10px;
}

.desk {
    width: 60px;
    height: 60px;
    background-color: #ccc;
    border: 1px solid #999;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: normal; /* Sorok közötti távolság */
    font-size: 14px; /* Alap betűméret */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ha a tartalom túlnyúlik */
    word-wrap: break-word; /* Sortörés hosszú szavak esetén */
    white-space: normal; /* Több soros szöveg megengedése */
    padding: 5px; /* Hely a szöveg körül */
}

.space {
    width: 50px;
}

/* From Uiverse.io by cssbuttons-io */ 
.btn {
  position: relative;
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6em 1em;
  display: inline-block;
  cursor: pointer;
  border-radius: 4em;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  font-weight: 500;
  color: rgb(0, 0, 0);
  background-color: #ffcc00;
  margin-top: 10px;
  margin-bottom: 10px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn::after {
  content: "";
  display: inline-block;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all 0.4s;
}

.btn::after {
  background-color: #fff;
}

.btn:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}

input {
  font-size: 13px;
  text-align: center; /* Vízszintes középre igazítás */
  border: 2px solid #ccc;
  border-radius: 25px; /* Mindenhol lekerekítve */
}

.desk:empty {
    background-color: #999;
    color: white;
}

.desk[draggable="true"]:not(:empty) {
    background-color: #ffcc00;
    color: black;
    font-weight: bold;
}

/* Minden többi rész maradhat, ahogy eddig volt */

#save-load-buttons {
    display: flex;
    justify-content: space-between; /* A gombok egy sorban, a térközökkel */
    gap: 10px; /* Kisebb távolság a gombok között */

}

/* Betöltés és Mentés gomb stílus */
#load-names, #save-names {
    background-color: #c4ff76; /* Kék szín */
    color: rgb(0, 0, 0);
}

#load-names:hover, #save-names:hover {
    background-color: #b30000; /* Sötétebb kék a hover hatásra */
}

#load-names:active, #save-names:active {
    background-color: #855000; /* Még sötétebb kék az aktív állapotban */
}

/* -------------------- TOAST -------------------- */

.toast {
  position: fixed;
  top: 25px;
  right: 30px;
  border-radius: 12px;
  background: #fff;
  padding: 20px 35px 20px 25px;
  box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform: translateX(calc(100% + 30px));
  opacity: 0;  /* Kezdetben láthatatlan */
  visibility: hidden; /* Kezdetben rejtett */
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
  z-index: 11
}

.toast.active {
  transform: translateX(0%);
  opacity: 1;  /* Látható */
  visibility: visible; /* Látható */
}

.toast .toast-content {
  display: flex;
  align-items: center;
}

.toast-content .check {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  min-width: 35px;
  background-color: #ffcc00;
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
}

.toast-content .message {
  display: flex;
  flex-direction: column;
  margin: 0 20px;
}

.message .text {
  font-size: 16px;
  font-weight: 400;
  color: #666666;
}

.message .text.text-1 {
  font-weight: 600;
  color: #333;
}

.toast .close {
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 5px;
  cursor: pointer;
  opacity: 0.7;
}

.toast .close:hover {
  opacity: 1;
}

.toast .progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;

}

.toast .progress:before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background-color: #ffcc00;
}

.progress.active:before {
  animation: progress 5s linear forwards;
}

@keyframes progress {
  100% {
    right: 100%;
  }
}

button {
  padding: 12px 20px;
  font-size: 20px;
  outline: none;
  border: none;
  background-color: #ffcc00;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #0e4bf1;
}

.toast.active ~ button {
  pointer-events: none;
}