html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
	font-size: 100%;
	padding: 5px;
	margin: auto;
	line-height: 1.5;
	box-sizing: border-box;
}

#words-container {
	font-size: 24px;
	margin: 20px;
	hyphens: auto;
	color: blue;
}

.definitions-section {
	margin: 20px;
	hyphens: auto;
}

.counters {
	margin-top: 20px;
}

#countdown-bar {
	width: 100%;
	height: 5px;
	background-color: #ccc;
	margin-bottom: 10px;
}

/* Modal popup */
.modal,
.modal-wikt {
	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);
}

/* Modal content */
.modal-content,
.modal-wikt-content {
	background-color: #fefefe;
	margin: 30px auto;
	padding: 20px;
	border: 1px solid #888;
	width: 300px;
	max-height: 80vh;
	overflow-y: auto;
	overflow-x: hidden;
	/* Prevent horizontal scrolling */
	position: relative;
}

.modal-wikt-content {
	height: 80vh;
}

.modal-wikt-content iframe {
	width: 100%;
	height: calc(100% - 20px);
	/* Adjust the height to fit within the modal */
}

/* Close button */
.close,
.close-wikt {
	color: #aaa;
	position: absolute;
	top: 10px;
	right: 25px;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

.close:hover,
.close:focus,
.close-wikt:hover,
.close-wikt:focus {
	color: #000;
	text-decoration: none;
}

/* Buttons */
button {
	margin-bottom: 5px;
	padding: 10px 5px;
}
button:hover {
	cursor: pointer;
}
button:disabled {
	cursor: not-allowed;
}

#start-btn,
#stop-btn,
#yes-btn,
#no-btn,
#reset-btn {
	width: 130px;
}

#yes-btn {
	color: black;
	background-color: #90EE90;
}

#no-btn {
	color: black;
	background-color: #FF7F7F;
}

.letter-btn {
	width: 35px;
}

.container {
	display: flex;
	flex-direction: column;
}

.game-section,
.definitions-section {
	flex: 1;
	margin-bottom: 20px;
}

.game-section {
	margin-right: 0;
}

 .overlay-image {
    position: absolute;
    top: 100px; /* Adjust as needed */
    left: 100px; /* Adjust as needed */
    width: 100px; /* Adjust as needed */
    height: auto;
    opacity: 0.8; /* Optional: Adjust opacity for transparency */
  }

/* Media query for larger screens */
@media (min-width: 768px) {
	
	.container {
		flex-direction: row;
	}

	.game-section {
		margin-right: 20px;
		margin-bottom: 0;
	}

	.modal-wikt-content {
		width: 600px;
	}
}
