@charset "UTF-8";
@font-face {
  font-family: 'SAO';
  src: url(sword_art_online.ttf);
}
*:not(header) {
    margin: 0;
    padding: 0;
    font-size: medium;
    box-sizing: border-box;
    font-family: 'SAO';
  }

  header {
    position: fixed;
    top:0;
    right:0;
    left:0;
    background: black;
    height: 3em;
    z-index: 2;
  }

* {
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    margin: 0;
    padding:0;
}


/*nav bar*/
/* nav {
    width: 100%;
    height: 80px;
    background:black;
} */

/*Sword Art Online*/
label.logo {
    color: white;
    font-size: 35px;
    line-height: 45px;
    padding: 0 100px;
    /* font-weight: bold; */
}

nav ul {
    display: flex;
    justify-content:space-around; 
    align-items: center;
    height: 3em;
    float: right;
    margin-right: 20px;
}

nav ul li {
    position: relative;
    display: inline-block;
    line-height: 45px;
    margin:0 5px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    padding: 7px 13px;
    border-radius: 3px;
    text-transform: uppercase;
}

.checkbtn {
    font-size: 30px;
    color:white;
    float: right;
    line-height: 45px;
    margin-right: 40px;
    cursor:pointer;
    display: none;
}
#check{
    display: none;
}
/*------------------------------------------------------------*/
body.in {
   
  background-image: url("../img/sao1.jpg");
}

body.crud {
  background-image: url("../img/sao3.jpg");
}

body.out {
  
  background-image: url("../img/sao2.jpg");
}
body.login {
   
  background-image: url("../img/castle.jpg");
}
body.signup {
   
  background-image: url("../img/RubyPalace.jpg");
}
body.warning {
   
  background-image: url("../img/warning.png"),url("../img/castle.jpg");
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #222;
    -webkit-background-size: cover;
	  -moz-background-size: cover;
	  -o-background-size: cover;
	  background-size: cover;
    background-attachment: fixed;
  }
/*---------------------crud page-------------------------*/

table{
  border-color: #edebeb;
  box-sizing: border-box;
  padding: 2px;
  border: 5px;
  width:600px;
  line-height:40px;
}
th, td, .outfix {
  margin-top: 50px;
  color: rgba(255, 255, 255, 0.8);
  font-weight:500;
  text-align: center;
  letter-spacing: 0.1em;
  font-size:1.5rem;
}
canvas {
  position: absolute;
  top: 0;
  left: 0;
  right:0;
  opacity: 0.5;
}
section.table {
  position: relative;
  background:rgba(4, 4, 4, 0.6);
  border-radius: 8px;
  z-index: 1;
}
/*--------------------------crud page ending-----------*/
.box {
    overflow: hidden;
    position: relative;
    width: 400px;
    height: 520px;
    background: #1c1c1c;
    border-radius: 8px;
    opacity: 0.8;
  }

  .box-edit{
    font-size: 1.5rem;
  }
  .box form {
    position: absolute;
    inset: 4px;
    background: #222;
    padding: 50px 40px;
    border-radius: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
  }
  .box form h1, h2, button, .header-signup, .echo, .indexaddimg {
    color: #fff;
    font-weight:500;
    text-align: center;
    letter-spacing: 0.1em;
    font-size:1.5rem;
  }
  p.echo{
    position: absolute;    
    bottom: 5vh;
  }
  .box form .inputBox {
    position: relative;
    width: 310px;
    margin-top: 35px;
  }
  .box form .inputBox input {
    position: relative;
    width: 100%;
    padding: 20px 10px 10px;
    background: transparent;
    outline: none;
    border: none;
    box-shadow: none;
    color: #23242a;
    font-size: 1em;
    letter-spacing: 0.05em;
    z-index: 2;
    transition: 0.3s;
  }
  .box form .inputBox label {
    position: absolute;
    left: 0;
    padding: 10px 0px 10px;
    pointer-events: none;
    color: #8f8f8f;
    font-size: 1em;
    letter-spacing: 0.05em;
    transition: 0.5s;
  }
  .box form .inputBox input:valid ~ label,
  .box form .inputBox input:focus ~ label {
    color: #fff;
    font-size: 0.75em;
    transform: translateY(-34px);
  }
  .box form .inputBox i {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 4px;
    overflow: 0.5s;
    pointer-events: none;
  }
  .box form .inputBox input:valid ~ i,
  .box form .inputBox input:focus ~ i {
    height: 42px;
  }

  .box form button[type="submit"], .indexaddimg {
    padding: 9px 25px;
    cursor: pointer;
    /* font-size: 0.9em;
    font-weight: 600; */
    width: 40%;
    margin-top: 20px;
    margin-left: 95px;
    position: relative;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
    background-size: 400%;
    border-radius: 10px;
  }

  .borderLine {
    position: absolute;
    top: 0;
    inset: 0;
  }
  @keyframes animate {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }
  .box::before,
  .box::after,
  .borderLine::before,
  .borderLine::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 400px;
    height: 520px;

    background: linear-gradient(
      90deg,
      transparent,
      #03a9f4,
      #f441a5,
      #ffeb3b,
      #03a9f4
    );
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
  }
  .box::after {
    animation-delay: -3s;
  }
  .borderLine::before {
    background: linear-gradient(
      90deg,
      transparent,
      #03a9f4,
      #f441a5,
      #ffeb3b,
      #03a9f4
    );
    animation-delay: -1.5s;
  }
  .borderLine::after {
    background: linear-gradient(
      90deg,
      transparent,
      #03a9f4,
      #f441a5,
      #ffeb3b,
      #03a9f4
    );
    animation-delay: -4.5s;
  }

  @keyframes animateLogin {
    0% {
      background-position: 0 0;
    }
    100% {
      background-position: 400% 0;
    }
  }
 
  .box form button[type="submit"]:hover, .indexaddimg:hover {
    animation: animateLogin 8s linear infinite;
  }
  
  .box form button[type="submit"]:before, li>a:before, .indexaddimg:before {
    content: "";
    position: absolute;
    left: -5px;
    top: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
    background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
    background-size: 400%;
    border-radius: 10px;
    opacity: 0;
    transition: all 1s;
  }

  .box form button[type="submit"]:hover:before, a:hover:before, .indexaddimg:hover:before {
    filter: blur(20px);
    opacity: 1;
  }

  a:hover{
    color: darkturquoise;
  }
  a:active{
    color:pink
  }
  /*------------------------------------------------------------------------------------*/
 /*indexBtn*/
  .links {
    display:flex;
  }
  .box form button.indexBtn, .indexaddimg {
   margin-left: auto;
   margin-right: auto;
}
input[type="file"] {
  display: none;
}
/*login page*/

/*signup page*/
.error{color:#FF0000;}

/*footer*/
footer{
  position:fixed;
  right: 50px;
  top: 700px;
  color: white;
}

@media (max-width:952px){
    nav ul{
        display: block;
        height: 100vh;
        width: 100%;
    }
    label.logo {
        font-size: 30px;
        padding-left: 50px;
    }
    nav ul li a {
        font-size: 16px;
    }
}
@media (max-width:858px){
    .checkbtn {
        display: block;
    }
    nav ul {
        position: fixed;
        height: 100vh;
        width: 100%;
        background: #222;
        top: 48px;
        right:-110%;
        text-align: center;
        transition: all .5s;     
    }
    nav ul li {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 35%;
        justify-content: center;
        margin-top:50px;
        line-height: 30px;
    }
    nav ul li a {
        font-size: 20px;
    }
    a:hover,a.active {
        background: none;
        color:hotpink;
    }
    #check:checked ~ul{
        right:-20px;
    }
}