::-webkit-scrollbar {
    width: 0;
}

html, body {
    width: 100%;
    height: 100%;
}
body {
    background: #f5f7fa;
    /* background-color: #000; */
    padding: 40px 0;
    box-sizing: border-box;
    font-family: Montserrat, "sans-serif";
    color: #51565d;
}
.calendar {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    grid-template-rows: 50px;
    grid-auto-rows: 120px;
    overflow: auto;
}
.calendar-container {
    width: 90%;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fff;
    max-width: 1200px;
}
.calendar-header {
    text-align: center;
    cursor: pointer;
    padding: 20px 0;
    background: linear-gradient(to bottom, #fafbfd 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid rgba(166, 168, 179, 0.12);
}
.calendar-header h1 {
    margin: 0;
    font-size: 18px;
}
.calendar-header p {
    margin: 5px 0 0 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(81, 86, 93, .4);
}
.calendar-header button {
    background: 0;
    border: 0;
    padding: 0;
    color: rgba(81, 86, 93, .7);
    cursor: pointer;
    outline: 0;
}
.day {
    border-bottom: 1px solid rgba(166, 168, 179, 0.12);
    border-right: 1px solid rgba(166, 168, 179, 0.12);
    text-align: right;
    padding: 14px 20px;
    letter-spacing: 1px;
    font-size: 12px;
    box-sizing: border-box;
    color: #98a0a6;
    position: relative;
    /* pointer-events: none; */
    z-index: 1;
}
.day:hover{
    background-color: #4787ff91;
    color: white;

}
.today {
    color: #fff;
    background-color: #99a1a7;
}
.day--disabled:hover{
    background-color: white;
    color: rgba(152, 160, 166, 0.6);
}

.day-name:nth-of-type(n){
    grid-row: 1;
}
.day-name:nth-of-type(1){
    grid-column: 1;
}
.day-name:nth-of-type(2){
    grid-column: 2;
}
.day-name:nth-of-type(3){
    grid-column: 3;
}
.day-name:nth-of-type(4){
    grid-column: 4;
}
.day-name:nth-of-type(5){
    grid-column: 5;
}
.day-name:nth-of-type(6){
    grid-column: 6;
}
.day-name:nth-of-type(7){
    grid-column: 7;
}


/* sun day */
.day:nth-of-type(7n + 7) {
    border-right: 0;
}

/* row one */
.day:nth-of-type(n + 1):nth-of-type(-n + 7) {
    grid-row: 2;
    /* background-color: turquoise; */
}
/* row two */
.day:nth-of-type(n + 8):nth-of-type(-n + 14) {
    grid-row: 3;
}

/* row three */
.day:nth-of-type(n + 15):nth-of-type(-n + 21) {
    grid-row: 4;
}

/* row four */
.day:nth-of-type(n + 22):nth-of-type(-n + 28) {
    grid-row: 5;
}

/* row five */
.day:nth-of-type(n + 29):nth-of-type(-n + 35) {
    grid-row: 6;
}
/* row six */
.day:nth-of-type(n + 36):nth-of-type(-n + 42) {
    grid-row: 7;
}


/* cal one */
.day:nth-of-type(7n + 1) {
    grid-column: 1;
}
.day:nth-of-type(7n + 2) {
    grid-column: 2;
}
.day:nth-of-type(7n + 3) {
    grid-column: 3;
}
.day:nth-of-type(7n + 4) {
    grid-column: 4;
}
.day:nth-of-type(7n + 5) {
    grid-column: 5;
}
.day:nth-of-type(7n + 6) {
    grid-column: 6;
}
.day:nth-of-type(7n + 7) {
    grid-column: 7;
}
.day-name {
    font-size: 12px;
    text-transform: uppercase;
    color: #99a1a7;
    text-align: center;
    border-bottom: 1px solid rgba(166, 168, 179, 0.12);
    line-height: 50px;
    font-weight: 500;
}
.day--disabled {
    color: rgba(152, 160, 166, 0.6);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f9f9fa' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    cursor: not-allowed;
}
.task {
    border-left-width: 3px;
    padding: 8px 12px;
    margin: 10px;
    border-left-style: solid;
    font-size: 14px;
    position: relative;
    z-index: 3;
}
.task--warning {
    border-left-color: #fdb44d;
    grid-column: 4 / span 3;
    grid-row: 3;
    background: #fef0db;
    align-self: center;
    color: #fc9b10;
    margin-top: -5px;
}
.task--danger {
    border-left-color: #fa607e;
    grid-column: 2 / span 3;
    grid-row: 3;
    margin-top: 15px;
    background: rgba(253, 197, 208, 0.7);
    align-self: end;
    color: #f8254e;
}
.task--info {
    border-left-color: #4786ff;
    grid-column: 6 / span 2;
    grid-row: 5;
    margin-top: 15px;
    background: rgba(218, 231, 255, 0.7);
    align-self: end;
    color: #0a5eff;
}
.task--primary {
    cursor: pointer;
    background: #4786ff;
    border: 0;
    border-radius: 4px;
    grid-column: 3 / span 3;
    grid-row: 4;
    align-self: end;
    color: #fff;
    box-shadow: 0 10px 14px rgba(71, 134, 255, 0.4);
}
.task__detail {
    visibility: hidden;
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    max-width: 300px;
    word-wrap: break-word;
    background: #fff;
    border: 1px solid rgba(166, 168, 179, 0.2);
    color: #000;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    z-index: 2;
}
.task--primary:hover .task__detail{
    visibility: visible;
}
.task__detail:after, .task__detail:before {
    bottom: 100%;
    left: 30%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
.task__detail:before {
    border-bottom-color: rgba(166, 168, 179, 0.2);
    border-width: 8px;
    margin-left: -8px;
}
.task__detail:after {
    border-bottom-color: #fff;
    border-width: 6px;
    margin-left: -6px;
}
.task__detail h2 {
    font-size: 15px;
    margin: 0;
    color: #51565d;
}
.task__detail p {
    margin-top: 4px;
    font-size: 12px;
    margin-bottom: 0;
    font-weight: 500;
    color: rgba(81, 86, 93, .7);
}
















.form-element{
    color: #333;
    grid-column: 1;
}

.form-element .form-leble{
    width: 100%;
}

.form-submit button{
    width: 49%;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition-duration: .5s
}

.form-submit button[type=submit]:hover{
    background-color: lightseagreen;
    box-shadow: 0px 2px 20px rgba(32, 178, 170,.3);
}
.form-submit button[type=submit]:active{
    background-color: rgb(177, 177, 177);
}
.form-submit #delete:hover{
    background-color: rgb(178, 32, 81);
    border: hidden;
    box-shadow: 0px 2px 20px rgba(206, 38, 38, 0.609);
}
.form-submit #delete:active{
    background-color: rgb(177, 177, 177);
}
.form-submit button:hover{
    background-color: rgb(151, 151, 151);
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.3);
}
.form-submit button:active{
    background-color: rgb(177, 177, 177);
}

