* {
  overflow-x: hidden !important;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

*::-webkit-scrollbar {
  display: none;
}

/* Base responsive font size */
html {
  font-size: 18px;
  background-color: #0f172a;
  color: #f1f5f9;
}

@media (max-width: 800px) {
  /* CSS that should be displayed if width is equal to or less than 800px goes here */
}

.spacer {
  width: 50px;
}

#intro-screen {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #0f172a;
  text-align: center;
  padding: 20px;
}

#intro-screen h2 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: #f1f5f9;
}

#interest {
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  width: 80%;
  max-width: 300px;
  margin-bottom: 1rem;
  border: 1px solid #334155;
  border-radius: 8px;
  background-color: #1e293b;
  color: #f1f5f9;
}

#intro-screen button {
  font-size: 1rem;
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #0f172a;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  touch-action: manipulation;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background-color: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

header img {
  height: 35px;
  margin-right: 10px;
}

header h1 {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
  color: #f1f5f9;
}

#app {
  margin-top: 60px;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: calc(100vh - 60px);
}

.card {
  height: calc(100vh - 60px);
  width: 100vw;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  background: #0f172a;
}

.card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  margin-bottom: 1.2rem;
}

.card h2 {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 0.6rem;
  color: #f1f5f9;
}

.card p {
  font-size: 1rem;
  color: #cbd5e1;
  text-align: center;
  max-width: 90%;
}

.card a {
  margin-top: 0.8rem;
  color: #60a5fa;
  text-decoration: underline;
  font-size: 0.9rem;
}

#loading {
  text-align: center;
  padding: 30px;
  color: #94a3b8;
}

.error {
  margin-top: 40vh;
  display: none;
  text-align: center;
  width: 100vw;
  height: 60vh;
}
/* ===== Responsive Layout Enhancements ===== */

/* Smaller phones */
@media (max-width: 400px) {
  #interest {
    font-size: 0.95rem;
    padding: 0.5rem;
  }

  #intro-screen h2 {
    font-size: 1.2rem;
  }

  .card h2 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  header h1 {
    font-size: 0.95rem;
  }

  .card img {
    width: 160px;
    height: 160px;
  }
}

/* Tablets (portrait) */
@media (min-width: 481px) and (max-width: 768px) {
  html {
    font-size: 18px;
  }

  .card {
    padding: 2rem;
  }

  .card img {
    width: 220px;
    height: 220px;
  }
}

/* Tablets & small laptops */
@media (min-width: 769px) and (max-width: 1024px) {
  html {
    font-size: 17px;
  }

  .card {
    flex-direction: column;
    padding: 2rem;
  }

  .card img {
    width: 240px;
    height: 240px;
  }
}

/* Large desktops */
@media (min-width: 1025px) {
  html {
    font-size: 16px;
  }

  #intro-screen {
    padding: 40px;
  }

  .card {
    padding: 3rem;
  }

  .card img {
    width: 280px;
    height: 280px;
  }

  .spacer {
    width: 200px;
  }
}

input,
button,
textarea,
select {
  font-size: 16px !important; /* Prevents iOS zoom bug */
}

/* Set proper viewport height for mobile browsers */
body {
  min-height: 100dvh; /* Better support than 100vh on iOS */
}

/* Prevent scroll bounce on iOS */
html,
body {
  overscroll-behavior: none;
}

/* Prevent horizontal scroll from minor layout bugs */
* {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

#home, #saved {
  text-decoration: underline;
}

#home:hover, #saved:hover {
   color: #bbbbbb;
}

#bookmark {
  position: fixed;
  display: block;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0f172a;

  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}