@import url('https://fonts.googleapis.com/css2?family=Barlow&display=swap');

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background-color: #b96ac9;
  height: 6rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 8px 5px grey;
  z-index: 1;
}

.header-text {
  color: #ffd2fc;
  font-size: 3rem;
  font-weight: bold;
  font-family: 'Barlow', sans-serif;
}

.main {
  background-color: #ddfff7;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gameboard {
  height: 500px;
  width: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
}

.playerOne {
  color: red;
}

.playerTwo {
  color: blue;
}

#cell-0,
#cell-1,
#cell-3,
#cell-4,
#cell-6,
#cell-7 {
  border-right: solid black 4px;
}

#cell-1,
#cell-2,
#cell-4,
#cell-5,
#cell-7,
#cell-8 {
  border-left: solid black 4px;
}

#cell-0,
#cell-1,
#cell-2,
#cell-3,
#cell-4,
#cell-5 {
  border-bottom: solid black 4px;
}

#cell-3,
#cell-4,
#cell-5,
#cell-6,
#cell-7,
#cell-8 {
  border-top: solid black 4px;
}

.cells {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1.5rem;
  font-size: 8rem;
  font-weight: bold;
  font-family: 'Barlow', sans-serif;
}

.modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fefefe;
  border-radius: 15px;
  border: 1px solid #888;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.forms {
  display: flex;
  gap: 30px;
}

input[type='text'] {
  width: 250px;
  height: 25px;
  border-radius: 15px;
  border: solid gray 4px;
  margin-bottom: 10px;
}

#playerOneMark {
  color: red;
}

#playerTwoMark {
  color: blue;
}

.playerMarks {
  font-size: 6rem;
  font-family: 'Barlow', sans-serif;
  font-weight: bold;
  animation: UpAndDown 4.5s linear infinite;
}

@keyframes UpAndDown {
  0%,
  100% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.1);
  }
}

.player-labels {
  font-family: 'Barlow', sans-serif;
  font-size: 1.7rem;
  font-weight: bold;
}

form {
  display: flex;
  gap: 16px;
  align-items: center;
}

.player-containers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.play-btn {
  width: 160px;
  height: auto;
  border-radius: 10px;
  border-style: none;
  background-color: #b96ac9;
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  padding: 5px;
  font-family: 'Barlow', sans-serif;
}

#new-game-modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
}

.new-game-modal-content {
  background-color: white;
  border-radius: 15px;
  border: 1px solid #888;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
  font-size: 3rem;
  font-weight: bold;
  font-family: 'Barlow', sans-serif;
  min-width: 350px;
}

.new-game-btn {
  background-color: red;
  width: 55%;
  height: auto;
  border-radius: 7px;
  font-size: 1.7rem;
  color: white;
  font-family: 'Barlow', sans-serif;
  padding: 10px;
}

.btns {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#comp-label {
  font-family: 'Barlow', sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
}

.comp-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

#comp {
  height: 20px;
  width: 20px;
}
