@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('images/background.jpg') no-repeat;
    background-size: cover;
    background-position: center;
}

/* 上方條幅的設定 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0px 100px;
    /*background: darkblue;*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    /*opacity: 0.5;*/
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* 100% of the viewport height */
    padding: 20px;
}

/* hero 控制整個背景*/
.hero {
    height: 100vh;
    width: 100%;
    /*background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6), url('./images/background.png'));*/
    /*background-image: url('./images/background.png');*/
    /*background-image: url(images/background.png);*/
    background-size: cover;
    background-position: center;
}

/* 控制條幅 navigation Class */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*
    padding-top: 40px;
    padding-left: 10%;
    padding-right: 10%;
    */
    /* 這裡控制上方條幅的高度*/
    padding: 20px;
    /* 這裡控制左方按鈕的距離 */
    padding-right: 5%;
    /* 這裡控制右方按鈕的距離 */
    padding-left: 5%;
    /*background: rgb(2 10 61 / 80%);*/
    border-radius: 10px;
}

.logo {
    font-size: 2em;
    color: #fff;
    user-select: none;
}

span {
    color: #cdb330;
}

/**/
nav ul li {
    list-style-type: none;
    display: inline-block;
    /* 第一個是高度，第二個是選項的間距 */
    padding: 10px 10px;
    font-size: 20px;
    position: relative;
}

nav ul li a{
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: block;
    text-align: center;
}

nav ul li a:hover{
    color: #218bdb;
    transition: 0.3s;
}

/* dropdown 是顯示下拉式選單 */
nav ul li ul.dropdown li{
    display: block;
}

/* dropdown 是顯示下拉式選單 */
nav ul li ul.dropdown {
    width: 100%;
    /*background: #a6cae9;*/
    background: #1c4466;
    /*background: #218bdb;*/
    position: absolute;
    z-index: 3;
    display: none;
    right: 0;
    border-radius: 20px;
    /*opacity: .5;*/
}

/* dropdown 是顯示下拉式選單 */
nav ul li:hover ul.dropdown{
    display: block;
}

/* 水平置中 */
.section-flex {
    display: flex;
    justify-content: center;
}

/*class="line" 的作用是讓每個 div 上下分開而且置中*/
.line {
    /* Adjust as needed */
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

/* 有背景
.titleClass {
    border: none;
    background: #4da0e8;
    padding: 12px 30px;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    font-size: 100px;
}
*/

.titleClass {
    color: white;
    font-weight: bold;
    font-size: 100px;
    position: relative;
    /* 以下可以置中 */
    /*
    display: flex;
    justify-content: center;
    */
}

.title2Class {
    color: white;
    font-weight: bold;
    font-size: 60px;
    /* 以下可以置中 */
    /*
    display: flex;
    justify-content: center;
    */
}

.title3Class {
    color: white;
    font-weight: bold;
    font-size: 20px;
    /* 以下可以置中 */
    /*
    display: flex;
    justify-content: center;
    */
}

/* Adjust the font size as needed */
/*
label {
    font-size: 24px;
}
*/

/* 有背景
#questionID {    
    background-color: #0074d9;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 50px;
    color: white;
    transition: 0.4s;
}
*/

#questionID {
    /*background: #1c68aa;*/
    font-size: 50px; /* Larger font size for the question label */
    color: white;
    transition: 0.4s;
}

input {
    padding: 5px;
    font-size: 50px; /* Adjust the font size for the input field */
    align-items: center;
    /* 這一行可以讓輸入的文字置中*/
    text-align: center;
}

#startID {
    font-weight: bold;
    font-size: 70px; /* Adjust the font size for the "Start" button */
    background-color: #0074d9; /* Button background color */
    color: #fff; /* Button text color */
    padding: 10px 20px;
    border: none;
    border-radius: 60px;
    margin-top: 20px; /* Add some space above the button */
    transition: 0.4s;
}

#startID:hover {
    /*background-color: #5da5e5; /* Button background color on hover */
    transform: scale(1.3);
    cursor: pointer;
}

/* navigation class 的設定*/
/* 橫幅文字的設定 */
.navigation a {
    position: relative;
    font-size: 1.1em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
}

/* 橫幅文字的設定 */
.navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    /*transform-origin: right;*/
    transform: scaleX(0);
    transition: transform .5s;
}

/* 橫幅文字的設定 */
.navigation a:hover::after {
    /*transform-origin: left;*/
    transform: scaleX(1);
}

/* 橫幅按鈕的設定 */
.navigation .btnLogin-popup {
    /* 本來是 width: 130px; */
    width: 120px;
    height: 50px;
    /*background: transparent;*/
    background: #218bdb;
    border: 2px solid #fff;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.3em;
    color: #fff;
    font-weight: 500;
    margin-left: 40px;
    transition: .5s;
}

/* 橫幅按鈕的設定 */
.navigation .btnLogin-popup:hover {
    background: #fff;
    color: #162938;

}

/* 登入視窗的設定 */
.wrapper {
    position: relative;
    width: 400px;
    height: 540px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform: scale(0);
    transition: transform .5s ease, height .2s ease;
}

/* 登入視窗的設定 */
.wrapper.active-popup {
    transform: scale(1);
}

