body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #e0e0e0;
  padding: 0;
  margin: 0;
  animation: fadeIn 1s ease-in-out;
}
table{
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    border-collapse: collapse;
    width: 50%;
}
td, th {
  border: 1px solid #000000;
  text-align:center;
  padding: 8px;
}
.header {
  display: flex;
  justify-content: space-between; /* Adjusted to space between the two elements */
  align-items: center;
  background-color: #34495e;
  color: #ecf0f1;
  padding: 20px;
  border-bottom: 1px solid #ccc;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  height: 80px;
}

.header .course-name {
  font-size: 24px;
  color: #96fcd5; /* Gold color to match DCODES */
  white-space: nowrap; /* Ensures the text doesn't wrap */
  margin-right: auto; /* Pushes the course name to the left */
}

.header h1 {
  margin: 0;
  font-size: 24px;
  white-space: nowrap; /* Ensures the text doesn't wrap */
  color: #ffd700; /* Gold color */
  margin-left: auto; /* Pushes DCODES to the right */
}

.main {
  display: flex;
  width: 100%;
  margin-top: 80px; /* Adjust this value if the header height changes */
}

.sidebar {
  width: 250px;
  background-color: #34495e;
  padding: 20px;
  border-radius: 10px;
  color: #ecf0f1;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 80px; /* Adjusted to start below the header */
  height: calc(100vh - 80px); /* Adjusted to account for the header height */
  overflow-y: auto;
  animation: slideInLeft 1s ease-in-out;
}

.container {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container li {
  margin-bottom: 10px;
}

.container a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
  background: #2c3e50;
}

.container a:hover {
  background-color: #1abc9c;
  transform: scale(1.05);
}

.subtopics {
  display: none;
  margin-left: 10px;
}

.content {
  flex: 1;
  margin-left: 280px; /* Increased margin for better spacing */
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  animation: slideInRight 1s ease-in-out;
  margin-top: 80px; /* Add this line to push content below the header */
}

h1 {
  font-size: 24px;
  color: #2c3e50;
}

h2 {
  font-size: 20px;
  color: #16a085;
}

p {
  color: #4a4a4a;
  line-height: 1.6;
}

ul {
  padding-left: 20px;
  color: #4a4a4a;
}

pre {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: 'Fira Code', monospace;
  font-size: 16px;
  line-height: 1.5;
  animation: fadeIn 1.5s ease-in-out;
  position: relative;
}

pre::before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #16a085, #1abc9c);
  border-radius: 10px 10px 0 0;
}

code {
  color: #ecf0f1;
  background: #34495e;
  padding: 2px 6px;
  border-radius: 5px;
  line-height: 1.5;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

code:hover {
  background-color: #1abc9c;
  color: #ffffff;
}
.certificate-text {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%; /* Set the width to 100% to spread across the image */
  transform: translateY(-50%);
  text-align: center;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 50px;
  color: rgb(65, 63, 63);
  font-weight: bold;
}
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

.submit-btn {
            padding: 15px 30px;
            font-size: 20px;
            font-weight: bold;
            color: #fff;
            background-color: #4CAF50; /* Green background */
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .submit-btn:hover {
            background-color: #45a049; /* Darker green */
        }

        .submit-btn::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 300%;
            height: 300%;
            background: rgba(255, 255, 255, 0.15);
            transition: all 0.3s ease;
            border-radius: 50%;
            z-index: 0;
            transform: translate(-50%, -50%) scale(0);
        }

        .submit-btn:hover::after {
            transform: translate(-50%, -50%) scale(1);
        }

        @keyframes button-animation {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .submit-btn:active {
            animation: button-animation 0.3s;
        }

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.failure-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffdddd;
  padding: 30px;
  border: 2px solid #ff0000;
  border-radius: 10px;
  z-index: 1000;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.failure-popup p {
  font-size: 24px;
  color: #d8000c;
  margin-bottom: 20px;
}

.failure-popup button {
  padding: 15px 30px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background-color: #d8000c;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.failure-popup button:hover {
  background-color: #b00000;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
.confirmation-dialog {
  position: fixed;
  top: 25%;
  left: 25%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease forwards;
  width: 50%;
}

.confirmation-dialog h2 {
  color: #333;
  margin-top: 0;
}

.confirmation-dialog p {
  color: #666;
  margin-bottom: 20px;
}

.confirmation-buttons {
  display: flex;
  justify-content: center;
}

.confirmation-buttons button {
  padding: 10px 20px;
  margin: 0 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.confirmation-buttons button:hover {
  background-color: #ddd;
}

.confirm-button {
  background-color: #4CAF50;
  color: #fff;
}

.cancel-button {
  background-color: #f44336;
  color: #fff;
}
.question-container {
  font-size: 24px;
  font-weight: bold;
  border: 2px solid #333;
  padding: 20px;
  border-radius: 10px;
  background-color: #f0f0f0;
}
.name-prompt, .failure-popup, .cancel-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-align: center;
  width: 300px;
}

/* Background gradient for the name prompt */
.name-prompt {
  background: linear-gradient(135deg, #FF6F61, #FFB6C1);
  color: #fff;
}

/* Add color and style for the failure popup */
.failure-popup {
  background: linear-gradient(135deg, #FF6347, #FFD700);
  color: #fff;
}

/* Style for the cancel popup */
.cancel-popup {
  background: linear-gradient(135deg, #FF4500, #FF6347);
  color: #fff;
}

.name-prompt button, .failure-popup button, .cancel-popup button {
  background-color: #FFD700;
  color: #1E1F26;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.name-prompt button:hover, .failure-popup button:hover, .cancel-popup button:hover {
  background-color: #FF5722;
  color: #fff;
}

/* Style for the input field in the name prompt */
.name-prompt input {
  padding: 10px;
  border-radius: 5px;
  border: 2px solid #FFD700;
  width: 80%;
  font-size: 16px;
  margin-top: 10px;
  outline: none;
}

/* Style for the input focus effect */
.name-prompt input:focus {
  border-color: #FF5722;
}

/* Cancel button styling */
.cancel-button {
  background-color: #FF4500;
}

.cancel-button:hover {
  background-color: #FF6347;
}

.DownloadCertificate {
  background-color: #4CAF50; 
  border: none; 
  color: white; 
  padding: 10px 20px; 
  text-align: center; 
  text-decoration: none; 
  display: inline-block; 
  font-size: 16px; 
  margin: 4px 2px; 
  cursor: pointer; 
  border-radius: 8px; 
  font-family: Arial, sans-serif; 
}