*{
	box-sizing:border-box;
  }      

:root {
            --success-color: #7204d3;
            --warning-color: #0066ff;
            --danger-color: #f43659;
        }
.linkgrade{
	text-align: center;
	font-size: 18px;
}
#heading{
	text-align:center;
}
        .container {
            max-width: 900px;
            background-color: white;
            margin: auto;
						padding:10px;
           
        }

        span {
            word-break: break-all;
            font-size: 14px;
        }

        h1 {
            margin-bottom: 1.5rem;
					
        }

        details {
            margin-bottom: 1.5rem;
            border: 1px solid #e0e0e0;
            border-radius: 1rem;
            padding: 1.5rem;
            background: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
					
        }

        details:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        details[open] summary {
            margin-bottom: 1.5rem;
            border-bottom: 1px solid #eee;
            padding-bottom: 1rem;
        }

        summary {
            font-weight: 600;
            cursor: pointer;
            font-size: 1.2rem;
        }

        .grid {
            gap: 1.5rem;
        }

        label {
            font-weight: 500;
            margin-bottom: 0.5rem;
            display: block;
            color: #555;
        }

        select {
            width: 100%;
            padding: 0.75rem;
            border-radius: 0.5rem;
            border: 1px solid #ddd;
            background-color: #f9f9f9;
            font-size: 1rem;
        }

        .result {
            margin-top: 1.5rem;
            padding: 1.5rem;
            background: #94e3f7;
            border-radius: 0.5rem;
            text-align: center;
        }

        .grade-display {
            font-size: 2.5rem;
            font-weight: 700;
            display: block;
            margin-bottom: 0.5rem;
        }


        .grade-a {
            color: var(--success-color);
        }

        .grade-b {
            color: #2196F3;
        }

        .grade-c {
            color: var(--warning-color);
        }

        .grade-d,
        .grade-e {
            color: var(--danger-color);
        }

        .feedback {
            padding: 1rem;
            border-radius: 0.5rem;
            margin-top: 1rem;
            text-align: center;
            font-weight: 500;
            display: none;
        }

        .feedback.success {
            background-color: rgba(76, 175, 80, 0.1);
            color: var(--success-color);
        }

        .feedback.warning {
            background-color: rgba(255, 152, 0, 0.1);
            color: var(--warning-color);
        }

        .feedback.danger {
            background-color: rgba(244, 67, 54, 0.1);
            color: var(--danger-color);
        }

        /* Celebration overlay*/
        .celebration-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            pointer-events: none;
            z-index: 1000;
            display: none;
        }


        .celebration-message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 2rem;
            border-radius: 1rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            z-index: 1001;
            text-align: center;
            display: none;
        }

      

        @media (max-width: 768px) {
            .grid {
                grid-template-columns: 1fr;
            }
        }