* {
  padding: 0%;
  margin: 0%;
}

body {
  height: 100vh;
  background-color: #ffffff;
}

.main-container {
  box-sizing: border-box;
  height: 100%;
  display: grid;
  grid-auto-flow: row;
  grid-template-rows: auto 3fr 1fr auto;
  grid-template-columns: 1fr 1fr;
  padding: 1rem;
  gap: 1rem;
}

/* HEADER ELEMENTS */
.header {
  font-family: "Cairo";
  display: grid;
  grid-column: 1 / 3;
  grid-template-columns: 1fr;
  grid-auto-flow: column;
  gap: 20px;
}

.header > :not(:first-child) > * {
  font-size: 1.1rem;
  line-height: 1.5rem;
  border-bottom: 0px solid black;
  transition: all 0.1s ease-in-out;
  -webkit-transition: all 0.12s ease-in-out;
}

.header > *:not(:first-child) > :hover {
  border-bottom: 1.4px solid rgb(78, 78, 78);
  margin-bottom: -1.4px;
}

.header .title {
  font-family: "Cairo";
  line-height: 2.2rem;
}

.header .title h1 {
  width: min-content;
}

/* MESSAGE ELEMENT */
.message {
  grid-column: 1 /3;
  justify-self: center;
  text-align: center;
  font-family: "Cairo";
  font-size: 2rem;
  padding-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.message > button {
  padding: 0.5rem;
  font-size: 1.5rem;
}

.grid {
  margin: 0 2rem 0 2rem;
  display: grid;
  grid-template-rows: auto 1fr;
}

/* Grid element */
.grid-left {
  width: 70%;
  justify-self: end;
  align-self: center;
}

.grid-right {
  width: 70%;
  justify-self: start;
  align-self: center;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  aspect-ratio: 1 /1;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.grid-name {
  font-family: "Cairo";
  justify-self: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.grid-name--human {
  color: blue;
}

.grid-name--computer {
  color: red;
}

/* Cell element */
.cell-p1 {
  border: solid rgb(75, 75, 75) 2px;
  transition: all 0.1s ease-in-out;
  -webkit-transition: all 0.1s ease-in-out;
}

/* Footer element */
.footer {
  font-family: "Cairo";
  grid-column: 1 / 3;
  justify-self: center;
}

@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}

/* Place ship mode */
.grid-hide {
  display: none;
}

.grid-name--hidden {
  visibility: hidden;
}

.grid-middle {
  grid-column: 1 / 3;
  width: 35%;
  justify-self: center;
}

/* Placing ship */
.cell-hover {
  background-color: aquamarine;
}

.cell-hover-attack {
  background-color: silver;
}

.cell-hover-outBound {
  background-color: red;
}

.cell-ship-present {
  background-color: silver;
}

.cell-ship-highlight-interference {
  background-color: red;
}

/* Attacking ship */
.cell-ship-missed {
  background-color: aqua;
}

.cell-ship-hit {
  background-color: red;
}

