/* Universal */

* {
  	box-sizing: border-box;
}

h1 {
	font-size: 29px;
}

a {
	text-decoration: none;
}

.hidden {
	display: none;
}

/* Header */

header {
	background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.6)
    ), url("http://cdn.playbuzz.com/cdn/7da618a4-ba64-42e3-8fae-68a4fa778812/89197bbb-8d92-4bc1-955b-a6e9b7c15b3d.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	text-shadow: 2px 2px black;
	height: 600px;
	display: table;
	width: 100%;
}

header h2 {
	font-size: 22px;
}

header p {
	font-size: 17px;
}

.top-bar {
	text-decoration: none;
	margin: 0px;
	padding: 0px;
	width: 100%;
	background-size: cover;
	background-color: rgb(0,10,25);
	color: rgb(150,200,255);
	font-size: 0px;
}

.section-title {
	line-height: 50px;
	height: 50px;
	vertical-align: middle;
	color: rgb(150,200,255);
	border-bottom: 3px solid rgb(150,200,255);
}

.title {
	color: rgb(220,230,255);
	text-shadow: 2px 2px black;
}

.top-bar a {
	text-decoration: none;
	color: rgb(150,200,255);
	font-size: 13px;
}

.left, .right {
	font-size: 13px;
	padding: 10px;
	margin: 0px;
}

.left-half, .right-half {
	font-size: 0px
	margin: 0px;
	padding: 0px;
	/*width : 50%;*/
	display: inline-block;
	background-color: rgb(0,10,25);
	border: none;
}

.right-half {
	/*background-color: blue;*/
	width: 65%;
	text-align : right;
}

.left-half {
	/*background-color: green;*/
	width: 35%;
	text-align : left;
}

/*Transition to body*/

body, header {
	margin-top: 0px;
	color: white;
	text-align: center;
}

body {
	background-color: rgb(10,30,55);
}

.separation {
	width: 100%;
	height: 0px;
	margin-bottom: 20px;
	margin-top: 20px;
}

.chosen-section, .rec-section {
	background-color: white;
	color: rgb(0,10,25);
}

/* Explanation */

.explanation {
	width: 90%;
	text-align: left;
	margin: auto;
}

.explanation p {
	margin-left: 0px;
	margin-bottom: 10px;
	margin-top: 10px;
	vertical-align: middle;
}

.indent {
	padding-left: 20px;
}

/* Search */

.search-bar {
	margin-bottom: 20px;
}

.overlay {
	display: table-cell;
    vertical-align: middle;
}

.search-form {
	width: 100%;
}

.search {
	width: 90%;
	height: 35px;
	font-size: 18px;
	border-radius: 3px;
	border: 1px solid silver;
	padding-left: 10px;
}

.search::placeholder {
	color: gray;
}

.separation {
	width: 100%;
	height: 0px;
	margin-bottom: 20px;
	margin-top: 20px;
}

.chosen-section, .rec-section {
	background-color: white;
	color: rgb(0,10,25);
}

.rec-section {
	width: 100%;
}

.rec-list {
	text-align: left;
}

/* Buttons */

button {
	width: 180px;
	font-size: 18px;
	height: 35px;
	border-radius: 5px;
	border: 2px solid rgb(0,10,25);
	color: rgb(0,10,25);
	background-color: rgb(150,200,255);
	margin-bottom: 5px;
}

button:hover {
	cursor: pointer;
	background-color: white;
	border: 2px solid rgb(95,115,140);
}

.update-results {
	padding: 20px;
	margin-bottom: 60px
}

.row-next {
	margin-top: 20px;
	margin-bottom: 20px;
	margin-left: 10px
	margin-right: 10px;
}

.row-next a {
	display: inline-block;
}

.clear {
	margin-top: 20px;
}

.start-button {
	display: block;
	margin: auto;
	margin-top: 30px;
}

.add, .go-list, .remove {
	width: 100%;
	margin-top: 3px;
}

.go-to-rec, .new-search, .your-list, .your-list-2 {
	vertical-align: middle;
}

.color-2 {
	width: 200px;
	margin-bottom: 80px;
	border: 2px solid rgb(90,100,115);
	background-color: rgb(0,10,25);
	color: white;
}

