/* Table of contents for calendar website


/*------------------1. General -----------------*/
/*------------------2. Typography -----------------*/
/*------------------3. Nav bar -----------------*/
/*------------------4. Events -----------------*/
/*------------------5. Responsive Design -----------------*/





/*------------------1. General -----------------*/
body{
    margin: 0;
    padding: 0;
    animation: boogaman 10s infinite;
}

@keyframes boogaman {
    0% {background-color: rgb(255, 0, 0);}
    25% {background-color: rgb(0, 255, 55);}
    50% {background-color: #1900ff;}
    75% {background-color: rgb(229, 255, 0);}
    100%{background-color:rgb(177, 10, 255);}
}


#wrap{
  display: block;  
  margin: auto;
  width: 80%;
  height:1000px;
  background: #fff;
}

#calendar{
    width: 100%;
}

#calendar ul{
    list-style: none;
    padding: 0;
    margin: 0;
    clear: both;
    width: 100%;
}

#calendar li{
    display: block;
    float: left;
    width: 14.2857142857%;
    padding: 5px;
    box-sizing: border-box;
    border: 1px solid #5fa86f;
    margin-right: 0px;
    margin-bottom: -1px;
    background-color: #fdd379;
}

#weekdays{
    height: 40px;
    background-color: rgb(252, 209, 154);
    
}

#weekdays li{
   color: rgb(0, 10, 10); 
   text-align: center;
   text-transform: inherit;
   line-height: 20px;
   padding: 10px 6px;
}
/* this sets the size of the days */
.days li{
    height: 170px; 
}

li.weekend{
    background-color: #eccf91;

}

.othermonth{
    background-color: #eccf91
}

.date{
    text-align: center;
    margin-bottom: 5px;
    padding: 5px;
    background-color: rgb(239, 255, 252);
    color: black;
    width: 20px;
    border-radius: 56%;
    float: right;
}

.event{
    clear: both;
    display: block;
    font-size: 14px;
    background-color: #d6b878;
    border: 1px solid;
    border-radius: 4px;
    padding: 5px;
    margin-top: 40px;
}

.event:hover{
    background-color: #1900ff;
    color: aqua;
    cursor: pointer;
}



/*------------------2. Typography -----------------*/
/*google fonts*/
h1, h2, h3, h4,h5,h6{
 font-family: 'Kanit', sans-serif;
}









/*------------------3. Nav bar -----------------*/
.nav{
    list-style: none;
    font-weight: bold;
    width: 100%;
    position: relative;
    
}
.nav li{
    float: left;
    padding-right: 10px;
    position: relative;
    

}
.nav a{
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    background-color: lightcoral;
    
}
.nav a:hover{
    background-color: rgb(98, 193, 161);
    color: black;
    cursor: pointer;
}

.nav a.active{
    background-color: rgb(187, 76, 227);
    color: aqua;
}
/* nav bar */
.topNav {
    overflow: hidden;
    background-color: #6b6464;
    margin-bottom: 35px;
    width: 100%;
    text-align: center;
}
.topNav a:first-child{
    margin-left: 35%;
}


.topNav a{
    float: left;
    display: block;
    color: #b3acac;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 19px;

}

.topNav a:hover{
    background-color: blue;
    color: white;
}

.topNav .icon {
    display: none;
}

.topNav a.active{
    background-color: rgb(27, 27, 75);
    color: aliceblue;
}

/*media query to make nav bar vanish*/
@media screen and (max-width: 600px){
    .topNav a:not(:first-child){
        display: none;
    }
    .topNav a.icon{
        margin-left: 0;
        float: right;
        display: block;
    }
    .topNav.responsive{
        position: relative;
    }
    .topNav.responsive .icon{
        position: absolute;
        right: 0;
        left: 0;
    }
    .topNav.responsive a{
        float: none;
        display: block;
        text-align: left;
    }
}

/* END nav */

/*------------------4. Events -----------------*/








/*------------------5. Responsive Design -----------------*/
/* media query*/
@media(max-width:768px){
    #calendar .weekdays, #calendar .other-month{
        display:none;
    }
    #calendar li{
        height: auto !important;
        border: 1px solid #fff;
        width: 100%;
        padding: 10px;
        margin-bottom: -1px;
    }

#calendar .date{
    float: none;
    }
   
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #333;
    }

    .nav.show{
        display: flex;
    }


}
    









