/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    line-height: 1.4;

}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html, body * {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
}

html {
    overflow-y: scroll; /*This ensures the scrollbar is visible even when it's not needed. This prevents the scrollbar from appearing when you switch weeks and shifting the page layout. */
}

html.noscroll {
    position: fixed;
    overflow-y: scroll;
    width: 100%;
}

.no-select
{
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

body.modal {
    overflow: hidden;
    position: fixed;
}

input {
    border: 1px solid #999999;
}


#header {
    background: #eee;
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.2), 0 4px 4px 0 rgba(0, 0, 0, 0.19);
    padding: 10px;
    position: relative;
}

#logo {
    max-width: 110px;
    padding-left: 2px;
    padding-top: 2px;
    margin-right: 30px;
}

#greeting {
    font-size: 20px;
    display: none;
    position: absolute;
    bottom: 2px;
    right: 112px;
}

#dummy_text_fa, #dummy_text_arrows {
    position: absolute;
    right: 110%;
}

/*progress bar spinner*/
#spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    margin: -20px 0 0 -20px;
    border: 10px solid #e6e6e6;
    border-radius: 50%;
    border-top: 10px solid #4CDD00;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 0.75s linear infinite;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

/* The container <div> - needed to position the dropdown content */
#settings_div {
    position: absolute;
    display: inline-block;
    right: 17px;
    bottom: 8px;
}

/* Dropdown button */
.settings_button {
    cursor: pointer;
}

/* Dropdown content (Hidden by Default) */
#settings_list {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    right: 0;
}

/* <div> list item inside the settings dropdown */
#settings_list div {
    color: black;
    padding: 12px 16px 0 16px;
    text-decoration: none;
    cursor: default;
    display: block;
}

#profile_picture {
    width: 50px;
    float: right;
    margin-bottom: 10px;
    display: inline;
}

#email_address {
    display: inline;
}

/* <span> list items inside the settings dropdown */
#settings_list span {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    cursor: pointer;
    display: block;
}

/* Change color of dropdown list items on hover */
#settings_list span:hover {
    background-color: #f1f1f1
}

/* Show the dropdown menu*/
.show {
    display: block;
}

.class_info_div {
    float: right;
    padding: 2px 2px 0 0;
    position: relative;
    display: inline-block;
}

.class_info_list {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    border: 1px solid black;
    padding: 5px 10px;
    text-align: justify;
    white-space: nowrap;
}

.bold-text {
    font-weight: bold;
}



#sign_in_button_group_wrapper {
    margin-top: 175px;
    text-align: center;
}

#sign_in_button_group {
    max-width: 70%;
}

#sign_in_facebook_button {
    margin-bottom: 20px;
    display: block;
    cursor: pointer;
    max-width: 100%;
}

#sign_in_google_button {
    display: block;
    cursor: pointer;
    max-width: 100%;
}




/*
Start modal CSS
*/

body.modal-open {  /*prevents body from scrolling when modal is open*/
    overflow: hidden;
    position: fixed;
}

.input-validation-text {
    color: red;
    font-size: 9pt;
    text-align: center;
    visibility: hidden;
    margin-bottom: 2px;
}

.modal {  /* the modal's background */
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto !important; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* modal's main content */
.modal-main-content {
    margin:  auto; /* 15% from the top and centered */
    top: calc(50% - 130px);
    border: 1px solid black;
    position: relative;
    background-color: white;
    width: 350px;
    max-width: 98%;
    height: 260px;
    overflow-y: auto;
}

#modal_header {
    background-color: beige;
    text-align: center;
    border-bottom: 1px solid black;
    padding: 2px 0;
}

#modal_header_text {
    font-size: 17px;
}

#add_class_prompt_div, #class_summary_div {
    display: none;
    position: relative;
}

.close {  /* Close button for modal */
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 1px 7px;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-instructions {
    margin: 18px 27px 30px 27px;
    font-size: 10pt;
    text-align: justify;
}

.modal-labels {
    float: left;
    width: 33%;
    text-align: center;
}

.modal-labels div {
    height: 45px;
    padding-top: 1px;
    font-size: 13pt;
}

.modal-inputs {
    float: left;
    width: 67%;
}

.modal-inputs > * {
    height: 45px;
}

#current_session_input {
    width: 275px;
    max-width: 85%;
    padding-left: 5px;
}

#current_sesion_prompt_button_div {
    margin: 90px auto 0 auto;
}

#continue_button_current_session {
    margin: 0 auto;
    padding: 3px 6px;
    display: block;
    position: relative;
}

#save_class_button, #cancel_class_button {
    margin: 0 auto 10px auto;
    padding: 3px 6px;
    display: inline-block;
    position: relative;
}

#class_name_input, #class_location_input {
    width: 250px;
    max-width: 92%;
    padding-left: 5px;
}

.daypicker-dropdown {
    position: relative;
    z-index: 30000;
    width: 250px;
    max-width: 92%;
    text-align: left;
}

#day_picker_dropdown_title {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: 28px;
}

#day_picker_items {
    position: absolute;
    width: 250px;
    max-width: 100%;
    background-color: white;
    border: 1px solid;
    padding-left: 10px;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input[type=checkbox] {
    zoom: 1.5;
}

.day_picker_list_item_text {
    vertical-align: text-bottom;
}

