/* Global settings */
* {
  box-sizing: border-box;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* Set font and reset default margins and padding */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

/* Set display properties for the app container */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header styles */
header {
  background: url("nightshade@0.5x.png") top left no-repeat;
  background-color: #DFB17995;
  color: #fff;
  padding: 20px;
  text-align: center;
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center; /* center vertically */
}

/* Logo styles */
.logo {
  max-width: 100%;
  height: auto;
}

/* Logo link styles */
.logo-link {
  display: inline-flex;
  z-index: 1;
  margin-right: 10px;
  text-decoration: none;
}

/* Header link styles */
header h1 a {
  max-width: 50%;
  z-index: 1;
  margin: 0;
  font-size: calc(1.5vw + 1rem); /* Scale font size based on viewport width */
  color: #916094;
  padding: 10px;
  text-decoration: none;
}

/* Main content styles */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f7f7f7;
}

/* Category buttons container */
.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  width: 80%; /* Set the width of the container */
  margin-left: auto;
  margin-right: auto;
}

/* Category buttons styles */
.categories button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #DFB17995;
  color: #916094;
  cursor: pointer;
  width: calc(50% - 20px); /* 20px is for margin */
  margin: 10px;
  box-sizing: border-box;
  font-size: calc(1.5vw + 0.5rem); /* Scale font size based on viewport width */
  white-space: nowrap; /* Prevent text wrapping */
  overflow: hidden; /* Hide text that overflows */
  text-overflow: ellipsis; /* Add ellipsis for overflowing text */
}


/* Affirmation area styles */
.affirmation {
  font-size: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  margin-bottom: 20px;
  background-color: #deecf5;
  border: 10px solid #d5e7f7df;
  border-radius: 10px;
  width: 90%; /* Set the width 10% wider than the .categories container */
  height: 6em;
  color: #916094;
  margin-left: auto;
  margin-right: auto;
}



/* Main title styles */
main h2 {
  font-size: 2rem;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #DFB17995;
  color: #916094;
}

/* Category buttons hover effect */
.categories button:hover {
  background-color: #DFB179;
  color: #916094;
}

footer {
  background-color: #DFB17995;
  color: #666;
  padding: 10px;
  text-align: center;
}

/* Media query for large screens (>=1200px) */
@media screen and (min-width: 1200px) {
  header h1 a {
    font-size: 3rem;
  }

  .affirmation {
    font-size: 3.5rem;
  }

  main h2 {
    font-size: 3rem;
  }

  .categories button {
    font-size: 3rem;
  }
}

/* Media query for medium screens (>=768px) */
@media screen and (min-width: 768px) {
  .categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
  }

  .categories button {
    max-width: 40%;
  }
}