html, body, #app {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Fredoka', sans-serif;
  font-weight: 550;
}

body {
  background: url('assets/mainBackground.webp') center/cover no-repeat fixed;
}

.spritePosition {
    margin: 10px 0 0 10px;
    font-size: 0.8em;
}

.button {
    width: 140px;
    margin: 10px;
    padding: 10px;
    background-color: #000000;
    color: rgba(255, 255, 255, 0.87);
    border: 1px solid rgba(255, 255, 255, 0.87);
    cursor: pointer;
    transition: all 0.3s;

    &:hover {
        border: 1px solid #0ec3c9;
        color: #0ec3c9;
    }

    &:active {
        background-color: #0ec3c9;
    }

    /* Disabled styles */
    &:disabled {
        cursor: not-allowed;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.3);
    }
}


h1 {
  font-size: 2.25rem;
  font-weight: bold;
  text-align: center;
  color: #0ea5e9;
  margin-bottom: 2rem;
}

/***** AAC Interface *****/

/* Main container for the AAC interface */
.aac-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* AAC Device */
.aac-device {
  background-color: #FFA726;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  width: 100%;
  max-width: 38rem;
}

/* Container for the selected food text */
.aac-foods {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f0f9ff; 
  border-radius: 0.75rem;
  text-align: center;
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text style for "You selected: FoodName */
.aac-selected-food {
  font-size: 2rem;
  color: #0ea5e9;
  font-family: 'Fredoka', sans-serif;
  font-weight: 550;
  display: flex;
  align-items: center;
}

/* Small image displayed next to the "You selected" text */
.aac-selected-food-image-display {
  height: 3rem;
  width: 3rem;
}

/* Instruction Text */
.aac-instruction {
  font-size: 2rem;
  color: #0ea5e9;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 550;
}


/* Food & Category layout */
.aac-grid {
  grid-template-columns: repeat(4, 1fr);
  display: grid;
  gap: 1rem;
}

.aac-back-button:hover {
  background-color: #475569;
}

.aac-grid-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Food buttons */
.aac-food-button {
  padding: 0.5rem; 
  background-color: #0ea5e9;
  color: white;
  border-radius: 0.75rem;
  font-size: 1.3rem; 
  font-weight: 600;
  transition: background-color 0.15s ease-in-out, transform 0.1s ease-in-out;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  min-height: 8rem; 
  text-align: center;
  touch-action: manipulation;
}

.aac-food-button:hover {
  background-color: #0369a1;
}

.aac-food-button:active {
  background-color: #0284c7;
  transform: translateY(1px);
}

/* Category buttons extending food buttons*/
.aac-category-button {
  background-color: #0ea5e9;
}

.aac-category-button:hover {
  background-color: #0369a1;
}

/* Image within the button */
.aac-food-image { 
  max-width: 80%; 
  max-height: 4.5rem; 
  object-fit: contain; 
  margin-bottom: 0.25rem; 
}

/* Button when it's selected */
.aac-food-button.aac-food-selected { 
  outline: 3px solid #e6c611;
  background-color: #0284c7;
}

.aac-food-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none; 
}

.aac-food-button:disabled:hover {
  background-color: #0ea5e9; 
}

/***** End of AAC Interface Styles *****/

/* Phaser Canvas*/
#game-container {
    width: 100%;
    height: 100%;
}

@media (max-width: 750px) {

    .aac-device {
        max-width: 100%;
    }
    .aac-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aac-grid-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .aac-food-button {
        min-height: 6rem; 
        font-size: 1.1rem; 
    }

    .current-food-indicator {
        width: 180px;
    }
}

/* Custom Font */
@font-face {
  font-family: 'Fredoka';
  src: url('/fredoka-variable.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}