a:hover, a:visited, a:link, a:active
{
    text-decoration: none;
}


body{
    background-color: lightgrey;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ------------- HEADER ------------- */ 

header{
    display: block;
    min-height: 42px;
    background-color: grey;
    border-bottom: 1px solid black;
    transition: linear height;
}

header div{
    padding: 5px 0 5px 0;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

header div span{
    color: bisque;
    text-shadow: 0 0 5px black;
    display: inline-block;
    margin: 0.25px;
    -webkit-touch-callout: none; 
    -khtml-user-select: none; 
      -moz-user-select: none; 
       -ms-user-select: none; 
           user-select: none; 
}

header #headerLogo{
    width: 100%;
    max-width: 400px;
    max-height: 30px;
}

header #schoolTab, #adminTab, #userTab{
    display: none;
}


header #schoolTab span, #adminTab span{
    cursor: pointer;   
    margin: 2.15px;
    display: inline-block;
}

header #schoolTab span:hover, header #adminTab span:hover{
    text-shadow: 0 0 3px black,0 0 4px black, 0 0 5px black,0 0 6px black
}

header #userTab{
    text-align: right;
    font-weight: normal;
    font-size: 14px;
    text-shadow: none;
    height: 40px;
}

header #userTab #logoutBotton{
    margin: 5px;
    cursor: pointer;
    color: lightblue
}

header #userTab #logoutBotton:hover{
    font-weight: bold;
}



/* ------------- LOG-IN ------------- */ 

#loginBox{
    max-width: 600px;
    margin: 150px auto
}

#loginBox div{
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 16px;
}

#loginBox input{
    width: 100%;
    align-content: right;
    border-radius: 10px;
    font-weight: normal;
    outline: none;
}

#loginBox button{
    width: 100%;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(#f1f1f1, #d8d8d8);
    font-weight: bold;
    outline: none;
    margin-bottom: 5px;
}

#loginBox #loginStatus{
    padding: 15px 0 15px 0;
    text-align: center;
    font-size: none;
    animation:ease-out animatezoom;
    animation-duration: 500ms;
}
@keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)}}

#loginBox #guestNote{
    margin-top: 50px;
    text-align: center;
    font-weight: normal;
}




