.section
{
    position: relative;
    width: 100%;
    display: grid;
    align-items: center;
    justify-content: center;

}

.section h1
{
    text-align: center;
    font-size: 2rem;
	color: #6182ed;
    text-decoration: underline overline;
	padding: 0px;
    margin: 0px;
    opacity: 1;
}

.preload-images
{
	visibility: hidden; 
	width: 0;
	height: 0;
	background: url(./images/green_button_hidden.png),
				url(./images/green_button_with_flag.png),
				url(./images/green_empty_field.png),
				url(./images/green_field_with_1.png),
				url(./images/green_field_with_2.png),
				url(./images/green_field_with_3.png),
				url(./images/green_field_with_4.png),
				url(./images/green_field_with_5.png),
				url(./images/green_field_with_6.png),
				url(./images/green_field_with_7.png),
				url(./images/green_field_with_8.png),
				url(./images/green_smiley_face.png),
				url(./images/green_smiley_face_guess.png),
				url(./images/green_smiley_face_loose.png),
				url(./images/green_smiley_face_win.png),
				url(./images/mine_found_red.png),
				url(./images/mine_uncovered_green.png);
}

body
{
	width: 100vw;
	font-size: 1.25rem;
	font-weight: bold;
	align-items: center;
}

body #displayRemainingFlageNumber
{
	text-align: left;
	color: red;
	padding: 0px;
    margin: 0px;
    opacity: 1;
}

body #displayRemainingFlageNumber
{
	text-align: right-side;
	color: red;
	padding: 0px;
    margin: 0px;
    opacity: 1;
}

#buttonContainer
{
	background: gray;
	width: 800px;
	padding: 0;
	margin: 0;
	display: grid;
}

.btn
{
	background-image: url(./images/green_button_hidden.png);
	background-repeat: no-repeat;
	background-size: cover;

	width: auto;
	height: auto;

	border-radius: 0%;
	border: 1px solid gray;
	margin: 0px;
	transition:.25s;
	opacity: 0.9;

	animation: fadeIn 0.5s;
	animation-fill-mode: forwards;
}

.flag
{
	background-image: url(./images/green_button_with_flag.png);
	background-repeat: no-repeat;
	background-size: cover;

	width: auto;
	height: auto;

	border-radius: 0%;
	border: 1px solid gray;
	margin: 0px;
	transition:.25s;
	opacity: 0.9;

	animation: fadeIn 0.5s;
	animation-fill-mode: forwards;
}

.zero
{
	background-image: url(./images/green_empty_field.png);
	background-repeat: no-repeat;
	background-size: cover;

	width: auto;
	height: auto;

	border-radius: 0%;
	border: 1px solid gray;
	margin: 0px;
	transition:.25s;
	opacity: 0.9;

	animation: fadeIn 0.5s;
	animation-fill-mode: forwards;
}

.one
{
	background-image: url(./images/green_field_with_1.png);
	background-repeat: no-repeat;
	background-size: cover;

	width: auto;
	height: auto;

	border-radius: 0%;
	border: 1px solid gray;
	margin: 0px;
	transition:.25s;
	opacity: 0.9;

	animation: fadeIn 0.5s;
	animation-fill-mode: forwards;
}

.two
{
	background-image: url(./images/green_field_with_2.png);
	background-repeat: no-repeat;
	background-size: cover;

	width: auto;
	height: auto;

	border-radius: 0%;
	border: 1px solid gray;
	margin: 0px;
	transition:.25s;
	opacity: 0.9;

	animation: fadeIn 0.5s;
	animation-fill-mode: forwards;
}

.three
{
	background-image: url(./images/green_field_with_3.png);
	background-repeat: no-repeat;
	background-size: cover;

	width: auto;
	height: auto;

	border-radius: 0%;
	border: 1px solid gray;
	margin: 0px;
	transition:.25s;
	opacity: 0.9;

	animation: fadeIn 0.5s;
	animation-fill-mode: forwards;
}

.four
{
	background-image: url(./images/green_field_with_4.png);
	background-repeat: no-repeat;
	background-size: cover;

	width: auto;
	height: auto;

	border-radius: 0%;
	border: 1px solid gray;
	margin: 0px;
	transition:.25s;
	opacity: 0.9;

	animation: fadeIn 0.5s;
	animation-fill-mode: forwards;
}

