body {
    font-family: 'Arimo';
    background-color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
	font-family: 'Arimo';
	width: 99%;
    text-align: center;
}


    .board {
		width: 95%;
		margin-right: 1.5%;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 5px;
		margin-bottom: 20px;
	}
	
	
	.word {
		display: flex;
		justify-content: center;
		align-items: center;
		cursor: pointer;
		width: 100%;
		height: 75px;
		text-align: center;
		border-radius: 10px;
		vertical-align: middle;
		font-size: 16px;
		font-family: 'Arimo';
		font-weight: bold;
	}
	
	#buttons-div {
		margin-left: 2%;
	}
	
	#attempts {
		margin-right: 2%;
	}

.board div {
	background-color: #9bd5ff;
    color: #152b3a;
}

.btn {
	font-family: 'Arimo';
	font-weight: bold;
    padding: 10px 20px;
    font-size: 14px;
	background-color: transparent;
    border: 1px solid #152b3a;
    color: #152b3a;
    cursor: pointer;
	border-radius: 50px;
	margin-left: -10px;
}

.btn:disabled {
    background-color: #ccc;
    color: #152b3a;
    border: none;
    cursor: not-allowed;
}

#check-answers:disabled {
    background-color: #fff;
    color: #152b3a;
    border: 1px solid;
    cursor: not-allowed;
    width: 162px;
    font-weight: bold;
}

#check-answers:enabled {
    background-color: #2ecc71;
    border: 1px solid #00bf51;
    color: #fff;
	width:162px;
	font-weight: bold;
	font-size:14px;
}

.message {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
}

.category-info {
    font-weight: bold;
    margin-bottom: 10px;
}

.hidden {
    display: none;
}


.word.selected {
    background-color: #3e4f57;
	color:#fff;
    font-weight: bold;
}

.category-box {
    font-size: 20px;
    border-radius: 7px;
    font-family: 'Arimo';
    width: 94%;
    margin-right: 15px;
	height: 85px;
    margin-bottom: 10px;
	color: #fff;
	margin-top: -10px;
}

.category-box-added {
	animation: slideInFromRight 1s forwards;	
}


    .links {
      margin: 10px;
    }

    .links a {
      display: block;
      margin-bottom: 10px;
      padding: 10px;
      border-radius: 5px;
      text-decoration: none;
      color: #fff;
      text-align: center;
    }

    .links a:hover {
      opacity: 0.9;
    }

    .links a .fa {
      margin-right: 10px;
      font-size: 18px;
    }
	
    .button {
      margin: 20px;
      padding: 8px 15px;
      border: none;
      border-radius: 5px;
      color: #fff;
      cursor: pointer;
      text-align: center;
    }

    .button-yellow {
      background-color: #f1c40f; /* Yellow */
    }

    .button-green {
      background-color: #2ecc71; /* Green */
    }

    .button-blue {
      background-color: #3498db; /* Blue */
    }

    .button-orange {
      background-color: #f39c12; /* Orange */
    }

    .button-red {
      background-color: #fd6e5f; /* Red */
    }

    .button-purple {
      background-color: #9b59b6; /* Purple */
    }

@keyframes slideInFromRight {
    from {
        opacity: 0; /* התחלת האנימציה: התיבה לא נראית */
        transform: translateX(100%); /* התיבה מתחילה מימין מאחורי המסך */
    }
    to {
        opacity: 1; /* סיום האנימציה: התיבה מתקרבת מימין לשמאל */
        transform: translateX(0); /* התיבה מתקרבת למרכז המסך */
    }
}

#buttons-div {
    float: left;
    display: inline-block;
    position: relative;
    left: 8px;
}

#attempts {
display: flex;
    flex-direction: row;
    float: right;
    position: relative;
    right: 8px;
    top: 13px;
	font-size:14px;
}

#attempts-bg {
	background: #152b3a;
    padding: 3px;
    margin-bottom: 3px;
    color: #ffffff;
}

#help {
	font-family: 'Arimo';
    font-weight: bold;
    padding: 10px 20px;
    font-size: 14px;
    background-color: transparent;
    border: 1px solid #152b3a;
    color: #152b3a;
    width: 70px;
    display: inline-block;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 5px;
    margin-left: 0px;
}

#another_day {
	font-family: 'Arimo';
    font-weight: bold;
    padding: 10px 20px;
    font-size: 14px;
	background-color: transparent;
    border: 1px solid #152b3a;
    color: #152b3a;
    width: 66px;
	display:inline-block;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 5px;
}

#clue {
	font-family: 'Arimo';
    font-weight: bold;
    padding: 10px 20px;
    font-size: 14px;
    background-color: transparent;
    border: 1px solid #152b3a;
    color: #152b3a;
    cursor: pointer;
    width: 70px;
    display: inline-block;
    border-radius: 50px;
    margin-left: 0px;
}

#clue:hover {
	background: #d9e4ec;
	border-color: #768693;
	color: #152b3a;
	cursor:pointer;
}

#restart {
	display: none;
	font-family: 'Arimo';
    font-weight: bold;
    padding: 10px 20px;
    font-size: 16px;
    background-color: transparent;
    border: 1px solid #152b3a;
    color: #152b3a;
    width: 413px;
    border-radius: 50px;
    cursor: pointer;
    margin-bottom: -30px;
}


.message-overlay {
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(0 0 0 / 57%);
    color: white;
    padding: 10px 7px;
    border-radius: 5px;
    display: none;
    font-size: 60px;
    font-family: 'Arimo';
    font-weight: bold;
}


/* CSS */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.4); 
  text-align: right;
}

.modal-content {
    background-color: #fefefe;
    margin: 8% 9.8%;
    padding: 20px;
    border: 1px solid #888;
	text-align:center;
    width: 70%;
	animation: modalFadeIn 0.5s ease-in-out;
}
.modal-content2 {
    background-color: #fefefe;
    margin: -6% -5.2%;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #888;
    text-align: center;
    width: 100%;
    height: 544px;
    animation: modalFadeIn 0.5s ease-in-out;
}

.close {
  color: #aaaaaa;
  float: left;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* כללי האנימציה */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}