* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #435165;
  margin: 0;
}

.login, .register {
  width: 400px;
  background-color: #ffffff;
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  margin: 100px auto;
}

.login h1, .register h1 {
  text-align: center;
  color: #5b6574;
  font-size: 24px;
  padding: 20px 0 20px 0;
  border-bottom: 1px solid #dee0e4;
}

.login .links, .register .links {
  display: flex;
  padding: 0 15px;
}

.login .links a, .register .links a {
  color: #adb2ba;
  text-decoration: none;
  display: inline-flex;
  padding: 0 10px 10px 10px;
  font-weight: bold;
}

.login .links a:hover, .register .links a:hover {
  color: #9da3ac;
}

.login .links a.active, .register .links a.active {
  border-bottom: 3px solid #3274d6;
  color: #3274d6;
}

.login form, .register form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
}

.login form label, .register form label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 12%;
  height: 50px;
  background-color: #3274d6;
  color: #ffffff;
}

.login form input[type="password"], .login form input[type="text"], .login form input[type="email"], .register form input[type="password"], .register form input[type="text"], .register form input[type="email"] {
  width: 80%;
  height: 50px;
  border: 1px solid #dee0e4;
  margin-bottom: 20px;
  padding: 0 15px;
}

.login form input[type="submit"], .register form input[type="submit"] {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  background-color: #3274d6;
  border: 0;
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.2s;
  border-radius: 0;
  -webkit-border-radius: 0;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.login form input[type="submit"]:hover, .register form input[type="submit"]:hover {
  background-color: #2868c7;
  transition: background-color 0.2s;
}

.login form #rememberme, .register form #rememberme {
  width: 100%;
  height: auto;
  padding: 5px 20px;
  background-color: transparent;
  color: #000;
  justify-content: flex-start;
}

.login form #rememberme input, .register form #rememberme input {
  transform: scale(1.3);
  margin-right: 7px;
}

.login form .msg, .register form .msg {
  padding: 0 20px;
  width: 100%;
}

.login form > a, .register form > a {
  text-decoration: none;
  color: #5b6574;
  width: 100%;
  padding: 5px 20px;
}

.login form > a:hover, .register form > a:hover {
  color: #394049;
}

.navtop {
  background-color: #2f3947;
  height: 60px;
  width: 100%;
  border: 0;
}

.navtop div {
  display: flex;
  margin: 0 auto;
  width: 1000px;
  height: 100%;
}

.navtop div h1, .navtop div a {
  display: inline-flex;
  align-items: center;
}

.navtop div h1 {
  flex: 1;
  font-size: 24px;
  padding: 0;
  margin: 0;
  color: #eaebed;
  font-weight: normal;
}

.navtop div a {
  padding: 0 20px;
  text-decoration: none;
  color: #c1c4c8;
  font-weight: bold;
}

.navtop div a i {
  padding: 2px 8px 0 0;
}

.navtop div a:hover {
  color: #eaebed;
}

body.loggedin {
  background-color: #f3f4f7;
}

.content {
  width: 1000px;
  margin: 0 auto;
}

.content h2 {
  margin: 0;
  padding: 25px 0;
  font-size: 22px;
  border-bottom: 1px solid #e0e0e3;
  color: #4a536e;
}

.content .block {
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
  margin: 25px 0;
  padding: 25px;
  background-color: #fff;
}

.content .block table {
  width: 100%;
}

.content .block table td {
  overflow: hidden;
  /*padding: 5px;*/
}

.content .block table td:first-child {
  font-weight: bold;
  color: #4a536e;
  /*padding-right: 15px;*/
}

.content .block table td:last-child {
  word-break: break-all;
}

.content .block p {
  padding: 5px;
  margin: 0 0 10px 0;
}

.content.profile form label {
  display: block;
  padding: 10px 0 5px 0;
}

.content.profile form input[type="text"], .content.profile form input[type="password"], .content.profile form input[type="email"] {
  padding: 10px;
  width: 250px;
  border: 1px solid #ddd;
}