.color-2:hover {
	border: 2px solid rgb(0,10,25);
	background-color: rgb(90,100,115);
}

/* Accomodation for mobile */
.search-movie, .previous, .next, .try-again {
	margin-bottom: 5px;
}

/* Results */

.result {
	margin: auto;
	padding-top: 20px;
	padding-left: 10px;
	padding-right: 10px;
	padding-bottom: 20px;
	box-sizing: border-box;
	width: 280px;
}

.result-container {
 	margin: 0px;
 	padding: 0px;
 	width: 100%;
 	display: inline-block;
}

.row {
	font-size: 0px;
	width: 100%;
	padding: 0px;
	margin: 0px;
	display: block;
}

.category, .category-2, .category-3 {
	width: 50%;
	padding: 0px;
	margin: 0px;
	text-align: center;
	display: inline-block;
}

.category-2 {
	width: 33.33%;
}

.category-3 {
	width: 100%;
	margin-bottom: 5px;
}

.result-image {
	width: 100%;
	margin: 0px;
	padding: 0px;
	height: 300px;
}

/* Format buttons that display tooltips when highlighted */

.category, .category-2, .category-3 {
	border: 1px solid rgb(35,55,80);
	cursor: pointer;
	background-color: rgb(220,230,255);
}

.cat-left, .category-3 {
	border-left: 2px solid rgb(35,55,80);
}

.cat-right, .category-3 {
	border-right: 2px solid rgb(35,55,80);
}

.category {
	border-top: 2px solid rgb(35,55,80);
}

.category-3 {
	border-bottom: 2px solid rgb(35,55,80);
}

.category:hover, .category-2:hover, .category-3:hover {
	background-color: rgb(235,245,250);
	border: 2px solid rgb(125,145,170);
	color: rgb(125,145,170);
}

/* Tooltips of results */

.tooltip {
	margin: 0px;
	font-size: 20px;
	padding-left: 5px;
	padding-right: 5px;
	padding-top: 2px;
	padding-bottom: 2px;
	position: relative;
	display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: rgb(0,10,25);
    color: white;
    text-align: left;
    border-radius: 6px;
    padding: 5px;
    width: 270px;
    position: absolute;
    z-index: 1;
}

.summary-tooltip, .similar-tooltip, .recommended-tooltip {
	font-size: 16px;
}

.netflix-tooltip, .genre-tooltip, .detail-tooltip {
	font-size: 18px;
}

/* Positioning of tooltip */

.summary-tooltip {
   	bottom: 150%;
    left: 50%;
    margin-left: -71px;
}

.netflix-tooltip {
   	bottom: 150%;
    left: 50%;
    margin-left: -199px;
}

.similar-tooltip {
   	bottom: 255%;
    left: 50%;
    margin-left: -50px;
}

.genre-tooltip {
   	bottom: 255%;
    left: 50%;
    margin-left: -135px;
}

.detail-tooltip {
   	bottom: 255%;
    left: 50%;
    margin-left: -220px;
}

.recommended-tooltip {
   	bottom: 365%;
    left: 50%;
    margin-left: -135px;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
}

/* Arrow of tooltip */

.tooltip .tooltip-text::after {
    content: " ";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgb(0,10,25) transparent transparent transparent;
}

/* Adjustments for larger screens */

/* Reformatting of website itself*/
@media only screen and (min-width: 425px) {
	/*For non-results/wish-list*/
	h1 {
		font-size: 32px;
	}

	header h2 {
		font-size: 24px;
	}

	header p {
		font-size: 19px;
	}

	.explanation {
		width: 70%;
	}

	.left, .right, .top-bar a. {
		font-size: 15px;
	}

	.search {
		width: 375px;
	}
	/*For non-results/wish-list*/
}

/* Reformatting of result items and wish list items*/
@media only screen and (min-width: 570px) {
	.result-container {
		width: 50%;
	}
	.summary-tooltip, .similar-tooltip, .recommended-tooltip {
		font-size: 18px;
	}
}

@media only screen and (min-width: 850px) {
	.result-container {
		width: 33.330%;
	}
}

@media only screen and (min-width: 1130px) {
	.result-container {
		width: 25%;
	}
}

@media only screen and (min-width: 1410px) {
	.result-container {
		width: 20%;
	}
}
