
body {
    font-family: Arial, sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive grid */
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
}

.container_grid {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 350px;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

h2 {
    color: #444;
    font-size: 20px;
    margin-bottom: 15px;
}

.subject {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.subject label {
    flex: 1;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
}

.subject input {
    flex: 2;
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.subject input:focus {
    border-color: #28a745;
    outline: none;
}

button {
    background-color: #28a745;
    color: white;
    padding: 12px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
}

#cgpaResult {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 15px;
    
    
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(2, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(1, minmax(320px, 1fr));
    }
}
