@media (orientation: landscape) {
  body {
    background-image: url(../img/adobe-chalkboard.jpeg);
    background-size: 100%;
    background-repeat: repeat-y;
  }
  
  .mainp {
    width: 100%;
    height: 90%;
    padding-top: 2%;
    text-align: center;
    line-height: 6em;
  }
  
  .chalktext {
    font-family: CoalhandLuke;
    color:rgba(255,255,255,0.7);
    text-shadow:0 0 4px rgba(255,255,255,0.6);
  }
  
  .alarmtext {
    font-family: AlarmClock;
    color:rgba(0,0,0,0.7);
    background-color: white;
    text-shadow:0 0 4px rgba(255,255,255,0.6);
  }
  
  .blur {
    color: transparent;
    text-shadow: 0 0 25px #fff;
  }
  
  .unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .maintext, .subtext, .maintext2, .minitext {
    text-align: center;
  }
  
  .maintext {
    margin-top: 0.6em;
    font-size: 5em;
  }
  
  .spacingdiv {
    margin-top: 4em;
  }
  
  .subtext {
    font-size: 4em;
  }
  
  .maintext2 {
    margin-top: 0.6em;
    font-size: 3em;
  }
  
  .minitext {
    font-size: 2.5em;
  }
}

@media (orientation: portrait) {
  body {
    background-image: url(../img/adobe-chalkboard-portrait.jpeg);
    background-size: 100%;
    background-repeat: repeat-y;
  }
  
  .mainp {
    width: 100%;
    height: 90%;
    padding-top: 2%;
    text-align: center;
    line-height: 9em;
  }
  
  .chalktext {
    font-family: CoalhandLuke;
    color:rgba(255,255,255,0.7);
    text-shadow:0 0 4px rgba(255,255,255,0.6);
  }
  
  .alarmtext {
    font-family: AlarmClock;
    color:rgba(0,0,0,0.7);
    background-color: white;
    text-shadow:0 0 4px rgba(255,255,255,0.6);
  }
  
  .blur {
    color: transparent;
    text-shadow: 0 0 25px #fff;
  }
  
  .unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .maintext, .subtext, .maintext2, .minitext {
    text-align: center;
  }
  
  .maintext {
    margin-top: 0.6em;
    font-size: 5em;
  }
  
  .spacingdiv {
    margin-top: 4em;
  }
  
  .subtext {
    font-size: 4em;
  }
  
  .maintext2 {
    margin-top: 0.6em;
    font-size: 3em;
  }
  
  .minitext {
    font-size: 2.4em;
  }
}
