/* Kevin Powell Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

html,
body {
  color-scheme: dark light;
  height: 100%;
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 65ch;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
textarea,
button,
select {
  font: inherit;
}

/*******************************
        PROJECT BELOW
*******************************/

/* Project Fonts */
@font-face {
  font-family: "PressStart2P";
  src: url(./fonts/PressStart2P-Regular.woff) format("woff"),
    url(./fonts/PressStart2P-Regular.woff2) format("woff2");
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "VT323";
  src: url(./fonts/VT323-Regular.woff) format("woff"),
    url(./fonts/VT323-Regular.woff2) format("woff2");
  font-weight: normal;
  font-display: swap;
}

.main-container {
  position: relative;
}

.background-image {
  height: 100vh;
  width: 100vw;
}

/* Player Modal */
.player-modal:open {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 75vh;
  width: 50vw;
  top: 10%;
  left: 25%;
  gap: 1.5rem;
  color: #ff6f61;
  border-radius: 1rem;
  border: 0.4rem solid #eee8aa;
  background-color: #000000;
  backdrop-filter: blur(40px);
}
.player-modal::backdrop {
  backdrop-filter: blur(5px);
}

.form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form {
  gap: 1.5rem;
}

.player-modal h1 {
  font-family: "PressStart2P"; /**/
  font-size: 1.65rem;
}

.player-modal h2 {
  font-family: "VT323";
  font-size: 2.5rem;
}
.form label,
.form input,
.start-game-button {
  font-family: "VT323";
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.form input {
  padding-left: 0.2rem;
}

.form input:focus {
  outline: 2px solid #eee8aa;
  border-radius: 0.1rem;
}

.start-game-button {
  background-color: #ff6f61;
  border-radius: 0.5rem;
  padding: 0.4rem;
  border: none;
}

.start-game-button:focus {
  outline: 2px solid #eee8aa;
}

/* End Game Modal */
.end-game-modal:open {
  height: 11rem;
  width: 30rem;
  left: 34rem;
  top: 20%;
  background-color: #000000;
  color: #ba55d3;
  border-radius: 1rem;
  border: 0.4rem solid #eee8aa;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2rem;
  font-size: 3rem;
  z-index: 3;
  font-family: "VT323";
}

/* Header Text */
.game-container {
  position: absolute;
  z-index: 2;
  top: 3rem;
  left: 33rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.header-container,
.board-container,
.reset-button {
  border-radius: 1rem;
  border: 0.4rem solid #eee8aa;
  background-color: #000000;
  color: #ff6f61;
}

.header-container {
  height: 10rem;
  width: 32rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.header-container h2 {
  font-family: "PressStart2P";
  font-size: 1.5rem;
}

.player-turn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2rem;
  width: 25rem;
  font-family: "VT323";
  font-size: 2rem;
  overflow-x: auto;
}

/* Game Board */
.board-container {
  height: 25rem;
  width: 25rem;
  gap: 0.3rem;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.row {
  display: flex;
  height: 100%;
  width: 100%;
  gap: 0.5rem;
}

.cell:focus {
  outline: 2px solid #eee8aa;
}

.cell {
  background-color: #ff6f61;
  color: #000000;
  height: 100%;
  width: 100%;
  border-radius: 0.5rem;
  font-family: "VT323";
  font-size: 4rem;
  border: none;
}

/* Reset Button */
.reset-button {
  font-family: "VT323";
  font-size: 2.5rem;
  height: 4.5rem;
  width: 9rem;
  border-radius: 1rem;
}
