/* Google-style clean theme */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 18px;
  background-image: url("background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

/* Header */
.main-header {
  position: absolute;
  top: 0%;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: rgba(224, 224, 224, 0.112);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-sizing: border-box;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: #000;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 10px;
}

.project-btn {
  display: flex;
  font-size: 1rem;
  background-color: gray;
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  transition: background-color 0.3s;
  cursor: pointer;
  border: none;
}

.project-btn:hover {
  background-color: #4f4f4f;
}

.social-btn {
  font-size: 1rem;
  background-color: #0073b1;
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  transition: background-color 0.3s;
}
.apijoke{
  font-size: 1rem;
  background-color: rgb(194, 165, 1);
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  transition: background-color 0.3s;
}
.apijoke:hover{
  background-color: rgb(157, 134, 3);
}

.social-btn:last-of-type {
  background-color: #333;
}

.social-btn:hover {
  background-color: #005582;
}

/* Clock */
#timestamp {
  position: absolute;
  top: 50px;
  right: 30px;
  font-size: 1rem;
  color: #555;
  background: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  font-family: monospace;
}

/* Main content */
.google-style-container {
  width: 100%;
  max-width: 600px;
  padding-top: 80px;
}

.logo {
  font-size: 5rem;
  font-weight: bold;
  color: white;
  margin-top: 30px;
  margin-bottom: 10px;
  text-align: center;
  transform: translateX(-200px);
  white-space: nowrap;
  padding: 20px 65px;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.3);
  display: inline-block;
}

.try-searching {
  color: white;
  padding: 10px 10px;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.3);
  display: inline-block;
}

.search-box {
  display: flex;
  font-size: 1.2rem;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.search-box input {
  width: 100%;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: 30px;
  border: 1px solid #ccc;
  font-size: 1.2rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  outline: none;
}

.search-box button {
  padding: 16px 20px;
  font-size: 1.2rem;
  border-radius: 30px;
  border: none;
  background-color: #4285f4;
  color: white;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

.search-box button:hover {
  background-color: rgba(255, 255, 255, 0.726);
  color: #4285f4;
  border: 1px solid #4285f4;
}

/* Chat Response */
#response {
  margin-top: 30px;
  max-height: 250px;
  overflow-y: auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  white-space: pre-wrap;
  position: relative;
}

#response a.resume-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px auto 0 auto;
  font-size: 1.1rem;
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  background: #f1f1f1;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: fit-content;
}

#response a.resume-link:hover {
  background: #e6e6e6;
  text-decoration: none;
}

#response::-webkit-scrollbar {
  width: 6px;
}

#response::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

/* Suggestions */
.suggestions ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.suggestions li {
  font-size: 1.1rem;
  margin: 10px 0;
  padding: 10px 16px;
  background-color: #ffffffcc;
  border-radius: 10px;
  color: #003366;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.suggestions li:hover {
  background-color: #e6e6e6;
  color: #004a99;
  text-decoration: underline;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: #fff;
  padding: 30px;
  margin: 10% auto;
  width: 300px;
  border-radius: 10px;
  text-align: center;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content ul {
  list-style: none;
  padding: 0;
}

.modal-content li {
  margin: 10px 0;
}

.modal-content a {
  text-decoration: none;
  color: #0073b1;
  font-weight: bold;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}


/* Mobile responsiveness */
@media (max-width: 600px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 15px;
    gap: 10px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .project-btn,
  .social-btn {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .google-style-container {
    padding-top: 100px;
    max-width: 90%;
  }

  .logo {
    font-size: 2.8rem;
    transform: none;
    padding: 15px 20px;
    white-space: normal;
  }

  .search-box input,
  .search-box button {
    font-size: 1rem;
    padding: 12px 14px;
  }

  .suggestions li {
    font-size: 1rem;
    padding: 10px;
  }

  #response {
    font-size: 1rem;
    max-width: 90%;
  }

  #timestamp {
    top: 100px;
    right: 20px;
    font-size: 0.9rem;
  }
}

/* SUGGESTION BOX STYLES */
.suggestion-box {
  position: absolute;
  bottom: 250px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  width: 300px;
}

.suggestion-box h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.suggestion-box textarea {
  width: 90%;
  height: 80px;
  resize: none;
  font-size: 1rem;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.suggestion-box button {
  margin-top: 10px;
  width: 100%;
  background-color: #4285f4;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.suggestion-box button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mobile styles for suggestion box */
@media (max-width: 600px) {
  .suggestion-header {
    display: none;
  }

  .suggestion-box {
    position: static;
    width: 75%;
    max-width: 100%;
    margin: 5px auto 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .suggestion-box textarea {
    flex: 1;
    height: 20px;
    font-size: 1rem;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 20px;
    margin: 0;
  }

  .suggestion-box button {
    width: 80px;
    height: 30px;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 8px;
    background-color: #4285f4;
    color: white;
    border: none;
    cursor: pointer;
    margin: 0;
  }
}
