/* ==============================
   Datadog Purple Theme - Tic Tac Toe
   ============================== */

/*Header */
#header .profile img {
  margin: 15px auto;
  display: block;
  width: 150px;         /* bigger so text is legible */
  height: 150px;        /* same as width → circle */
  object-fit: contain;  /* keeps entire logo inside */
  background-color: #2c2f3f; /* fills circle background */
  border-radius: 50%;   /* ensures circle */
  border: 8px solid #2c2f3f;
  padding: 10px;        /* stops bottle/text from being cut */
}

/* General Page Styling */
body {
  background: #f7f5fb; /* light purple-gray */
  color: #2e2e2e;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
}

/* Headings & Instructions */
h1, #ins, #print {
  color: #632ca6; /* Datadog Purple */
  font-weight: 600;
  text-align: center;
}

#ins {
  font-size: 1rem;
  margin-bottom: 1rem;
}

#print {
  font-size: 1.3rem;
  font-weight: 600;
  color: #4d1f80; /* darker purple */
  margin-top: 1rem;
}

/* Game Board Container */
.ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem auto;
}

/* Each Row */
.row {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

/* Tic Tac Toe Cells */
.cell {
  width: 100px;
  height: 100px;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  border: 2px solid #632ca6;
  border-radius: 12px;
  margin: 4px;
  cursor: pointer;
  background: #ffffff;
  color: #632ca6;
  transition: all 0.3s ease;
}

.cell:hover {
  background: #ece2f8; /* lighter purple */
  transform: scale(1.05);
}

/* X and O colors */
.cell[value="X"], .cell:read-only[value="X"] {
  color: #4d1f80; /* deep purple for X */
}

.cell[value="O"], .cell:read-only[value="O"] {
  color: #9c6ade; /* softer purple for O */
}

/* Reset Button */
#but {
  background-color: #632ca6;
  border: none;
  font-weight: 600;
  border-radius: 25px;
  padding: 10px 25px;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#but:hover {
  background-color: #4d1f80; /* darker purple */
  transform: scale(1.05);
}

/* Back to top button */
.back-to-top {
  background: #632ca6;
  color: white;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.2s ease;
}

.back-to-top:hover {
  background: #4d1f80;
  transform: scale(1.1);
}
