/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  background-color: #eeeeee;
  font-family: 'Inter', sans-serif;
  color: #2020cc;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push top and bottom apart */
  align-items: center;
  height: 100vh;
  height: 100svh; /* Override on browsers that support svh */
  text-align: center;
  padding: 40px 20px;
  position: relative; /* Needed for absolute positioning inside */
}

/* Top & bottom text */
.top-text {
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: #272ec1;
  user-select: none; /* Prevent text selection */
}

/* Bottom email text (can be highlighted) */
.bottom-email {
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: #272ec1;
  user-select: text; /* Allow email to be selected */
}

.center-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center; /* Center logo/about horizontally */
  width: 100%;
  position: relative;
  flex-grow: 1; /* This fills space between top/bottom */
  /* Removed fixed height */
}

/* Toggle items: shared styles for logo and text */
.toggle-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 600px;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 1;
  pointer-events: none;
  padding: 0 24px; /* breathing room */
}

.toggle-item.show {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

#logo {
  width: clamp(180px, 30vw, 300px);
  height: auto;
  user-select: none; /* Prevent logo from being selected */
  -webkit-user-drag: none; /* Prevent dragging the logo */
}

#about p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0px;
  padding-left: 48px;
  text-align: left;
  user-select: none; /* Prevent text selection */
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .container {
    padding: 30px 16px;
  }

  .toggle-item {
    padding: 0 32px;
  }

 #logo {
    width: clamp(200px, 50vw, 360px); /* Adjust min/mid/max sizes */
  }
  
  #about p {
    font-size: 15px;
    padding-left: 24px;
  }
}
