canvas {
    /* centers the canvas on the screen */
    display: flex;
    margin: auto;
}

.chat-message-content, .chat-message-author {
    word-break: break-all;
    hyphens: auto;
}

.gameSettingsDropdown {
	align-items: center;
	display: flex;
	flex-direction: column;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #F3EAC8;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    transform: translateY(88px);
    border-radius: 10px;
    max-height: 200px; /* Set maximum height for the dropdown */
    overflow-y: auto; /* Enable vertical scrollbar if content exceeds max-height */
  }
  
  /* Links inside the dropdown */
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 10px;
  }
  
  /* Change color of dropdown links on hover */
  .dropdown-content a:hover {background-color: #FADF7F;}
  
  /* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
  .show {display:block;}

/* A small tag in a gamesetting button that displays the value of the setting */
.gameSettingValue {
    background-color: #FADF7F;
    padding: 3px 5px;
    border-radius: 5px;
    pointer-events: none; /* not block clicks */
}

/* contains one setting button (e.g. tileset button)*/
.one_settingButton_div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-display-username {
    text-align: center;
    padding: 5px;
}

.disabled-link {
    opacity: 0.5;
    pointer-events: none; /* This prevents the link from being clickable */
    cursor: default;
}

.start {
    background-color: #3291ff;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;

}

.lobby {
    
}

/* set background*/
.main {
    background-size: cover;
}


.player-queue {
    width: 200px; /* Reduced width */
    background-color: #f8f8f8;
    border-left: 1px solid #ccc;
    padding: 10px; /* Reduced padding */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 200px; /* Smaller fixed height */
    position: absolute;
}

.player-queue h2 {
    margin-top: 0;
    font-size: 16px; /* Smaller font size */
}

.player-queue ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex-grow: 1; /* Ensure the list takes the remaining space */
}

.player-queue ul li {
    padding: 5px; /* Smaller padding */
    background-color: #fff;
    margin-bottom: 3px; /* Smaller margin */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px; /* Smaller font size */
}

.bottom{
    align: center;
    position: relative;
    text-align:center;
    display: flex;
    justify-content: center;
    z-index: 0;
    gap: 0px
}

.multiplayerSettings {
    display: flex;
    /* position: block; */
    justify-content: center;
    align-items: center;
    transform: translateY(80%);
    flex-direction: column;
    /* left: 35%; */
}



/* for the username input */
.multiplayerSettings input[type="text"] {
    width: calc(100% - 20px); /* Adjusted width for the input field */
    text-align: center;
  }

#usernameButton {
    display: inline-block;
    padding: 10px;
    background-color: blue;
    color: white;
    border: none;
    cursor: pointer;
    margin-left: 5px;
}

.chatbox {
    position: fixed;
    right: 20px;
    bottom: 140px;
    width: 300px;
    height: 400px;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.chatbox-header {
    padding: 10px;
    background-color: #007bff;
    color: white;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-weight: bold;
}

.chatbox-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.chatbox-messages {
    display: block;
}

.chatbox-footer {
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    border-top: 1px solid #ccc;
}

#chat-input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 5px;
}

#send-button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

#send-button:hover {
    background-color: #0056b3;
}

.popupImages {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute; /* Fixed position to center within the viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -115%);
    width: 300px; /* Set a width for the div */
    height: 300px; /* Set a height for the div */
    pointer-events: none;
}

.popupImage {
    /* position: 'relative'; */
    /* transform: translate(0%, -25%); */
    max-height: 220px;
    justify-content: center;
}

.button {
    /* flex: 1 1 auto; */
    width: auto;
    min-width: 250px;
	background-color: #f8b404;
	border: none;
	color: black;
	padding: 20px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	margin: 15px 10px;
    border-radius: 8px;
    font-weight: bold;  
    position: relative;
  }

  .gameSettings_buttons {
    display: flex;
    margin: 0;
    position: relative;
    white-space: nowrap;
}

.startgame, .endgame, .continuegame {
    background-color: #3291ff;
    text-align: center;
    padding: 1em;
    font-size: 1.5em;
    color: #ffffff;
    width: 100%;
    border-radius: 8px;
    border-style: none;
    z-index: 1;
}

.continuegame {
    width: 50%;
}

.gameSetupClass, .inbetweenRounds, .afterGame {
    /* align: center; */
    text-align:center;
    width: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 40%;
    left: 0%;
}

.start_real, .end_real, .continue_real {
    width: 90%;
    /* display: inline-block; */
    align-items: center;
    display: flex;
    /* flex-direction: row; */
    justify-content: center;
    z-index: 1;
}

.centered{
    text-align: center;
}


#gameDiv{    
    position: absolute;
    z-index:0;
}

.question_button{
    position: relative;
    z-index:1000;
}

canvas{
    z-index:0;
}

#gameDiv{    
    position: absolute;
    z-index:0;
}

.btn{
    z-index:1000;
    background-color: #f8b404;
    font-weight: bold;
}

.question_mark{
    z-index:1000;
    color: #000000;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

.question_mark:hover {
    color: #0056b3;
    text-decoration: underline;
}

.btn_transparent{
    background: white;
}


