/**
 * @file main.css - Compiled CSS from main.scss for the 2048 game
 * @author Emaan Hookey
 * @version 1.0.0
 * @date 2025-08-29
 */

body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #fbf8ef;
  font-family: sans-serif;
  font-size: 24px;
  font-weight: 900;
  box-sizing: border-box;
}

.field-cell {
  background: #d6cdc4;
  width: 75px;
  height: 75px;
  border-radius: 5px;
  color: #776e65;
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  position: relative;
  transition: background-color 0.1s ease;
}

.field-cell--2 {
  background: #eee4da;
}

.field-cell--4 {
  background: #ede0c8;
}

.field-cell--8 {
  background: #f2b179;
  color: #f9f6f2;
}

.field-cell--16 {
  background: #f59563;
  color: #f9f6f2;
}

.field-cell--32 {
  background: #f67c5f;
  color: #f9f6f2;
}

.field-cell--64 {
  background: #f65e3b;
  color: #f9f6f2;
}

.field-cell--128 {
  background: #edcf72;
  color: #f9f6f2;
}

.field-cell--256 {
  background: #edcc61;
  color: #f9f6f2;
}

.field-cell--512 {
  background: #edc850;
  color: #f9f6f2;
}

.field-cell--1024 {
  background: #edc53f;
  color: #f9f6f2;
}

.field-cell--2048 {
  background: #edc22e;
  color: #f9f6f2;
}

/* Animation classes */
.field-cell.new-tile {
  animation: new-tile-animation 0.4s ease forwards;
}

.field-cell.merge-tile {
  animation: merge-tile-animation 0.3s ease forwards;
}

.field-cell.move-tile {
  animation: move-tile-animation 0.2s ease-in-out forwards;
}

/* Let's add the animations that were in the SCSS file */
@keyframes new-tile-animation {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes merge-tile-animation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes move-tile-animation {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

/* Add container styling */
.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 15px;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.controls {
  display: flex;
  gap: 20px;
  align-items: center;
}

.info {
  margin: 0;
}

.button {
  padding: 10px 20px;
  background-color: #8f7a66;
  border-radius: 5px;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.button:hover {
  background-color: #9f8b77;
}

/* Message container styles */
.message-container {
  margin-top: 20px;
  text-align: center;
}

.message {
  margin: 10px 0;
}

.hidden {
  display: none;
}