/* 登入視窗的設定 */
.wrapper.active {
    /* 這裡可以控制 register 的高度*/
    height: 640px;
}

/* 登入視窗的設定 */
.wrapper .form-box {
    width: 100%;
    padding: 40px;
}

/* 登入視窗的設定---登入轉換 */
.wrapper .form-box.login {
    transition: transform .18s ease;
    /* translateX(0) 向右移動 0 */
    transform: translateX(0);
}

/* 登入視窗的設定---登入轉換 */
.wrapper.active .form-box.login {
    transition: none;
    /* translateX(-400px) 向左移動 400 */
    transform: translateX(-400px);
}

/* 登入視窗的設定---註冊轉換 */
.wrapper .form-box.register {
    position: absolute;
    transition: none;
    /* translateX(400px) 向右移動 400 */
    transform: translateX(400px);
}

/* 登入視窗的設定---註冊轉換 */
.wrapper.active .form-box.register {
    transition: transform .18s ease;
    transform: translateX(0);
}

/* 登入視窗的設定---關閉 */
.wrapper .icon-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background: #162938;
    font-size: 2em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    z-index: 1;
}

.form-box h2 {
    font-size: 2em;
    color: #fff;
    text-align: center;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid #162938;
    margin: 30px 0;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #fff;
    font-weight: 500;
    pointer-events: none;
    transition: .5s;
}

.input-text {
    color: #fff;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: -5px;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #162938;
    font-weight: 600;
    padding: 0 35px 0 5px;
}

.input-box .icon {
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    color: #fff;
    line-height: 57px;
}

.remember-forgot {
    font-size: .9em;
    color: #fff;
    font-weight: 500;
    margin: -15px 0 15px;
    display: flex;
    justify-content: space-between;
}

.remember-forgot label input{
    accent-color: #fff;
    margin-right: 3px;
}

.remember-forgot a {
    color: #fff;
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    height: 45px;
    background: #162938;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 500;
}

.login-register {
    font-size: .9em;
    color: #fff;
    text-align: center;
    font-weight: 500;
    margin: 25px 0 10px;
}

.login-register p a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.login-register p a:hover {
    text-decoration: underline;
}

/* 顯示設計團隊的小視窗按鈕 */
.showTeamClass {
    /*background: #4da0e8;*/
    font-weight: bold;
    font-size: 20px;
    background: #0074d9;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    transition: 0.4s;
}

/* 顯示設計團隊的小視窗按鈕 */
.showTeamClass:hover {
    transform: scale(1.3);
    cursor: pointer;
}

/*
#resetID {
    font-weight: bold;
    font-size: 20px;
    background: #0074d9;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    transition: 0.4s;
}

#resetID:hover {
    transform: scale(1.3);
    cursor: pointer;
}
*/

/* 錯誤的圖示 */
#crossmarkID {
    position: absolute;
    left: 1100px;
    top: 340px;
    width: 100px;
    height: 100px;
    display: none;
}

/* 看答案按鈕的設定 */
#answerBtnID {
    position: absolute;
    left: 1200px;
    top: 550px;
    width: 160px;
    display: none;
}

/* 看答案按鈕變大 */
#answerBtnID:hover {
    transform: scale(1.2);
    cursor: pointer;
}

#answerImageID {
    position: absolute;
    width: 150px;
    left: 150px;
    top: 350px;
    display: none;
}

#timerID{
    width: 200px;
    /* 加上這一行可以控制 label 的長度 */
    display: inline-block;
    text-align: center;
}

#numberID{
    width: 150px;
    display: inline-block;
    /* 加上這一行可以控制 label 的長度 */
    text-align: center;
}

#scoreID{
    width: 100px;
    display: inline-block;
    /* 加上這一行可以控制 label 的長度 */
    text-align: center;
}

/* Center the image and position the close button */
.closeContainer {
    text-align: center;
    margin: 24px 0 12px 0;
    position: relative;
}
  
img.doctor {
    /* 原來是 width: 40% */
    width: 100px;
    border-radius: 50px;
}

/* 讓裡面的 div 並排*/
.flex-Container{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-content: flex-start;
}

.centerContainer {
  text-align: center;
  padding: 16px;
}

span.psw {
  float: right;
  padding-top: 16px;
}

/* 訊息視窗 The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 4; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  padding-top: 60px;
}

/* 訊息視窗內容 Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
  border: 1px solid #888;
  width: 50%; /* Could be more or less, depending on screen size */
}

/* The Close Button (x) */
.closeBox {
  position: absolute;
  right: 25px;
  top: 0;
  color: #000;
  font-size: 35px;
  font-weight: bold;
}

.closeBox:hover,
.closeBox:focus {
  color: red;
  cursor: pointer;
}

/*這裡是 mission alert window */
.missionButtonClass {
  background-color: #468ef3;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 80%;
  font-size: 24px; /* Set the desired font size here */
}

.missionButtonClass:hover {
  opacity: 0.8;
}

/* Add Zoom Animation */
.animate {
  -webkit-animation: animatezoom 0.6s;
  animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
  from {-webkit-transform: scale(0)} 
  to {-webkit-transform: scale(1)}
}
  
@keyframes animatezoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
  span.psw {
     display: block;
     float: none;
  }
}