/* Overrides
 =============================================================================*/
html, body {
    font-family: 'Open Sans', arial, sans-serif;
    background: white url(img/debut_light.png) repeat scroll;
}

button {
    font-family: 'Open Sans', arial, sans-serif;
}

p {
    color: rgba(0, 0, 0, 0.65);
}

/* Typography
 =============================================================================*/

/* Layouts
 =============================================================================*/
/* Extension Popup
 -----------------------------------------------------------------------------*/
.popup {
    min-width: 300px;
}

/* Help page
 -----------------------------------------------------------------------------*/
.help {
    margin-bottom: 1rem;
    text-align: left;
}

.help__title {
    margin: 1rem 0;
}

.helplisting {
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.85);
}

.helplisting__title {
    padding: 1rem;
}

.helpnav {
    margin: 1rem 2rem;
}

/* Index page
 -----------------------------------------------------------------------------*/
#hero1 {
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #f9f9fa;
    background: #1b1715 url(img/hero1.jpg) no-repeat scroll center center;
    background-size: cover;
}

#hero1 .logo {
    padding: 2rem;
}

#hero1 .title {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 500;
}

#hero1 .subtitle {
    margin-top: 2rem;
    font-size: 1.5rem;
    font-weight: 300;
}

#hero2 {
    background: #3a3a3f url(img/cc-silhouette.png) no-repeat scroll 0 -142px;
    color: #f9f9fa;
    padding: 3rem;
}

#herohelp {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    background: #1b1715 url(img/hero1.jpg) no-repeat scroll center center;
    background-size: cover;
}

#herohelp .logo {
    padding-bottom: 2rem;
    max-width: 256px;
}

#herohelp .helpnav a {
    color: #c5cae9;
}

.feature {
    position: relative;
    margin: 100px auto;
    max-width: 300px;
}

.feature .sideleft {
    position: absolute;
    right: 269px;
    top: 30px;
    padding: 0.5rem;
    padding-left: 1.5rem;
    border-radius: 1rem 0 0 1rem;
    text-align: right;
    white-space: nowrap;
    background-color: #303f9f;
    color: #f5f5f5;
}

.feature .sideright {
    position: absolute;
    left: 269px;
    top: 30px;
    padding: 0.5rem;
    padding-right: 1.5rem;
    border-radius: 0 1rem 1rem 0;
    text-align: left;
    white-space: nowrap;
    background-color: #f57c00;
    color: #f5f5f5;
}

.feature .captionleft {
    position: absolute;
    right: 300px;
    top: 71px;
    text-align: right;
    white-space: nowrap;
    color: #c5cae9;
}

.feature .captionright {
    position: absolute;
    left: 300px;
    top: 71px;
    text-align: left;
    white-space: nowrap;
    color: #ffe0b2;
}

/* Screen smaller than iPad Landscape */
@media (max-width: 1023px) {
    .feature .sideleft {
        top: -3rem;
        right: 0.75rem;
        left: 0.75rem;
        padding: 0.5rem 1rem;
        border-radius: 1rem;
        text-align: left;
    }

    .feature .sideright {
        top: -3rem;
        right: 0.75rem;
        left: 0.75rem;
        padding: 0.5rem 1rem;
        border-radius: 1rem;
        text-align: left;
    }
}

/* estimation for the words teacher and student to not show */
@media (max-width: 459px) {
    .feature .captionright,
    .feature .captionleft {
        display: none;
    }

    /* to allow line-wrapping */
    .feature .sideright,
    .feature .sideleft {
        top: -3.5rem;
        white-space: normal;
    }
}

/* iPhone 4S Portrait and smaller */
@media (max-width: 343px) {
    .feature {
        width: 100%;
    }

    /* to allow line-wrapping */
    .feature .sidright,
    .feature .sideleft {
        top: -3.5rem;
        white-space: normal;
    }
}

.showcase {
    margin: 0.625rem;
    padding: 0 1rem;
    border-top: 3px solid #7986cb;
    background-color: white;
    min-height: 23rem;
    position: relative;
}

.showcase h3 {
    font-family: 'Open Sans Condensed', sans-serif;
    color: #7986cb;
}

.showcase--one {
    border-top-color: #ff9800;
}

.showcase--one h3 {
    color: #ff9800;
}

.showcase--two {
    border-top-color: #303f9f;
}

.showcase--two h3 {
    color: #303f9f;
}

.showcase .picture {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    text-align: center;
}

/* Animation
 =============================================================================*/
/* Blinking effect
 -----------------------------------------------------------------------------*/
.blink {
    animation:          blink 1s ease-in-out infinite;
    -moz-animation:     blink 1s ease-in-out infinite;
    -webkit-animation:  blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%   { opacity: 1.0 }
    40%  { opacity: 0.8 }
    50%  { opacity: 0.0 }
    60%  { opacity: 0.8 }
    100% { opacity: 1.0 }
}
@-moz-keyframes blink {
    0%   { opacity: 1.0 }
    40%  { opacity: 0.8 }
    50%  { opacity: 0.0 }
    60%  { opacity: 0.8 }
    100% { opacity: 1.0 }
}
@-webkit-keyframes blink {
    0%   { opacity: 1.0 }
    40%  { opacity: 0.8 }
    50%  { opacity: 0.0 }
    60%  { opacity: 0.8 }
    100% { opacity: 1.0 }
}

/* Three-quarters of a circle
 -----------------------------------------------------------------------------*/
@-webkit-keyframes spinner-quarters {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-moz-keyframes spinner-quarters {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-o-keyframes spinner-quarters {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spinner-quarters {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Styles for old versions of IE */
.spinner-quarters {
  font-family: sans-serif;
  font-weight: 100;
}

/* :not(:required) hides this rule from IE9 and below */
.spinner-quarters:not(:required) {
  -webkit-animation: spinner-quarters 1250ms infinite linear;
  -moz-animation: spinner-quarters 1250ms infinite linear;
  -ms-animation: spinner-quarters 1250ms infinite linear;
  -o-animation: spinner-quarters 1250ms infinite linear;
  animation: spinner-quarters 1250ms infinite linear;
  border: 2px solid #3f51b5;
  border-right-color: transparent;
  border-radius: 16px;
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  overflow: hidden;
  text-indent: -9999px;
  width: 16px;
  height: 16px;
}

