@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@700&family=Poppins:wght@400;500;600&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, #2980b9, #8e44ad);
  height:100vh;
  overflow: auto;
}

.icon-bar {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 1000;
  width: 40px;
  background-color: #c3c3c3;
}

.icon-bar a {
  display: block;
  text-align: center;
  padding: 4px;
  transition: all 0.3s ease;
  color: white;
  font-size: 30px;
  
}

.icon-bar a:hover {
  background-color: #000;
}

.active {
  background-color: #cecece !important;
}

.flags img {
width: 100%;
}

.title {
  position:absolute;
  top:20%;
  left:50%;
  transform: translate(-50%,-50%);
}

.title h1 {
  text-align: center;
  padding: 20px 0;
  font-variant: small-caps;
  text-shadow: 2px 2px 2px gray;
}

.center {
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
}

.redirection {
  width: 70%;
  text-align: center;
}

.login-box {
  background-color: white;
  width: 300px;
  border-radius: 10px;
  box-shadow: 10px 10px 15px rgba(0,0,0,0.25);
}

.menu-box{
  background-color: white;
  width: 300px;
  border-radius: 10px;
  box-shadow: 10px 10px 15px rgba(0,0,0,0.25);
  overflow: hidden;
}

.login-box h1 {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid silver;
}

.menu-box h1 {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid black;
  background-color: #2691d9;

}

.menu-box ul {
  list-style-type: none;
  padding: 30px 0;
  margin: 0;
}

.menu-box li{
  background-color: #2691d9;
  border: solid 1px;
  border-radius: 25px;
  padding: 10px 0;
  margin: 15px 50px;
}

.menu-box li:hover{
  border-color: #2691d9;
  transition: .5s;
  box-shadow: 10px 10px 15px rgba(0,0,0,0.7);
}

.menu-box li a{
  display: block;
  text-decoration: none;
  text-align: center;
  font-size: 18px;
  color: #e9f4fb;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.login-box form{
  padding: 0 40px;
  box-sizing: border-box;
}

form .text_field{
  position: relative;
  border-bottom: 2px solid #adadad;
  margin: 30px 0;
}

.text_field input{
  width: 100%;
  padding: 0 5px;
  height: 40px;
  font-size: 16px;
  border: none;
  outline: none;
}

.text_field label{
  position: absolute;
  top: 50%;
  left: 5px;
  color: #adadad;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  transition: .5s;
}

.text_field span::before{
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #2691d9;
  transition: .5s;
}

.text_field input:focus ~ label,
.text_field input:valid ~ label{
  top: -8px;
  color: #2691d9;
}

.text_field input:focus ~ span::before,
.text_field input:valid ~ span::before{
  width: 100%;
}

.button {
  width: 100%;
  height: 50px;
  border: 1px solid;
  background: #2691d9;
  border-radius: 25px;
  font-size: 18px;
  color: #e9f4fb;
  font-weight: 700;
  cursor: pointer;
  outline: none; 
}

.button:hover{
  border-color: #2691d9;
  transition: .5s;
  box-shadow: 10px 10px 15px rgba(0,0,0,0.7);
}

@keyframes opacity {
  from {opacity: 0;}
  to {opacity: 1;}
}

#result {
  display: block;
  width: 100%;
  margin: 10px auto;
}

#result-green {
  display: block;
  border-radius: 25px;
  text-align: center;
  margin: 4px auto;
  background: rgb(50, 200, 90);
  animation-name: opacity;
  animation-duration: 3s;
}

#result-red {
  display: block;
  border-radius: 25px;
  text-align: center;
  margin: 4px auto;
  background: rgb(200, 50, 70);
  animation-name: opacity;
  animation-duration: 3s;
}

input[type="submit"]{
  width: 100%;
  height: 50px;
  border: 1px solid;
  background: #2691d9;
  border-radius: 25px;
  font-size: 18px;
  color: #e9f4fb;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  margin: 30px 0;
}

input[type="submit"]:hover{
  border-color: #2691d9;
  transition: .5s;
}

.menu-box form {
  margin: 0 50px;
  padding-top: 30px;
}

input[type="file"] {
  display: none;
}

input[type="file"] ~ input[type="submit"] {
  margin-top: 10px !important;
}

.custom-file-upload {
  display: inline-block;
  width: 100%;
  height: 50px;
  border: 1px solid;
  background: #0b611a;
  border-radius: 25px;
  font-size: 18px;
  color: #e9f4fb;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  text-align:center;

}
#custom-file-upload-text {
  display: inline-block;
  margin: 11px;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 1s;
  visibility: hidden;
  opacity: 0;
}

.overlay:target {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  padding: 20px;
  min-height: 50vh;
  max-height: 80vh;
  width: 80vw;
  background: white;
  overflow-x: hidden;
  overflow-y: auto;
  transition: all 1s ease-in-out;
}

.popup-box .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 500ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.popup-box .close:hover {
  color: #2691d9;
}

.popup-box hr {
  margin: 20px 0;
}

.content {
  margin-left: auto;
  margin-right: auto;
  width: 80%;
}

#door-table {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
}

#door-table th {
  text-align: center;
  background: #2691d9;
  padding: 5px 0;
}
#door-table tr {
  text-align: center;
  padding: 5px 0;
}

#door-table td {
  text-align: center;
  padding: 5px 0;
}

#checkresult {
  margin-left: auto;
  margin-right: auto;
}

#checkresult ul{
  border: 2px solid red;
  border-radius: 10px;
  list-style-position: inside;
  text-align: center;
  padding: 10px 0;
  background-color: tomato;
}

#hide {
  display: none;
}

#show {
  visibility: visible;
}

.user-table {
  position: absolute;
  padding: 0 ;
  min-height: 500px;
  width: 80%;
  max-height: 80%;
  overflow:scroll;
  background-color: white;
  border-radius: 10px;
  box-shadow: 10px 10px 15px rgba(0,0,0,0.25);
}
.user-table div {
  
  position:sticky;
  left:0;
  top: 0;
  margin-top: 0;
  margin-bottom: 10px;
  width:100%;
  background-color: #2691d9;
}
.user-table ul {
  width: 100%;
  overflow-x: scroll;
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #333;
}
.user-table li {
  display: inline-block;
  cursor: pointer;
  width: 200px;
}

.user-table a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  
}
.user-table li a:hover {
  background-color: #111;
}

.user-table table {
  border-collapse: collapse;
  width: 100%;
  height: 100%;
}

.user-table td,th {
  border: 1px solid #dddddd;
  text-align: center;
  padding: 8px;
}

.user-table input[type="submit"] {
  margin: 5px 0 !important;
}

#add-user {
  display: none;
}