input[type=text], textarea{
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    
    transition-duration: .5s
}

.show{
    transition-duration: .1s;
    opacity: 1;
}
.nonshow{
    transition-duration: .1s;
    opacity: 0;
    visibility: hidden;
}


#option,#addbox,#detail{
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2);
    border-top-width: 3px;
    padding: 8px 12px;
    margin: 10px;
    border-top-style: solid;
    font-size: 14px;
    position: relative;
    border-top-color: #000000;
    grid-column: 3 / span 3;
    grid-row: 1;
    background: #f1f1f1;
    color: #00000000;
    z-index: 5;
    border-radius: 10px;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.3);
}
#addbox,#detail{
    display: grid;
    grid-row: 1/ span 4;
    overflow: scroll;
}

#selectMonth{
    display: unset;
}

#selectYear{
    display: un;
}
#smonth,#syear{
    background-color: #f1f1f1;
    cursor: pointer;
}
#smonthActive,#syearActive{
    background-color: rgb(66, 66, 66);
    color: rgb(64, 189, 176);
    box-shadow: 0 2px 10px rgba(64, 189, 176,.5);
    cursor: not-allowed;
    
}
#smonth:hover,#syear:hover {
    background-color: rgb(66, 66, 66);
    color: rgb(64, 189, 176);
}



.dropdown-content {
    /* grid-template-rows: 50px; */
    /* grid-auto-rows: 120px; */
    position: relative;
    background-color: #f1f1f1;
    min-width: 160px;
    z-index: 1;
    top: 0%;
  }
  .dropdown-content:nth-of-type(1){
    grid-column: 1;
}.dropdown-content:nth-of-type(2){
    grid-column: 2;
}

  .dropdown-content a, #addbox a,#detail a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
  }
  .dropdown-content h1 ,#addbox h1, #detail h1 {
    color: black;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    display: block;
  }

  #overlayed{
    transition-duration: .3s;
    display: block;
    background-color: rgba(0, 0, 0, 0.3);
    top: 0%;
    left: 0%;
    right: 0%;
    bottom: 0%;
    width: 100hv;
    position: fixed;
    z-index: 4;        
  }
  #overlay{
    transition-duration: .3s;
    /* display: none; */
    background-color: rgba(0, 0, 0, 0);
    top: 100%;
    left: 0%;
    right: 0%;
    bottom: 0%;
    width: 100hv;
    position: fixed;
    z-index: 4;        
  }

  #adkfs{
      grid-column: 1;
      grid-row: 6;
  }