/* ------------- CMS BODY ------------- */ 
    #cmsBody{
        display: none;
        padding: 0;
        margin: 30px 5px 100px 5px;
    }

    #cmsBody #leftTab h3, #rightTab h3{
        display: inline;
    }

    #cmsBody #leftTab hr, #rightTab hr{
        margin: 5px auto;
        border: 2px solid black;
    }

    #cmsBody #coursesList, #studentsList{
        overflow: auto;
        cursor: pointer;
    }

    #cmsBody #leftTab .administratorImage{
        height: 100px;
        width: 100px;
        margin-right: 5px;
    }

    #cmsBody #mainContainer #adminViewImage{
        height: 150px;
        width: 150px;
        cursor: zoom-in;
    }

    #cmsBody #studentsList table, #coursesList table, #administratorsList table {
        width: 100%;
        padding: 5px;
        margin: 5px 0;
        border: 1px solid black;
        background-color: whitesmoke;
    }

    #cmsBody #studentsList table:hover, #coursesList table:hover, #administratorsList table:hover{
        background-color: floralwhite;
    }

    #cmsBody coursesList table .desc{
        padding: 3px;
    }
    


    /* -------- CMS Main Container -------*/

    #cmsBody #mainContainer{
        padding: 0;
        overflow: auto;
        border: 1px solid black;
    }

    #cmsBody #mainContainer table#totalCoursesAndStudents, table#totalAdminsTable, table#addEditWindowTable{
        width: 100%;
        font-size: 22px;
        text-align: center;
    }

    #cmsBody #mainContainer table#totalCoursesAndStudents #firstRow, 
             table#totalAdminsTable #firstRow, table#addEditWindowTable tr{
        margin: 10px 0;
        color: white;
        font-size: 24px;
        background-color: grey;
        text-shadow: 0 0 3px black, 0 0 6px black;
    }

    #cmsBody #mainContainer table#totalCoursesAndStudents #firstRow td, 
             table#totalAdminsTable #firstRow td, table#addEditWindowTable tr td{ 
        height: 45.33px;
    }
    #cmsBody #mainContainer table#totalCoursesAndStudents #secondRow td, 
             table#totalAdminsTable #secondRow td{
        padding-top: 10px;
        font-size: 26px;
    }

    #cmsBody #mainContainer #studentShowTopLine, #courseShowTopLine, #adminShowTopLine, #addEditWindowTitle{
        color: white;
        padding: 10px;
        background: grey;
        font-size: 18px;
        margin-bottom: 20px;
    }

    #cmsBody #mainContainer .col-sm-9 h2, .col-sm-6 h2{
        margin-top: 0;
    }

    #cmsBody #mainContainer #studentShowTopLine button,#courseShowTopLine button,
             #adminShowTopLine button, #addEditWindowTitle button{
        float: right;
        width: 100px;
        color: black;
        font-size: 14px;
    }

    #cmsBody #mainContainer img#studentViewImage{
        height: 128px;
        width: 128px;
        cursor: zoom-in;
    }

    #cmsBody #mainContainer #courseStudentsBox{
        margin-top: 20px;
        margin-right: 10px;
        overflow: auto;
        width: 99%;
    }

    #cmsBody #mainContainer #courseStudentsBox img{
        height: 50px;
        width: 50px;
    }

    #cmsBody #mainContainer #courseStudentsBox h4{
        background: lightgray;
        position: sticky;
        top: 0;
        margin: 0;
        padding-bottom: 10px;
    }

    #cmsBody #mainContainer .studentCourseRow{
        background-color: auto;
        transition: background-color 0.5s;
    }

    #cmsBody #mainContainer .studentCourseRow:hover{
        cursor: pointer;
        font-weight: bold;
        background-color: whitesmoke;
    }


    #cmsBody #mainContainer .courseStudentRow:hover{
        cursor: pointer;
        font-weight: bold;
        background-color: whitesmoke;
    }

    #cmsBody #mainContainer .courseImageInStudentView{
        height: 30px;
        width: 30px;
        margin-right: 10px;
    }

    #cmsBody #mainContainer #uploadImageId{
        height: 100px;
        width: 100px;
    }

    #cmsBody #mainContainer .studenFormInputs, .courseFormInputs{
        width: 80%;
    }

    #cmsBody #mainContainer #courseDescriptionInput{
        resize: none;
        height: 150px;
    }

    #cmsBody #mainContainer #progressBar{
        width: 100px;
        height: 10px;
        display: none;
        margin-top: 5px;
    }

    #cmsBody #mainContainer #courseCheckList{
        overflow: auto;
        position: absolute;
        bottom: 5px;
        top: 330px;
        left: 25%;
        right: 0;    }

    #cmsBody #mainContainer #courseCheckList table{
        margin: 5px 0;
    }


    #cmsBody #mainContainer #courseCheckList img{
        height: 30px;
        width: 30px;
        margin-right: 5px;
    }

    #cmsBody #mainContainer #courseCheckList input[type='checkbox']{
        position: absolute;
        right: 5px;
        transform: scale(1.5);
    }

    #studentFormPopout{
        border: 10px solid gray ;
        background: lightgray;
        z-index: 100;
        padding: 20px;
        position: fixed;
        right: 20%;
        left: 20%;
        top: 20%;
        text-align: center
    }

    #studentFormPopout button{
        width: 80px;
        margin-top: 15px;
    }

    #cmsBody #coursesList .leftRecordPart{
        width: 60px;
    }

    #cmsBody #coursesList .courseImage, .studentImage{
        height: 50px;
        width: 50px;
        transition: width 500ms, height 500ms;
    }
    
    .coursesList{
        color: black;
        text-decoration: none;
    }

    .studentsList{
        color: black;
        text-decoration: none;
    }

    .studentsList:hover .studentImage{
        height: 100px;
        width: 100px;

    }


    #cmsBody .plusIcons, .plusIconsAdmin{
        height: 20px;
        float: right;
    }

    #cmsBody .plusIcons:hover , .plusIconsAdmin:hover{
        box-shadow: 0 0 5px black;
    }


    #cmsBody #addStudentForm .row{
        margin: 0;
        padding: 5px 0;
    }


    #cmsBody #addStudentForm input[type="file"]:hover{
        cursor: pointer;
    }



    /* -------- IMAGE LIGHTBOX -------*/

    body #popBackground{
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0.75;
        z-index: 1001;
        position: fixed;
        background: black;
    }

    body #popImageFrame{
        position: fixed;
        top: 15%;
        left: 35%;
        right: 35%;
        z-index: 1002;
        border: 3px solid black;
        border-radius: 10px;
    }
    
    body #popImageFrame #picture{
        width: 100%;
        border-radius: 10px;
    
    }
    
    body #popImageFrame .closeIcon{
        position: absolute;
        top: -1px;
        right: -1px;;
        z-index: 11;
        width: 40px;
        opacity: 0.5;
        transition: opacity 0.5s ease-out;
    
    }
    
    body #popImageFrame .closeIcon:hover{
        opacity: 1;
    }




/* ------------- FOOTER ------------- */ 

footer{
    padding: 3px;
    position: fixed;
    z-index: 1000;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: darkgrey;
}





/* ------------- MEDIA QUERIES ------------- */ 

@media screen and (max-width: 768px) {
    
    /* ------- HEADER -------*/
    
    header #headerLogo{
    margin: 0px auto;
    max-height: 250px;
    }

    header #userTab span{
        vertical-align: middle;
        font-size: 120%;
    }

    header #userTab #logoutBotton{
        float: left;
    }



    /* ------- LOG-IN -------*/

    form#loginBox{
        margin: 50px auto;
        text-align: center;
    }

    form#loginBox .col-sm-3{
        font-size: 22px
    }

    form#loginBox input{
        height: 35px;
    }

    form#loginBox button{
        height: 40px;
        margin-top: 15px;
        font-size: 24px;
    }


    /* ------- CMS BODY -------*/

    #cmsBody #mainContainer #courseCheckList{
        position: static;
    }  
    
    body #popImageFrame{
        top: 5%;
        left: 2%;
        right: 2%;
        z-index: 10;
        border: 3px solid black;
        border-radius: 10px;
    }
    
}