.content.profile .profile-btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  background-color: #3274d6;
  margin: 15px 5px 0 0;
  padding: 10px 15px;
  border-radius: 0;
  -webkit-border-radius: 0;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.content .year {
  font-size: 18px;
}
.content .year_title {
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  padding: 5px 10px;
  margin: 0;
  background: #ccc;
  font-size: 18px;
  user-select: none;
}
.content .year_title:hover {
  color: #333;
  background: #ddd;
  cursor: pointer;
}
.content .year_content {
  margin: 0 10px 10px 10px;
  font-size: 14px;
}
.content .month {
  font-size: 14px;
  margin: 2px 0 0 0;
  /*display: none;*/
}
.content .month_title {
  color: #999;
  border-radius: 5px;
  font-weight: bold;
  padding: 5px 10px;
  margin: 0;
  background: #ddd;
  font-size: 14px;
  user-select: none;
}
.content .month_title:hover {
  background: #eee;
  cursor: pointer;
}
.month_content {
  background: #eee;
  border-radius: 0px 0px 10px 10px;
}
.month_content table {
  table-layout: fixed;
}
.month_content table tr td, .month_content table tr th {
  max-width: 14%;
  vertical-align: top;
  padding: 0px;
}
.month_content table tr th {
  font-size: 12px;
  padding: 2px;
  color: #999;
  text-overflow: ellipsis;
  overflow: hidden;
  user-select: none;
}
.content .day {
  color: #333;
  padding: 0;
  margin: auto;
  word-break: normal;
  border-radius: 10px;
  font-size: 12px;
  text-align: center;
  border: solid 1px #eee;
  background: #fff;
}
.content .day_number {
  color: #666;
  font-size: 12px;
  min-width: 12px;
  max-width: 12px;
  height: 8px;
  text-align: right;
  white-space: nowrap;
  overflow: visible;
  margin: 0;
  padding: 0;
  font-weight: bold;
  user-select: none;
}
.content .day_content {
  display: flex;
  width: calc(100%);
  margin: 2px;
  padding: 0;
  gap: 2px;
  flex-wrap: wrap;
  font-size: 12px;
}
.content .day_add {
  width: 20px;
  margin: 0 8px 2px auto;
  padding: 0;
  font-weight: bold;
  background: #ccc;
  text-align: center;
  border-radius: 10px;
  font-size: 14px;
  border: 0;
  order: 9999;
  user-select: none;
}
.content .day_add:hover, .content .day_add:focus {
  background: #eee;
  cursor: pointer;
  border: 0;
}
.content .time {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  font-weight: normal;
  order: 6666;
  padding: 0;
  margin: 0 4px 0 8px;
  width: calc(100% - 16px);
  text-align: center;
  background: #eee;
  border-radius: 5px;
}
.content .time .type {
  width: 20px;
  font-size: 12px;
  font-weight: bold;
  background: #ccc;
  text-align: center;
  border-radius: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-indent: 0px;
  text-overflow: '';
  user-select: none;
}
.content .time .type * {
  padding: 0;
  margin: 0;
  border: 0;
  font-size: 10px;
  font-weight: bold;
}
.content .time .type:focus, .content .time .type:hover {
  background: #eee;
  cursor: pointer;
  border: 0;
}
.content .time .start, .content .time .end {
  margin: 0 1px;
  padding: 0;
  border: 0;
  font-size: 14px;
  width: 36px;
  border-radius: 10px;
  text-align: center;
  background: none;
  color: #666;
}
.content .time .error, .content .time .error {
  font-weight: bold;
  color: #c33;
}
.content .time .preset, .content .time .preset {
  color: #ccc;
}
.content .time .start {
  border-right: 1px #ccc solid;
}
.content .time .end {
  border-left: 1px #ccc solid;
}
.content .time .start:focus, .content .time .end:focus, .content .time .start:hover, .content .time .end:hover {
  background: #fff;
  cursor: pointer;
  border: 0;
}
.content .time .start::placeholder, .content .time .end::placeholder {
  color: #ccc;
  font-weight: normal;
}

.content.profile .profile-btn:hover {
  background-color: #2868c7;
}

@media screen and (max-width: 400px) {
  .login, .register {
    width: 95%;
  }
}

@media screen and (max-width: 1000px) {
  .navtop {
    height: auto;
    padding: 10px;
  }
  .navtop div {
    flex-flow: wrap;
    width: 100%;
  }
  .navtop div h1 {
    display: block;
    flex-basis: 100%;
  }
  .navtop div a {
    padding: 10px 0;
    flex-basis: 50%;
  }
  .content {
    padding: 10px;
    width: 100%;
  }
  .content form input[type="text"], .content form input[type="password"], .content form input[type="email"] {
    width: 100%;
  }
}