.five
{
	background-image: url(./images/green_field_with_5.png);
	background-repeat: no-repeat;
	background-size: cover;

	width: auto;
	height: auto;

	border-radius: 0%;
	border: 1px solid gray;
	margin: 0px;
	transition:.25s;
	opacity: 0.9;

	animation: fadeIn 0.5s;
	animation-fill-mode: forwards;
}

.six
{
	background-image: url(./images/green_field_with_6.png);
	background-repeat: no-repeat;
	background-size: cover;

	width: auto;
	height: auto;

	border-radius: 0%;
	border: 1px solid gray;
	margin: 0px;
	transition:.25s;
	opacity: 0.9;

	animation: fadeIn 0.5s;
	animation-fill-mode: forwards;
}

.seven
{
	background-image: url(./images/green_field_with_7.png);
	background-repeat: no-repeat;
	background-size: cover;

	width: auto;
	height: auto;

	border-radius: 0%;
	border: 1px solid gray;
	margin: 0px;
	transition:.25s;
	opacity: 0.9;

	animation: fadeIn 0.5s;
	animation-fill-mode: forwards;
}

.eight
{
	background-image: url(./images/green_field_with_8.png);
	background-repeat: no-repeat;
	background-size: cover;

	width: auto;
	height: auto;

	border-radius: 0%;
	border: 1px solid gray;
	margin: 0px;
	transition:.25s;
	opacity: 0.9;

	animation: fadeIn 0.5s;
	animation-fill-mode: forwards;
}

.landmineFound
{
	background-image: url(./images/mine_found_red.png);
	background-repeat: no-repeat;
	background-size: cover;

	width: auto;
	height: auto;

	border-radius: 0%;
	border: 1px solid gray;
	margin: 0px;
	transition:.25s;
	opacity: 0.9;

	animation: fadeIn 0.5s;
	animation-fill-mode: forwards;
}

.remainingLandmines
{
	background-image: url(./images/mine_uncovered_green.png);
	background-repeat: no-repeat;
	background-size: cover;

	width: auto;
	height: auto;

	border-radius: 0%;
	border: 1px solid gray;
	margin: 0px;
	transition:.25s;
	opacity: 0.9;

	animation: fadeIn 0.5s;
	animation-fill-mode: forwards;
}

.menu {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5em;
  flex-wrap: wrap;
  align-items: center;
}

.menuButton {
  padding: 5px 0.5em ;
  border: 0px solid gray;
  background-color: rgba(128, 128, 128, 0.233);
  margin: 5px;
  cursor: pointer;
  border-radius: 0.5em;
  font-size:1em;
}

.menuButton:hover {
  color: white;
  background: black;
}

#overlayWin {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 1;

  justify-content: center;
  align-items: center;
  animation: 0s;
  transition: all 0s;

  visibility: hidden;
  animation: fadeOut 0.5s;
  animation-fill-mode: forwards;
}
#overlayWin * {
  pointer-events: none;
}

#overlayWin.active {
  visibility: visible;
  animation: fadeIn 0.5s;
  animation-fill-mode: forwards;
}

#overlayWinIn {
  padding: 1em;
  padding-left: 4em;
  padding-right: 4em;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;

  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: rgb(255, 255, 255);
  box-shadow: 0 0 20px black;
}

#overlayWinIn p {
  text-align: center;
  font-size: 1em;
}


#overlayLost {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 1;

  justify-content: center;
  align-items: center;
  animation: 0s;
  transition: all 0s;

  visibility: hidden;
  animation: fadeOut 0.5s;
  animation-fill-mode: forwards;
}

#overlayLost * {
  pointer-events: none;
}

#overlayLost.active {
  visibility: visible;
  animation: fadeIn 0.5s;
  animation-fill-mode: forwards;
}

#overlayLostIn {

  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;

  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: rgb(255, 255, 255);
  box-shadow: 0 0 20px black;
}

#overlayLostIn p {
  text-align: center;
  font-size: 1em;
}


