* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* 
canvas {
    width: 100%;
    object-fit: contain;
} */
/* 
#canvas1{

  width: 900;
  height: 700;
}  */
/*  
@media screen and (orientation: portrait){
  #canvas1{
    width: auto;
    height: 60vh;
  }
}

@media screen and (orientation: landscape){
  #canvas1{
    width: 90vw;
    height: 70vh;
  }
}  */

dialog {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  position: fixed; /* Makes the element relative to the viewport */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.footer {
  position: fixed;
  bottom: 0;
}

.game-option-selection {
  /* display: flex; */
  /* flex-direction: row; */
  /* flex-wrap: wrap; */
  justify-content: center;
  color: white;
}
/* by default iphone size landscape 852x393 */
.join-table-container {
  width: 100%;
  padding: 1rem;
  background-color: #52ae7c;
  border-radius: 10px;
  margin: 1px 0px 0px 5px;
}

.change-orientation {
  display: none;
}

@media screen and (orientation: portrait) {
  .join-table-container {
    width: 100%;
    min-width: 200px;
    margin: 1px 0px 5px 0px;
  }
  .change-orientation {
    display: block;
  }
}

@media screen and (min-width: 1000px) {
  .join-table-container {
    max-width: 400px;
    margin: 5rem 1rem 1rem 0rem;
  }
}

.join-table-container h2 {
  text-align: center;
  margin: 2px;
  padding: 0px;
}

select {
  -webkit-appearance: none;
}

input[type="text"],
select {
  width: 100%;
  padding: 8px 8px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: inherit;
}

button {
  width: 100%;
  /* background-color: #ccc; */
  background-color: #45a049;
  color: white;
  padding: 8px 8px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: inherit;
}

button:hover {
  background-color: #45a049;
  border: 1px solid white;
}

button:disabled,
button[disabled] {
  border: 1px solid #999999;
  background-color: #cccccc;
  color: #666666;
}

.join-table.hide {
  display: none;
}

.join-table-container.hide {
  display: none;
}
