@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300&display=swap');

*{
    padding: 0;
    box-sizing: border-box;
    margin: 0;
}
body{
    background-color: whitesmoke;
    font-family: 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
}
.main,.main2{
    width: 80%;
    margin: 0 auto;
    overflow-x: hidden;
}
.main2{
    display: flex;
    justify-content: space-between;
    align-items: center;

}
.container{
    padding: 20px;
}
.container embed{
    height: 100vh;
}
.nav{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 8px -2px rgb(104, 101, 101);
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
}
.nav .logo img{
    height: 50px;
    width: 50px;
}
.nav table{
    border: 1px solid  #50830f;
    border-radius: 4px;
   border-right: none;
}
.nav table input,select{
    border: none;
    outline: none;
    padding: 5px 10px;
    font-size: 13px;
  
}
.nav table select{
 
    border-right: 1px solid #50830f;
}
.nav table button{
    border: none;
    outline: none;
    padding: 6px 10px;
    font-size: 15px;
    background-color:  #50830f;
    cursor: pointer;
    color: whitesmoke;
    font-weight: bold;
    margin-right: -3px;
}
table {  
    border-collapse: collapse;
}
th, td {
    padding: 0;
    overflow: hidden;
    background-color: white;
}
.header{
    width: 100%;
    height: 100vh;
    background-image: url("../images/books.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header .content{
    background-image: linear-gradient(to right top, #444444, rgba(148, 150, 148, 0.151));
    padding: 20px;
    border-radius: 4px;
}
.content h1,p{
    color: whitesmoke;
}
.content button{
    background-color: transparent;
    color: whitesmoke;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 5px 20px;
    margin: 20px 0;
   background-color: #50830f;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: 1s all ease;
}
.content button:hover{
    transform: scale(1.1);
}
.course{
    width: 100%;
    padding: 20px 0;

}
.course >h3{
    width: 100%;
    position: relative;
    padding: 5px 0;
}
.course >h3::after{
    content: '';
    width: 40px;
    left: 0;
    bottom: 0;
    position: absolute;
    background-color: #50830f;
    padding: 1px;
}
.row{
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    padding: 20px 0;
}
.col{
    padding: 10px;
    width: 24.5%;
    background-color: white;
    border-radius: 3px;
    box-shadow: 0 0 4px -2px rgba(194, 192, 192, 0.712);
}
.card {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}
.card .img {
    height: 50%;
    max-height: 50%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius:10px;
    overflow: hidden;
}
.card .img img{
     object-position: center;
    object-fit: cover; 
    height: 100%;
    width: 100%; 
    
}
.card h3{
    position: absolute;
    top: 5px;
    right: 0;
    background-color: rgba(245, 245, 245, 0.726);
    padding: 5px 20px;
    border-radius: 15px 0 0 15px;
}
.search{
    height: 100%;

}
.search ul{
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    height: 100%;
}
.search ul li{
    margin: 5px;
    height: 100%;
}
.search ul li a{
    text-decoration: none;
    color: black;
}

/* login */
  .wraper{
    width: 100%;
    height: 100vh;
    background-image: url("../images/net.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .login{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: whitesmoke;
    padding: 20px;
    border-radius: 3px;
    box-shadow: 0 0 8px -2px black;
    position: relative;
  }
  .login .logo img{
      width: 80px;
      height: 80px;
  }
  .login form{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
  }
  .login form input{
      padding: 5px 10px;
      border-radius: 3px;
      border: 1px solid gray;
      font-size: 15px;
      margin-bottom: 10px;
  }
  .login form label{
    margin: 5px 0;
    font-size: 16px;
    font-weight: bold;
}
.login form button{
    padding: 5px 10px;
    border-radius: 3px;
    border: 1px solid gray;
    font-size: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: .3s all ease;
}
.login form button:hover{
    transform: scale(1.1);
}
.login .back{
 width: 100%;
}
.login .back span{
    width: 100%;
    text-align: left;
    font-size: 12px;
}
.login .back span a{
    text-decoration: none;
    color: black;
}
.login .btn a{
    font-size: 13px ;
    margin-left: 15px;
    text-decoration: none;
}
#register{
    position: absolute;
    top: 3px;
    right: 3px;
    text-decoration: none;
    color: black;
    font-size: 13px;
}

.error{
    width: 100%;
    height: fit-content;
}
.danger{
    color:  tomato;
    font-size: 13px;
    padding: 6px 10px;
    background: rgb(221, 220, 220);
    width: 100%;
    position: relative;
    margin: 5px;
}
.danger::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    padding: 3px;
    background: tomato;
}
.success{
    color:  #50830f;
    font-size: 13px;
    padding: 6px 10px;
    background: rgb(221, 220, 220);
    width: 100%;
    position: relative;
    margin: 5px;
}
.success::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    padding: 3px;
    background: #50830f;
}
/* login end */
@media(max-width:768px){
    .content{
       width: 80%;
    }
   .header{
       margin-top: 60px;
   }
    .course h3{
        margin:0 20px ;
    }
    .row{
        flex-direction: column;
        align-items: center;
    }
    .col{
        width: 80%;
        margin: 5px 0;
    }
    .nav .logo img{
        width: 80px;
        height: 80px;
    }
    .main,.main2{
        width: 100%;
    }
    .nav table select{
     width: 60px;
    }
    .nav .main2{
        flex-direction: column;
        padding: 10px 0;
    }
}
