@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

html, body {
    width: 100vw;
    height: 100vh;
    position: fixed;
    padding: 0;
    margin: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, #444, #fff);
    font-family: 'Poppins', sans-serif;
}

#view {
    margin-top: 30px;
}

#mazeContainer {
    top: 15px;
    opacity: 0;
    display: inline-block;
    margin: auto;
    border-radius: 10px;
}
#mazeContainer #mazeCanvas {
    margin: 0;
    display: block;
    border: solid 2px black;
    height: 400px;
}
input, select {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.30);
    height: 45px;
    width: 150px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    color: white;
    display: inline-block;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    appearance: none;
}
input:hover, select:hover {
	background-color: rgba(0, 0, 0, 0.70);
}
input:active, select:active {
	background-color: black;
}
input:focus, select:focus {
	outline: none;
}
.custom-select {
	display: inline-block;
}
.custom-select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: 125px center;
}
#Message-Container {
    visibility: hidden;
    color: white;
    display: block;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.30);
    z-index: 1;
}
#Message-Container #message {
    width: 300px;
    height: 300px;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: -150px;
    margin-top: -150px;
}
#page {
	text-align: center;
	height: auto;
	width: auto;
	margin: auto;
}
#page #menu {
    margin: auto;
    padding: 10px;
    height: 65px;
    box-sizing: border-box;
}
#page #menu h1 {
    margin: 0;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 3.2rem;
}
#page #view {
    position: absolute;
    top: 65px;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
}
.border {
    border: 10px black solid;
    border-radius: 10px;
}

#instructions {
    margin-top: 425px;
}
 
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 400px) {
	input, select {
	    width: 120px;
	}
}

/* replay button */
.play-bt{
    background: #0f0;
    padding: 5px;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: none;
  }
  .play-bt:hover{
    /* transform: translateY(2px); */
    transition: .3s;
    transform: scale(1.1);
    background: darkmagenta;
    color: #FFF;
  }

/* 調整 Checkbox 讓它與 Start 按鈕一致 */
.keys-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;  /* 與 Start 按鈕對齊 */
    height: 45px;  /* 與 Start 按鈕對齊 */
    background-color: rgba(0, 0, 0, 0.30);
    border-radius: 5px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
}

/* 調整 Switch Checkbox */
.keys-checkbox input {
    height: 25px;  /* 讓內部的開關適中 */
    width: 60px;
    cursor: pointer;
    appearance: none;
    position: relative;
    background: #4B4B4B;
    border-radius: 20px;
    transition: background-color 0.3s;
    margin-left: 10px; /* 確保文字和開關對齊 */
}

.keys-checkbox input::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8c8c8c;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.keys-checkbox input:checked {
    background: #0f0;
}

.keys-checkbox input:checked::before {
    left: 35px;
    background: #fff;
}

#fog-checkbox {
    margin-left: 10px; /* 確保開關與文字對齊 */
}
