/** TABLE OF CONTENTS
  1. Resets, etc 
  2. General Styles
  3. Weather
  4. Main #container
  5. Quote
**/


/* 1. Resets, etc - Paul Irish Border-Box*/
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

html{
  height: 100%;
  min-height: 100vh;
  margin: 0;
  font-size: 80%;  
}

@media (min-width: 36em){
  /*576 px*/
 body {
    font-size: 100%;
  }
}

/** GENERAL STYLES **/
body{
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center; /** need to calibrate more **/
  font-family: Helvetica, 'Segoe UI', Tahoma, Arial sans-serif;
  color: white;
  line-height: 1.2;
  text-shadow: 0 0 25px rgba(0, 0, 0, 0.3);  

  /*transform: translateZ(0);  hack(?) so bg doesn't flash when scrolled on mobile */
}

h1, h2, h3{
  margin: 0;
  padding: 0;
}

/** WEATHER **/
#weather-container{
  text-align:right;
  margin-right: 10px;
}

.wi {
  padding-right: 0.2em;
}

.wi,  /* weather icon font */
#temperature { 
  font-size: 1.5em;
  font-weight: 700;
}

#region {
  margin-top: -0.6em;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

/** Main #container **/
#container{
  width: 100%;
  margin-top: 5%;
  padding: 1em 1em 0.5em;
  text-align: center;
  opacity:0;  
}

#date {
  margin-top: 3em;
  font-size: 1.5em;
  letter-spacing: 0.15em;
}

@media (max-height: 48em){
  /* 768 px */
  #date {
    margin-top: 0;
    margin-bottom: 0;
  }  
}

#time{
  margin: 0;
  font-size: 8em;
  letter-spacing: -0.02em;
}

#greeting {
  margin-bottom: 1em;
  font-size: 2.5em;
  font-weight: 400;
}

.goal { 
  margin-top: 3em;
  margin-bottom: 0.5em;
  font-size: 1.5em;
  font-weight: 400;
}

/* when user has goal */
.has-goal {
  margin-top: 5em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (min-width: 30em){
  /*480 px*/
  #time{
    font-size: 9em;
  }

  #greeting{
    font-size: 3em;
  }

  .goal { 
    font-size: 1.8em;
  } 

  .has-goal {
    font-size: 1.3em;
  }
}

@media (min-width: 90em){
  /*1440 px*/
  #time{
    font-size: 11em;
  }

}

/*Input for Today's Focus*/
.focus-input{
  width: 100%;
  background: none;
  border: none;
  border-bottom: 3px solid white;
  padding: 0.5em;
  font-size: 180%;
  color: white;
  text-align: center;
}

@media (min-width: 533px){
  .focus-input {
    width: auto;
    padding: 0 1em;
  }
}

.focus-input:focus{
  outline: none;
  border: none;
  border-bottom : 2px solid white;
}


/** today's goals **/
ul.to-do{
  list-style-type: none;
  padding: 0;
}

.to-do li{
  list-style-type: none;
  font-size: 2em;
  margin-top: 15px;
}

.to-do-item {
  display: inline-block;
}


/** Today's Goals Controls **/

/* remove/x mark */
.remove{
  position: relative;
  display: inline-block;
  margin-left: 18px;
  margin-bottom: 4px;
  font-family: Verdana, sans-serif;
  font-size: 0.6em;
  color: rgba(255,255,255, 0.8);
  vertical-align: middle;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.remove:after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 1px solid white;
  border-radius: 50%;
  opacity: 0;

  position: absolute;
  top: -3px;
  left: -9px;

  transition: all 0.5s ease-in-out;
}

.remove:hover:after{ /*show border on hover*/
  opacity: 1;
}


/*check box*/
.doneTodo {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 15px;  
  border: 2px solid rgba(255, 255, 255, 1);
  border-radius: 2px;
  cursor: pointer;
}

/* check mark */
.check-box:before,
.check-box:after {
  display: inline-block;
  content: '';  
  background: white;
  border-radius: 5px;
  position: absolute;
  transform-origin: left top;
  opacity: 0;
  visibility: none;
}

/* bottom check */
.check-box:before {
  width: 6px ;
  height: 3px;  
  transform: rotate(50deg);
  bottom: 5px;
  left: 3px;  
}

/* top check */
.check-box:after {
  width: 15px ;
  height: 3px;  
  transform: rotate(-45deg);
  bottom: 1px;
  left: 3px;

  z-index: -1;
}

@keyframes bottomcheck{
  0%   { width: 0; }
  50%  { width: 0; }
  100% { width: 6px; }
}

@keyframes topcheck{
  0%   { width: 0; }
  50%  { width: 0; }
  100% { width: 15px; }  
}

/*click that check box*/
.done .doneTodo {
  border-color: rgba(255,255,255,0.6);
}

.done .check-box:before,
.done .check-box:after {
  opacity: 1;
  visibility: visible;
}

.done .check-box:before {
  animation: bottomcheck .25s ease 0s forwards;
}

.done .check-box:after {
  animation: topcheck .35s ease 0s forwards;
}

.done .to-do-item{
  text-decoration: line-through;
  color: rgba(255,255,255,0.8);
}

/** QUOTE **/
#quote-container{
  width: 70%;
  margin: 0 15%;
  text-align: center;
  position: fixed;
  bottom: 0;
  opacity: 0;  
}

@media (max-height: 44em){
  #quote-container {
    position: relative;
    width: 90%;
    margin: 4.1em auto 0;
  }  
}


/*Quote Line */
#randomQuote{
  margin-bottom: 0;
  text-align:center;
  text-shadow: none;
  padding: 0.5em;
  display: block;
  cursor: pointer;  
  transition: all 0.8s ease-in-out;
}

.quoteAuthor{
  text-align: center;
  transform: translateY(-30px);
  opacity : 0; 
  visibility: none;
  transition: all 0.8s ease-in-out;
}

#randomQuote:hover{
  transform: translateY(-15px);
}

#randomQuote:hover + .quoteAuthor{
  opacity: 1;
  visibility: visible;
}





