/* Ron Penones | November 15th 2025 - Feel free to share and reproduce, the core idea is mine with some assistance of AI. Padayon! */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: radial-gradient(circle at top left, #141e30, #243b55);
  color: #757575;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  text-align: center;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  /* max-width: 690px;*/ /* ok naman ang rendering sa desktop  pero sa mobile sablay eh */
  width: 100%;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
}

.repo-message {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.repo-message a {
  color: #8be9fd;
  text-decoration: none;
  font-weight: 600;
}

.repo-message a:hover {
  text-decoration: underline;
}

.download-btn {
  background: linear-gradient(45deg, #ff6ec4, #7873f5);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.download-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #ff8fd8, #9b89ff);
}

/* FOOTER */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-left {
  gap: 0.8rem;
}

.footer-left img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #8be9fd;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.footer-left img:hover {
  transform: scale(1.1);
}

.footer-left p {
  font-size: 0.85rem;
  margin: 0;
}

.footer-left a.footer-name {
  color: #8be9fd;
  text-decoration: none;
  font-weight: 600;
}

.footer-center small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

.footer-center a {
  color: #8be9fd;
  text-decoration: none;
  font-weight: 600;
}

.footer-right {
  gap: 0.5rem;
}

.fb-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.fb-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #1877f2;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fb-img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #1877f2;
}

.fb-link span {
  font-weight: 500;
  color: white;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
  }
  .card {
    max-width: 90%;
    padding: 1.5rem;
  }
  .repo-message {
    font-size: 0.9rem;
  }
  .download-btn {
    width: 100%;
  }
}

/* ==== Disclaimer Modal Styles ==== */

.disclaimer-btn {
padding: 10px 18px;
border: none;
border-radius: 8px;
font-size: 0.95rem;
cursor: pointer;
background: #0077ff;
color: white;
transition: 0.2s ease-in-out;
}

.disclaimer-btn:hover {
background: #005fcc;
transform: translateY(-1px);
}

.disclaimer-modal {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0,0,0,0.55);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}

.disclaimer-modal-content {
width: 90%;
max-width: 700px;
background: #ffffff;
padding: 20px;
border-radius: 12px;
max-height: 85vh;
overflow-y: auto;
box-shadow: 0 2px 12px rgba(0,0,0,0.2);
position: relative;
}

.disclaimer-close-btn {
position: absolute;
top: 10px;
right: 10px;
border: none;
background: transparent;
font-size: 1.8rem;
cursor: pointer;
color: #444;
}

.disclaimer-close-btn:hover {
color: #000;
}

.disclaimer-text {
font-family: Arial, sans-serif;
font-size: 0.95rem;
line-height: 1.5;
color: #222;
}

.md-btn {
  display: block;
  padding: 14px 18px;
  margin: 12px 0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: 0.25s ease;
}

.md-btn.success {
  background: #e3ffe3;
  border: 2px solid #28a745;
  color: #065f1a;
}

.md-btn.success:hover {
  background: #c6ffc6;
}

.md-btn.warning {
  background: #fff7d8;
  border: 2px solid #e3b400;
  color: #7a5c00;
}

.md-btn.warning:hover {
  background: #ffefb3;
}

/* ==== Excuse Letter Modal Styles ==== */
.excuse-btn {
  background: #0077ff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1em;
  transition: 0.3s;
}
.excuse-btn:hover {
  background: #005fcc;
}

#excuse-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 10px;
  max-width: 600px;
  margin: 10vh auto;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #444;
}

.markdown-body {
  max-height: 60vh;
  overflow-y: auto;
  line-height: 1.6;
}

.markdown-body p {
  margin-bottom: 1em;
}

/* ==== Para hindi lumagpas iyong lapad ng satellite images sa card ==== */

#himawari-img {
  width: 100%;
  max-width: 650px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  #himawari-img {
    max-width: 100%;
  }
}
