/* General Page Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #ffdde1, #ee9ca7); /* Baby pink gradient background */
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #d63384; /* Deep pink heading */
    text-shadow: 2px 2px 5px rgba(255, 182, 193, 0.3); /* Soft shadow */
    font-size: 2rem;
}

h2 {
    color: #c71585; /* Medium pink for subheadings */
    margin: 10px 0;
    text-shadow: 1px 1px 3px rgba(255, 182, 193, 0.2);
    font-size: 1.4rem;
}

/* Form Styling */
form {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0px 5px 15px rgba(255, 182, 193, 0.2);
}

/* Semester Container Styling */
.semester {
    margin-bottom: 20px;
    padding: 15px;
    border: 2px solid #ff69b4;
    border-radius: 8px;
    background: rgba(255, 228, 225, 0.7); /* Light pink */
}

.subject {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ffb6c1;
    border-radius: 5px;
    background: rgba(255, 240, 245, 0.7); /* Light pastel pink */
}

/* Input and Select Fields */
label {
    display: block;
    margin: 5px 0;
    font-weight: bold;
    color: #d63384;
}

input, select {
    width: calc(100% - 20px);
    padding: 8px 10px;
    border: 1px solid #ffb6c1;
    border-radius: 5px;
    margin-bottom: 10px;
    outline: none;
    background: #fff;
    color: #333;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

/* Buttons */
button {
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.05);
}

#add-semester {
    background: #ff69b4;
    color: #fff;
}

#add-semester:hover {
    background: #ff1493;
}

.add-subject {
    background: #ffb6c1;
    color: #333;
}

.add-subject:hover {
    background: #ffc0cb;
}

/* Results Section */
#result {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 228, 225, 0.7);
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    color: #c71585;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
}

/* Footer Styling */
footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    button {
        font-size: 14px;
        padding: 8px 12px;
    }

    input, select {
        font-size: 13px;
        padding: 6px 8px;
    }
}
