body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: none;
    color: white;
}

.h2{
    font-size: medium;
   color: #a10000;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

nav {
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px;
    margin-bottom: 20px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 10px;
}

.nav-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-button.active {
    color: #ffd700;
}

main section {
    display: none;
    text-align: center;
}

main section.active {
    display: block;
}

h1, h2 {
    margin-bottom: 20px;
}

.icon-button {
    background-color: white;
    color: #4facfe;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    transition: background-color 0.3s;
}

.icon-button:hover {
    background-color: #ffd900;
}

#home-points {
    list-style-type: none;
    padding: 0;
    max-width: 600px;
    margin: 20px auto;
}

#home-points li {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.course-card {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #136bb8;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #0056b3;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    color: #333;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content ul {
    text-align: left;
    padding-left: 20px;
}

.modal-content li {
    margin-bottom: 10px;
}

#courses {
    padding: 50px 20px;
    animation: slideIn 1s ease-out;
}

.course-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.course {
    margin: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.course:hover {
    transform: scale(1.1);
}

.course img {
    width: 100px;
    height: 100px;
}

footer {
    padding: 20px;
    background-color: #8B0000;
    margin-top: 20px;
}

.p1{
    color: red;
    font-size: large;
}
.videos{
    color: #0d70d2;
}
.font{
    font-size: larger;
    color: #00f2ff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 1000; 
}

.course {
    display: inline-block; 
    transition: transform 0.3s ease; 
    overflow: hidden; 
}

.course:hover {
    transform: scale(1.05); 
}

.course iframe {
    display: block; 
    width: 100%;
    height: 100%; 
}
.red{
    color: #b10000;
    font-size: medium;
}

.worksheets{
    display: inline-block;
    transition: transform 0.3s ease; 
    overflow: hidden; 
}


.name-input {
    margin: 10px;
}

.name-input label {
    font-size: 16px;
    margin-right: 5px;
}

#name {
    padding: 5px;
    font-size: 14px;
}

#save-name {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
}


.display-name {
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 18px;
    font-weight: bold;
    color: red; /* Change color as needed */
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromTop {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background-color: #000000;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: -1;
}

.name-input-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    z-index: 1000;
    transition: all 0.5s ease-in-out;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

#nameInput {
    margin-bottom: 20px;
    padding: 12px 20px;
    font-size: 18px;
    width: 250px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #ffffff;
    transition: all 0.3s ease;
}

#nameInput:focus {
    outline: none;
    border-color: #2a55aa;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

#submitName {
    padding: 12px 30px;
    background-color: #2b41a4;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#submitName:hover {
    background-color: #0008ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#nameDisplay {
    position: fixed;
    top: 20px;
    right: -300px;
    background-color: rgba(0, 81, 255, 0.247);
    padding: 15px 30px;
    border-radius: 25px;
    z-index: 1000;
    font-weight: bold;
    font-size: 20px;
    transition: right 0.5s ease-in-out, transform 0.3s ease;
    backdrop-filter: blur(5px);
}

#nameDisplay:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.container {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 10px;
}

.nav-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    animation: slideInFromTop 0.5s ease-out;
}

.nav-button:hover, .nav-button.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-button i {
    margin-right: 8px;
}

main section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

main section.active {
    display: block;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.course {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.course:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.course img {
    max-width: 100px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.course:hover img {
    transform: scale(1.1);
}



.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.icon-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-button:hover {
    background-color: rgba(46, 46, 46, 0.2);
    transform: translateY(-2px);
    animation: pulse 1s infinite;
}

.modal {
    display: none;
    position: center;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease-out;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: rgba(160, 17, 17, 0.1);
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    backdrop-filter: blur(10px);
    animation: slideInFromTop 0.5s ease-out;
    align-items: center;
    justify-content: center;
}

#pencil-button {
    animation: rotate 5s linear infinite;
}



@keyframes fadeInOut {
    0%, 100% {
      opacity: 0;                
      text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); 
    }
    50% {
      opacity: 1;                
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); 
    }
  }
  
  .h1 {
    font-family: 'Arial', sans-serif;      
    font-size: 3em;                         
    color: #ffffff;                          
    text-align: center;                    
    animation: fadeInOut 6s infinite;      
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transition: text-shadow 0.5s ease;       
  }

.container {
    text-align: center;
    margin-top: 20px; 
}

.icon-button {
    display: inline-flex; 
    justify-content: center;
    align-items: center; 
    background-color: transparent; 
    border: none; 
    cursor: pointer; 
    margin-top: 10px; 
    font-size: 24px; 
}
