/* ===== GLOBAL STYLES ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url("images.png") no-repeat center center fixed;
  background-size: cover;
  color: white;
  position: relative;
}

/* Dark overlay for readability */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: -1;
}

/* ===== HEADER / LANDING PAGE ===== */
header {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Welcome Box (Glass Effect) */
.welcome-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  max-width: 500px;
}

.welcome-box h1 {
  margin-bottom: 15px;
}

.welcome-box p {
  margin-bottom: 25px;
  font-size: 16px;
  opacity: 0.9;
}

/* ===== BUTTONS ===== */
.enter-btn {
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 30px;
  border: none;
  background: #3b90c2;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}

.enter-btn:hover {
  background: #764ba2;
  transform: scale(1.05);
}

button {
  padding: 10px 30px;
  font-size: 14px;
  border-radius: 30px;
  border: none;
  background: #3b90c2;
  color: white;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}

button:hover {
  background: #764ba2;
  transform: scale(1.05);
}

/* ===== ACTIVITIES SECTION ===== */
.activities-section {
  display: none;
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 30px;
  font-weight: bold;
}

.controls {
  text-align: center;
  margin-bottom: 25px;
}

select {
  padding: 8px 15px;
  border-radius: 20px;
  border: none;
  outline: none;
}

/* ===== GRID CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Glass Cards */
.card {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* ===== INPUTS ===== */
input {
  padding: 8px 12px;
  border-radius: 20px;
  border: none;
  margin-top: 8px;
  width: 90%;
}

.output {
  margin-top: 15px;
  padding: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 14px;
}

/* ===== Activity 14 Image ===== */
#activity14Btn {
  margin-bottom: 20px;
}

#myImage {
  display: block;
  margin: 15px auto 0;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

#myImage:hover {
  transform: scale(1.05);
}

/* ===== WEEK 3 CONTAINER ===== */

#week3 {
  display: flex;
  justify-content: center;
  align-items: center;
}

#week3 .card {
  width: 100%;
  max-width: 1000px; /* wider so inputs fit */
  margin: 0 auto;
  text-align: center;
}

/* ===== ACTIVITY 16 COMPACT GRID ===== */

/* ACTIVITY 16 HORIZONTAL LAYOUT */

.grade-container{
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:20px;
margin-top:5px;
}

.grade-box{
background:rgba(255,255,255,0.08);
padding:20px;
border-radius:20px;
text-align:center;
}

.grade-box select{
width:180px;
margin-bottom:10px;
}

#quizInputs,
#examInputs,
#mcoInputs{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
margin-top:10px;
}

#quizInputs input,
#examInputs input,
#mcoInputs input{
width:100%;
padding:5px;
font-size:12px;
}

.final-area{
margin-top:20px;
text-align:center;
}

#gradeOutput{
margin-top:10px;
padding:10px;
background:rgba(255,255,255,0.15);
border-radius:8px;
font-weight:bold;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 20px;
  color: #ffffff;
  background: rgba(0,0,0,0.6);
  margin-top: 40px;
}