header {
	margin: 0 0 10px 0;
}

body {
    font-family: 'Crimson Text', serif, Georgia, serif;
}

h1, h3 {
	font-family: 'Playfair Display', serif, "Times New Roman", Times, serif;
}

.button {
	background: linear-gradient(white, gray);
	padding: 2px;
	margin: 0 2px 0 2px;
	border: 1px solid black;
	width: 85px;
	height: 20px;
	text-decoration: none;
	color: black;
	text-align: center;
}

.button:hover {
	cursor: pointer;
}

.board-title {
	font-size: 1.5em;
	order: 1;
	display: flex;
	flex-wrap: wrap;
}

.game-list-item {
	margin: 10px 0 10px 0;
}

.resume-game {
	display: inline;
}

.cancel-game {
	display: inline;
}

.board-div {
	order: 1;
	display: flex;
	flex-wrap: wrap;
	width: 385px;
}

.row-div {
	display: flex;
	flex-wrap: wrap;
}

.col-div {
	width: 25px;
	height: 25px;
	margin: 1px 1px 1px 1px;
}

.blue {
	background-color: blue;
}

.red {
	background-color: red;
}

.miss {
	background-color: darkblue;
}

.carrier {
	background-color: grey;
}

.battleship {
	background-color: orange;
}

.cruiser {
	background-color: green;
}

.submarine {
	background-color: lightblue;
}

.destroyer {
	background-color: yellow;
}

.red-light {
	background-color: red;
	width: 10px;
	height: 10px;
	margin: 2px 2px 2px 2px;
	align-self: center;
	border-radius: 20px;
}

.green-light {
	background-color: green;
	width: 10px;
	height: 10px;
	margin: 2px 2px 2px 2px;
	align-self: center;
	border-radius: 20px;
}

.ship {
	display: flex;
	flex-direction: row;
}

.hull-section {
	width: 25px;
	height: 25px;
	background-color: gray;
	margin: 1px 1px 1px 1px;
}

.placed {
	color: green;
}

.board {
	min-width: 300px;
	order: 2;
}

.score-div {
	margin: 0 5px 0 5px;
	background-color: rgba(255, 255, 255, 0.9);
}

.computer-hit {
	background-color: red;
}

.computer-missed {
	background-color: darkblue;
}

#whole-page {
	width: 800px;
	margin: auto;
}

#username-div {
	display: flex;
	flex-wrap: wrap;
}

#username-header {
	margin: 0 0 20px 0;
}

#home-btn {
	margin-left: auto;
}

#logout-btn {
	margin-left: auto;
}

#login-div {
	display: flex;
	flex-wrap: wrap;
	width: 200px;
}

#homescreen-div {
	background-color: rgba(255, 255, 255, 0.9);
}

#place-ships-div {
	display: flex;
	flex-wrap: wrap;
	background-color: rgba(255, 255, 255, 0.9);
}

#place-ships-upper {
	display: flex;
	flex-wrap: wrap;
	width: 300px;
}

#place-ships-lower {
	display: flex;
}

#orientation-div p {
	margin: auto;
}

#orientation-btn {
	font-size: 4em;
	text-align: center;
}

#orientation-btn:hover {
	cursor: pointer;
}

#ship-placements-div {
	color: red;
	order: 2;
}

#game-div {
	background-color: rgba(255, 255, 255, 0.9);
}

#game-boards {
	display: flex;
	flex-direction: column;
	min-width: 300px;
}

#user-chart {
	order: 1;
}

#user-board {
	order: 2;
}

#health-div {
	float: right;
}

#result-div {
	float: right;
	font-weight: bold;
}

#all-scores-div {
	display: flex;
	flex-wrap: wrap;
}

#rankings-div {
	background-color: rgba(255, 255, 255, 0.9);
}

@media only screen and (max-width: 350px) {
	html {
		background-color: white;
		background: url("../img/sea-small.jpg") no-repeat center fixed;
		background-size: cover;
		-webkit-background-size: cover;
	    -moz-background-size: cover;
        -o-background-size: cover;
		background-size: cover;
	}

	#whole-page {
		width: 300px;
	}

	#username-header {
		width: 250px;
	}

	#home-btn {
		margin: 1px 1px 1px 1px;
	}

	#logout-btn {
		margin: 1px 1px 1px 1px;
	}
}

@media only screen and (min-width: 351px) and (max-width: 400px) {
	html {
		background-color: white;
		background: url("../img/sea-small.jpg") no-repeat center center fixed;
		-webkit-background-size: cover;
	    -moz-background-size: cover;
        -o-background-size: cover;
		background-size: cover;
	}

	#whole-page {
		width: 350px;
	}

	#username-header {
		width: 300px;
	}

	#home-btn {
		margin: 1px 1px 1px 1px;
	}

	#logout-btn {
		margin: 1px 1px 1px 1px;
	}
}

@media only screen and (min-width: 401px) and (max-width: 600px) {
	html {
		background-color: white;
		background: url("../img/sea-medium.jpg") no-repeat center center fixed;
		-webkit-background-size: cover;
	    -moz-background-size: cover;
        -o-background-size: cover;
		background-size: cover;
	}

	#whole-page {
		width: 400px;
		margin: auto;
	}

	#username-header {
		width: 400px;
	}

	#home-btn {
		margin: 1px 1px 1px 1px;
	}

	#logout-btn {
		margin: 1px 1px 1px 1px;
	}
}

@media only screen and (min-width: 601px) {
	html {
		background: url("../img/sea-large.jpg") no-repeat center center fixed;
		-webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
		background-size: cover;
	}
}