/* Google Font (optional but recommended) */
@import url(‘
https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap’ ;);
* {
box-sizing: border-box;
}
body {
font-family: ‘Poppins’, Arial, sans-serif;
background: linear-gradient(135deg, #eef3f9, #f8fbff);
margin: 0;
padding: 0;
}
/* Main Card */
.container {
width: 90%;
max-width: 450px;
margin: 50px auto;
background: #ffffff;
padding: 28px 26px;
border-radius: 14px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
animation: fadeInUp 0.8s ease;
}
/* Heading */
h2 {
text-align: center;
font-size: 26px;
color: #0a3d62;
margin-bottom: 25px;
position: relative;
}
h2::after {
content: “”;
width: 70px;
height: 4px;
background: #38ada9;
display: block;
margin: 8px auto 0;
border-radius: 2px;
}
/* Labels */
label {
font-weight: 500;
margin-top: 15px;
display: block;
color: #333;
}
/* Inputs & Select */
select,
input[type=”password”] {
width: 100%;
padding: 12px 14px;
margin-top: 8px;
border: 1px solid #cfd6df;
border-radius: 8px;
font-size: 15px;
transition: border 0.3s, box-shadow 0.3s;
}
select:focus,
input[type=”password”]:focus {
outline: none;
border-color: #38ada9;
box-shadow: 0 0 0 3px rgba(56, 173, 169, 0.15);
}
/* Button */
button {
width: 100%;
margin-top: 28px;
padding: 13px;
background: linear-gradient(135deg, #38ada9, #0a8f8f);
color: #ffffff;
font-size: 17px;
font-weight: 600;
border: none;
border-radius: 9px;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}
button:hover {
background: linear-gradient(135deg, #0a8f8f, #077a7a);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
transform: translateY(-2px);
}
/* Success Message */
.success-box {
margin-top: 22px;
padding: 18px;
background: #eafaf0;
border-left: 5px solid #2ecc71;
border-radius: 8px;
font-size: 15px;
color: #1e8449;
display: none;
}
/* Animation */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Mobile Friendly */
@media (max-width: 480px) {
.container {
margin: 30px auto;
padding: 22px;
}
h2 {
font-size: 23px;
}
button {
font-size: 16px;
}
}
Holiday Homework – St. Xavier’s English Medium School Ambikapur
body {
font-family: Arial, sans-serif;
background: #f2f6fa;
margin: 0;
padding: 0;
}
.container {
width: 90%;
max-width: 450px;
margin: 40px auto;
background: #ffffff;
padding: 25px;
border-radius: 12px;
box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}
h2 {
text-align: center;
font-size: 26px;
margin-bottom: 20px;
color: #004a7c;
border-bottom: 3px solid #5DA7DF;
display: inline-block;
padding-bottom: 3px;
}
label {
font-weight: bold;
margin-top: 15px;
display: block;
color: #333;
}
select, input[type=”password”] {
width: 100%;
padding: 12px;
margin-top: 8px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 15px;
}
button {
width: 100%;
margin-top: 25px;
padding: 12px;
background: #008A94;
color: white;
font-size: 18px;
border: none;
border-radius: 8px;
cursor: pointer;
}
button:hover {
background: #006f73;
}
.success-box {
margin-top: 20px;
padding: 18px;
background: #e2f9e5;
border-left: 5px solid #33a65b;
display: none;
border-radius: 8px;
}
Holiday Homework
Select Class
— Choose Class —
Pre-NC
Nursery
KG-I
KG-II
Class 1
Class 2
Class 3
Class 4
Class 5
Class 6
Class 7
Class 8
Class 9
Class 10
Class 11
Class 12
Subject
— Choose Subject —
English
Hindi
Maths
Science
Computer
Sanskrit
General Knowledge
Moral Science
Social Science
EVS
Drawing
Password
View Homework
Password matched!
Homework will appear here… (Add your links or files)
function checkPassword() {
let pass = document.getElementById(“password”).value;
if (pass === “sxshw”) {
document.getElementById(“successBox”).style.display = “block”;
return false; // stops page reload
} else {
alert(“Incorrect Password! Try again.”);
return false;
}
}