* {
    box-sizing: border-box;
}

@-ms-viewport{
  width: device-width;
}

#container {
	width: 100%;
	margin: 0;
  padding: 0;
  position: absolute;
}

.main {
	float: left;
  width: 80%;
  display: block;
  clear: both;
  padding: 0;
  margin: 0;
}
.word {
  height: 19vh;
}

.word p {
	font-size: 2em;
}

#sidebar {
	float: right;
	width: 18%;
	margin-top: 0;
  margin-right: 1.5em;
  margin-bottom: 0;
  margin-left: 0;
	color: #fff8dc;
  font-size: 1.05em;
  line-height: 1.5em;
}

#bottom {
  /*position: fixed;*/
  bottom: 0;
  left: 0;
  width: 100%;
}

a {
    color: #3399CC;
}

button {
  font-family: sans-serif;
  font-size: .95em;
  background: #33CCFF;
  border: 1px solid rgba(0,0,0,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(0,0,0,.25);
  border-radius: 5px;
  padding: 10px 40px;
  margin-top: 20px;
	margin-bottom: 20px;
  margin-left: 25%;
  margin-right: 25%;
	position: relative;
	text-align: center;
}

button:hover {
  background: #3399CC;
}
button:active {
  background:  #ffffff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25);
}

#reset {
	background: #ffd700;
}
#reset:hover {
  background: #daa520;
}
#reset:active {
  background:  #ffffff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25);
}

div{
  border: 1px /*solid red*/;
  float:left;
  padding: 1.5em;
}

h2 {
  padding-top: 5%;
	padding-left: .25%;
	color: #ffd700;
	animation-name: stretch;
	animation-duration: 1.5s;
	animation-timing-function: ease-out;
	animation-delay: 0;
	animation-direction: alternate;
	animation-iteration-count: infinite;
	animation-play-state: running;
}

h2:active {
	color: #33CCFF;
}

h3 {
		font-weight: lighter;
		font-size: 1em;
    text-align: center;
		color: #ffefd5;
}

h4 {
		font-size: 1.3em;
    text-align: center;
}

li {
  list-style: none;
  line-height: 2.5em;
	text-align: center;
}

.clear {
	clear: both;
}

.hidden{
	display: none;
}

.five_box {
  text-align: center;
  width: 20%;
}

.seven_box {
  text-align: center;
  width: 14.28%;
}

.nine_box {
  text-align: center;
  width: 11.11%;
}

@keyframes stretch {
  0% {
    transform: scale(.75);
  }

/*  50% {
    transform: scale(1.75);
  }*/
  100% {
    transform: scale(3.75);
  }
}

html{
  width:100%;height:95%;overflow:scroll;
}

body{width:100%;height:100%;margin:0;padding:0;color:#ffffff;background-color:#000;}

canvas{width:80%;height:100%;display:none;-webkit-tap-highlight-color:transparent;tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;cursor:pointer;}

.about{display:none;}

.alt{display:none;width:1100px;text-align:center;font-family:sans-serif;margin-top:100px;}

.alt.ie{display:block;}

.alt a{color:#ffffff;}

::-webkit-scrollbar {
    -webkit-appearance: none;
}

::-webkit-scrollbar:vertical {
    width: 12px;
}

::-webkit-scrollbar:horizontal {
    height: 12px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .5);
    border-radius: 10px;
    border: 2px solid #ffffff;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #ffffff;
}

@media only screen and (max-width: 1264px)
{

  .main {
    position: absolute;
    top: 15vh;
  	float: none;
    width: 100%;
    display: block;
    clear: both;
    padding: 0;
    margin: 0;
  }

  .word {
    height: 15vh;
  }

  .reduce_spacing {
    padding-top: .05vh;
    padding-bottom: .05vh;
    padding-left: 2.5vw;
    padding-right: 2.5vw;
  }

#sidebar {
    position: absolute;
    top: 0px;
    left: 10px;
    right: 10px;
    float: none;
    width: 100%;
    }

#sidebar p {
  color: #fff8dc
  }

.sharepoem {
  position: absolute;
  top: 80vh;
  left: 10px;
  right: 10px;
  float: none;
  width: 100%;
  }

#custom-poem {
  float: none;
  width: 100%;
  }

  h4 {
    margin-top: .5em;
    margin-bottom: .5em;
  }

  button {
    margin-left: 20%;
    margin-right: auto;
  	position: relative;
  }

  canvas {
    padding-top:15vh;
    width:100%;
    height:100%;
    display:none;
    -webkit-tap-highlight-color:transparent;
    tap-highlight-color:transparent;
    -webkit-user-select:none;
    user-select:none;
    cursor:pointer;
  }
}

/*
NEED TO DO ANOTHER QUERY FOR WIDTHS LESS THAN 897

@media only screen and (min-width:480px) and (max-width: 767px)

@media screen and (max-width: 1258px) (min-width: 540px) (max-device-width: 1258px)(min-device-width: 540px) {
  	overflow-y: scroll;
    overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
#sidebar {
    float: none;
    width: auto;
    }
	}*/

/*@media only screen and (max-width: 1258px)(min-width: 540px) (max-device-width: 1258px)(min-device-width: 540px) { */
