
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.main-screen {
    position: absolute;
    margin: 0;
    top: 30px;
    left: 0;
    height: calc(100% - 30px);
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    display: block;
    overflow: auto;
}

.content {
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    display: -webkit-flex;
    background-color: black;
    flex-direction: column;
    -webkit-flex-direction: column;
}

#header {
    height: 30px;
    font-size: 10vw;
    text-align: center;
    line-height: 30px;
    background: blue;
    color: white;
}

.rock-part {
  background: black;
}

#rock-list {
    width: 100%;
    height: 220px;
    display: table;
    text-align: center;
}

.rock-type {
    width: calc(100% / 3);
    height: 100%;
    color: white;
    text-align: center;
    font-size: 14px;
    font-family: "Comic Sans MS", cursive, sans-serif;
    display: inline-block;
    max-width: 100px;
}

.rock-button {
    display: inline-block;
    margin-top: 0px;
    margin-bottom: 5px;
    margin-left: 0px;
    margin-right: 0px;
    width: 80px;
    height: 30px;
    font-size: 14px;
}

.rock-button {
	-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
	-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
	box-shadow:inset 0px 1px 0px 0px #ffffff;
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffffff), color-stop(1, #f6f6f6));
	background:-moz-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
	background:-webkit-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
	background:-o-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
	background:-ms-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
	background:linear-gradient(to bottom, #ffffff 5%, #f6f6f6 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0);
	background-color:#ffffff;
	-moz-border-radius:6px;
	-webkit-border-radius:6px;
	border-radius:6px;
	border:1px solid #dcdcdc;
	display:inline-block;
	cursor:pointer;
	color:#666666;
}
.rock-button:hover {
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f6f6f6), color-stop(1, #ffffff));
	background:-moz-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
	background:-webkit-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
	background:-o-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
	background:-ms-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
	background:linear-gradient(to bottom, #f6f6f6 5%, #ffffff 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6f6f6', endColorstr='#ffffff',GradientType=0);
	background-color:#f6f6f6;
}
.rock-button:active {
	position:relative;
	top:1px;
}

@media screen and (min-width: 270px) {
    #header {
        font-size: 28px;
    }
}

.rock-info {
    flex: 1;
    -webkit-flex: 1;
    display: flex;
    display: -webkit-flex;
    max-width: 100%;
    justify-content: center;
}

#rock-picture {
    text-align: center;
    background-color: black;
    flex: 1;
    -webkit-flex: 1;
    position: relative;
}

#rock-img {
    max-width: 100%;
    max-height: 100%;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0; 
    right: 0; 
    margin-left: auto; 
    margin-right: auto; 
}

#rock-details {
    background-color: black;
    white-space: pre-line;
    line-height: 30px;
    font-size: 16px;
    color: white;
}

@media (orientation: landscape) {
  .rock-info {
    flex-direction: row;
    -webkit-flex-direction: row;
  }
  #rock-picture {
    max-width: 300px;
  }
  #rock-details {
    margin-left: 10px;
    height: 100%;
    max-width: 400px;
  }
}

@media (orientation: portrait) {
  .rock-info {
    flex-direction: column;
    -webkit-flex-direction: column;
  }
  #rock-details {
    width: 100%;
    text-align: center;
  }
  #rock-picture {
    max-width: 100%;
  }
}

.ui-dialog-titlebar-close {
    visibility: hidden;
    pointer-events: none;
}

.noTitle .ui-dialog-titlebar {display:none}

.dialog-background {
    max-width:100%;
    max-height:100%;
}

.ui-widget-overlay {
   opacity: .8 !important; /* Make sure to change both of these, as IE only sees the second one */
  filter: Alpha(Opacity=80) !important;

  background: rgb(50, 50, 50) !important; /* This will make it darker */
}