@charset "UTF-8";
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  src: url("./assets/RedditSans-VariableFont_wght.ttf"); /* IE9 Compat Modes */
}
html, body {
  height: 100vh;
  margin: 0;
  max-width: 100vw;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #Fff;
  font-family: "Open Sans", sans-serif;
  text-align: center;
}

body {
  background: #682E1A;
}

.body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column; /* Stack content vertically */
  align-items: center; /* Left-align content by default */
  background: linear-gradient(to bottom right, #682E1A, #E58339);
  font-size: 1.2rem; /* Default for smartphones */
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  text-align: left; /* Default text alignment to left */
}

/* Center specific elements (div, h1, h2, etc.) */
.body div,
.body h1,
.body h2,
.body h3,
.body h4,
.body h5,
.body h6 {
  text-align: center; /* Center text for these elements */
  align-self: center; /* Center these elements horizontally within the flex container */
}

/* Center images, respecting inline width */
.body img {
  display: block; /* Ensure image behaves as a block for centering */
  align-self: center; /* Center horizontally in flex container */
  margin-left: auto; /* Fallback centering */
  margin-right: auto; /* Fallback centering */
  max-width: 25%; /* Prevent overflow on smaller screens */
  height: auto; /* Maintain aspect ratio */
  width: auto; /* Default to intrinsic width, allowing inline width to take precedence */
}

/* For main content width */
main {
  max-width: 700px; /* Default for smartphones */
}

/* For tablets (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .body {
    font-size: 1.4rem; /* Slightly larger for tablets */
  }
  main {
    max-width: 900px; /* Medium max-width for tablets */
  }
}
/* For PCs (1024px and above) */
@media (min-width: 1024px) {
  .body {
    font-size: 1.5rem; /* Larger for PCs */
  }
  main {
    max-width: 1000px; /* Larger max-width for PCs */
  }
}
.heart:after {
  content: "❤️";
  font-size: 1.75em;
}

.crab:after {
  content: "🦀";
  font-size: 1.75em;
}

h1 + .subtitle {
  display: block;
  margin-top: -1em;
}

* {
  box-sizing: border-box;
}

.header {
  position: sticky;
  top: 0;
}

.header a {
  float: left;
  color: black;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 18px;
  line-height: 25px;
}

.header a.logo {
  font-size: 25px;
  font-weight: bold;
}

.header a:hover {
  background-color: #ddd;
  color: black;
}

.header a.active {
  background-color: #E58339;
  color: white;
}

.header-right {
  float: right;
}

@media screen and (max-width: 500px) {
  .header a {
    float: none;
    display: block;
    text-align: left;
  }
  .header-right {
    float: none;
  }
}
@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
    background-color: #333;
  }
}
.topnav {
  overflow: visible;
  background-color: #333;
  min-height: 50px;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  position: sticky;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #E58339;
  color: white;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}
@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}
.btn {
  background: #E58339;
  color: white;
  padding: 10px 20px;
  border-radius: 15px;
  border: 0px;
  display: inline-block;
  align-self: center;
  text-align: center;
}
