/***** This file is included both in funsite and edx-platform/lms base templates. *****/

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300;
  src: local('Raleway-Light'), url("/static/funsite/fonts/Raleway-Light.010aae55eee6.ttf") format('truetype');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  src: local('Raleway-Regular'), url("/static/funsite/fonts/Raleway-Regular.6e4a9679e65c.ttf") format('truetype');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  src: local('Raleway-SemiBold'), url("/static/funsite/fonts/Raleway-SemiBold.411ef03a8252.ttf") format('truetype');
}
.light-shadow {
    -webkit-box-shadow: 0 6px 6px -6px #aaa;
       -moz-box-shadow: 0 6px 6px -6px #aaa;
            box-shadow: 0 6px 6px -6px #aaa;
}
.heavy-weight {
    font-weight: 600;
}
.color-fun-red {
    color: #F72B2F;
}
.color-fun-blue {
    color: #3877BC;
}
.color-fun-white {
    color: white;
}
.clickable {
    cursor: pointer;
}

a.no-decoration,
a.no-decoration:hover,
a.no-decoration:focus,
a.no-decoration:active,
a.no-decoration:visited {
    text-decoration: none !important;
    color: inherit !important;
}

/********************************* HEADER *********************************/

#top-menu {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3030; /*z-index used by boostrap for fixed headers*/
    background-color: white;
    font-family: 'Raleway', sans-serif;
}


#top-menu * {
    box-sizing: border-box;
}

.slogan, .username {
    font-family: 'Raleway', sans-serif;
}

/********** header block **********/

/* header blocks are 60px height block with centered content (vertically and horizontally).*/
.header-block {
    display:inline-block;
    vertical-align: top;
    height: 60px;
    text-align: center;
    padding-top: 17.5px;
    margin-right: -4px; /* see https://css-tricks.com/fighting-the-space-between-inline-block-elements/ */
}



/******************** Left header ********************/

#top-menu .left-header {
    white-space : nowrap;
}

/***** Sandwich-menu icon *****/
#sandwich-menu-icon {
    width: 60px;
    position: relative;
}
#sandwich-menu-icon span {
    display: block;
    position: absolute;
    width: 23px;
    height: 4px;
    background: #3877BC;

    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);

    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}
#sandwich-menu-icon span:nth-child(1) {
    top: 20px;
}
#sandwich-menu-icon span:nth-child(2) {
    top: 27px;
    width: 15px; /* middle layer is sligtly smaller */
}
#sandwich-menu-icon span:nth-child(3) {
    top: 34px;
}

/***** Sandwich-menu icon rotation *****/
#sandwich-menu-icon.open span:nth-child(2) {
    opacity: 0;
}
#sandwich-menu-icon.open span:nth-child(1),
#sandwich-menu-icon.open span:nth-child(3) {
    top: 30px;
}
#sandwich-menu-icon.open span:nth-child(1) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);

}
#sandwich-menu-icon.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

/***** Logo *****/
#top-menu .left-header .fun-logo-link {
    padding: 0px;
}

/***** Slogan (in funsite),  course display name (in courseware) *****/
#top-menu .left-header .course-org,
#top-menu .left-header .course-display-name,
#top-menu .left-header .slogan {
    font-size: 17px;
}

#top-menu .left-header span.course-display-name {
    overflow-x: hidden;
    white-space: nowrap;
}

/***** Various light horizontal alignments. *****/
#top-menu .left-header #sandwich-menu-icon span {
    left: 18px;
}
#top-menu .left-header .course-org,
#top-menu .left-header .course-display-name,
#top-menu .left-header .slogan {
    margin-left: 5px;
}



/******************** Right header ********************/

#top-menu .right-header {
    position: absolute;
    top:0;
    right: 0;
    background: #F72C30;
}

#top-menu .right-header .white-header-block {
    background : white;
    width: 20px;
}

#top-menu .right-header .toggle-dropdown-menu {
    width: 40px;
}
#top-menu .right-header .toggle-dropdown-menu:focus {
    outline: 0; /* Override edx focus on `a` tag behaviour. */
}
#top-menu .right-header .signup-link {
    background: white;
}

/***** Various light vertical alignments. *****/

#top-menu .right-header .user-icon-sign-in-link,
#top-menu .right-header .user-icon-dashboard-link  {
    display: inline-block;
    padding-top : 15px;
}

/***** Various light horizontal alignments. *****/

#top-menu .right-header .dashboard-user-link {
    padding-left: 15px;
}
#top-menu .right-header .signup-link {
    padding-right: 20px;
}
#top-menu .right-header .user-icon-sign-in-link {
    padding-left: 15px;
}
#top-menu .right-header .user-icon-dashboard-link {
    padding-left: 15px;
}
#top-menu .right-header .login-link {
    padding-left: 10px;
    padding-right: 15px;
}


/********************  Header responsiveness: ********************/

@media (max-width: 767px) {
    /***** < 767px the username in right header disappears. *****/
    #top-menu .right-header .dashboard-user-link,
    #top-menu .left-header .slogan,
    #top-menu .left-header .course-org,
    #top-menu .left-header .course-display-name,
    #top-menu .right-header .signup-link,
    #top-menu .right-header .login-link  
    {
	display: none;
    }
    #top-menu .right-header .user-icon-sign-in-link {
	padding-right: 15px;
    }
}


/***** Dropdown menu ******/
#top-menu .fun-dropdown-menu {
    min-width: 200px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #c8c8c8;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.3);
    list-style: none;
    list-style-image: none;
    border-radius: 4px;
    position: absolute;
    right: 0px;
    top: 60px;
    z-index: 3;
    display: none;
}

/***** Arrow on the top of the dropdown menu ******/
#top-menu .fun-dropdown-menu:before {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);

    display: block;
    width: 12px;
    height: 12px;

    position: absolute;
    right: 9px;
    top: -7px;

    background: #fcfcfc;
    border: 1px solid #646464;
    border-bottom-color: transparent;
    border-left-color: transparent;
    content: '';
}

#top-menu .fun-dropdown-menu li {
    border-bottom: 1px dotted #c8c8c8;
}

#top-menu .fun-dropdown-menu li:last-child {
    border-bottom: none;
}

#top-menu .fun-dropdown-menu li>a {
    display: block;
    padding: 3px 5px 4px;
    margin: 5px 0px;
    font-size: 15px;
}

#top-menu .fun-dropdown-menu li>a:hover {
    color: #3c3c3c;
    text-decoration: none;
}


/********************************* SANDWICH MENU *********************************/

#sandwich-overlay {
    width: 100%;
    position: fixed;
    padding-top:100px;
    top: 0px;
    display: none;
    background-color: rgba(61, 121, 190, 0.95);
    z-index: 2000;
}

#sandwich-overlay ul li a {
    font-family: 'Raleway', sans-serif;
    color: white;
}

#sandwich-overlay ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 10;
    text-align: center;
}

#sandwich-overlay li {
    font-size: 2.5em;
    margin-bottom: 0.8em;
}

#sandwich-overlay ul li a {
    color: white;
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
}

#sandwich-overlay li a:hover {
    text-decoration: none;
    color: #fff;
    text-shadow: -1px 1px 8px #57A1E7, 1px -1px 8px #57A1E7; /* light blue glow */
}

#sandwich-overlay li a.selected {
    border: 1px solid white;
    padding: 16px;
}

.close-overlay {
    margin-left: 20px;
    margin-top: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.close-overlay.blue {
    margin-top: 4px;
    color: #0C3D72;
    font-size: 16px;
}

/* Main content positioning in courseware */
.content-wrapper {
    margin: 60px auto !important;
}



/** EXTRA **/