.daypicker-dropdown .anchor {
    position: relative;
    cursor: pointer;
    width: 100%;
    display: inline-block;
    padding: 2px 30px 2px 5px;
    border: 1px solid #999999;
}

.daypicker-dropdown .anchor:after {
    position: absolute;
    content: "";
    border-left: 2px solid black;
    border-top: 2px solid black;
    padding: 5px;
    right: 10px;
    top: 15%;
    -moz-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.daypicker-dropdown .anchor:active:after {
    top: 22%;
}

.daypicker-dropdown ul.day-picker-items {
    padding: 2px;
    display: none;
    margin: 0;
    border: 1px solid #ccc;
    border-top: none;
}

.daypicker-dropdown ul.day-picker-items li {
    list-style: none;
}

.beginning-timepicker, .ending-timepicker {
    width: 43%;
    display: inline-block;
    color: transparent;
    text-shadow: 0 0 0 black;
    text-align: center;
}

.color-div {
    width: 28px;
    display: inline-block;
    border: 1px solid #acacac;
}

#add_class_prompt_buttons_div {
    margin: 290px auto 10px auto;
    text-align: center ;
}



#class_summary_div {
    margin: 5px auto 0 auto;
    height: 76%;
    overflow-y: auto;
}

.class-summary-details {
    display: none;
    margin-left: 25px;
}

.class-summary-name {
    display: inline-block;
}

.expand-summary-details-image {
    float: right;
    width: 30px;
}

#class_delete_summary {
    float: right;
    bottom: 5px;
    padding-right: 2px;
    width: 28px;
}

.class-summary-row {
    border: 1px solid rgba(0, 0, 0, 0.63);
    margin: 5px 15px;
    padding: 3px;
    overflow: hidden;
}

.class-summary-row div {
    padding-top: 4px;
}

.class-summary-row * {
    font-size: 13pt;
}


#class_summary_button_div {
    margin: 0 auto;
    height: 10%;
    display: none;
    text-align: center ;
}

#add_class_button, #save_and_finish_button {
    padding: 3px 6px;
    font-size: 13pt;
}

#save_and_finish_button, #cancel_class_button {
    margin-left: 4px;
}


/*
End modal CSS
*/




#main_content_wrapper {
    margin-top: 25px;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

#day_div_wrapper {
    position: relative;
    width: 100%;
    padding: 0 0 30px 0;
}

#week_switcher_wrapper {
    position: relative;
    padding: 6px 9px 6px 9px;
    background-color: beige;
    border: solid;
    border-width: 1px;
    margin: 25px auto 0 auto;
    max-width: 90%;
    width: 900px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    z-index: 0;
    overflow: hidden;
}

#current_session_text {
    display: inline;
    margin: auto;
    float: left;
    padding-top: 2px;
}

#week_switcher_div {
    display: inline;
    margin: auto;
    float: right;
}

#current_week_text {
    margin-right: 6px;
}

.week_switcher_buttons {
    cursor: pointer;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
    outline: none;
    margin-left: 3px;
}

.week_switcher_buttons:disabled {
    color: gray;
    cursor: default;
    opacity: 0.2;
}

.day_div {
    display: block;
    border: solid;
    border-width: 1px;
    margin: 28px auto 0 auto;
    max-width: 90%;
    width: 900px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    word-wrap: break-word;
}

.day_div_header {
    background-color: beige;
    border-bottom: hidden;
    padding: 2px 4px 2px 4px;
    text-align: center;
}

.class_div {
    border-top-width: thin;
    border-top: solid;
    text-align: left;
    padding-bottom: 1px;
}

.class_name_div {
    border-right: solid;
    border-bottom: solid;
    border-width: 1px;
    display: inline-block;
    background-color: white;
    padding: 1px 4px 1px 4px;
    margin-bottom: 10px;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.font_awesome_info_icon {
    padding-left: 7px;
    color: #b8b8b8;
}





.fa-before:before {
    display: inline-block;
    font-family: FontAwesome;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.add_task_button {
    margin-left: 7px;
    margin-top: 10px;
    display: table;
    cursor: pointer;
    color: #595959;
    font-size: 19px;
}

.new_task_div {
    margin: 0 5px 3px 5px;
}

.new_task_input {
    width: 100%;
    box-sizing: border-box; /* These border-box values force the input to behave like a block element. Left and right margin must be set in new_task_div, which is the parent node of new_task_input. */
    margin-bottom: 1px;
    margin-top: 5px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.new_task_save_button {
    margin-right: 1px;
}

.generic_button {
    padding: 5px 10px 5px 10px;
}

.added_task_div {
    padding: 5px 0 5px 0;
}

.mark_task_finished_image {
    padding: 0 7px 0 5px;
    margin-bottom: 2px;
}

/* The snackbar is the box that appears at the bottom when the user marks a task as completed. It gives them 10 seconds to undo this action. */
#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 300px; /* Set a default minimum width */
    transform: translateX(-50%); /*this centers the snackbar horizontally, and even works on mobile where other methods failed*/
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
}

#snackbar_text {
    padding-right: 12px;
}

#snackbar_undo_button {
    color: red;
    background-color: #333;
    border: none;
    outline: none;
    padding-right: 7px;
}

#snackbar_hide_button {
    color: #c4c4c4;
    background-color: #333;
    border: none;
    outline: none;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important;
        /* Black prints faster:
                                          http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */
    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }

}
