body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.roadmap-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
  }

.topic {
    display: flex;
    align-items: center;
    margin: 16px 0;
  }

.card {
    display: flex;
    flex-direction: row; /* Place items side by side */
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.3s;
    width: 300px; /* Adjust width as needed */
  }

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

.icon {
    font-size: 40px;
    margin-right: 20px; /* Space between icon and title */
  }

/* .icon {
    font-size: 40px;
    cursor: pointer;
    background-color: #fff;
    border-radius: 8px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
} */

.topic-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.topic-level {
    font-size: 16px;
    color: #666;
    margin-left: 20px; /* Space between card and level */
  }

  .separator {
    width: 2px;
    height: 50px;
    background-color: grey;
    margin: 16px 0;
  }

.lesson-content {
    margin: 20px;
    font-size: 16px;
    position: relative; /* Added for positioning */
}

textarea {
    width: calc(100% - 40px);
    height: 400px;
    margin-top: 20px;
    font-size: 16px;
    padding: 10px;
    box-sizing: border-box;
}

#runCode {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#runCode:hover {
    background-color: #0056b3;
}

.output-frame {
    width: calc(100% - 40px);
    height: 400px;
    margin: 20px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

#lessonContent {
    margin: 20px;
}

#languageSelector {
    margin: 20px;
}

#codeInput {
    width: calc(100% - 40px);
    height: 400px;
    margin: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

#runCode {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#runCode:hover {
    background-color: #0056b3;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.loading-indicator::after {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    border: 6px solid #ccc;
    border-top-color: #007bff;
    animation: spin 1s linear infinite;
}

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

#nextExerciseButton {
    display: none;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

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

.task-content {
    margin: 20px;
}

.tabs-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.tabs {
    overflow: hidden;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ccc;
}

.tablink {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}

.tablink:hover {
    background-color: #ddd;
}

.tablink.active {
    background-color: #ccc;
}

.tabcontent {
    display: none;
    padding: 20px;
    border-top: none;
}


/* styles.css */

/* Existing styles for modal */
.modal {

    display: none;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */   
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}
.inner-model{
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100vh; /* Full height */
    /* background-color: rgba(0, 0, 0, 0.4); Black w/ opacity */
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: #ffffff;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 60%; /* Adjust width as needed */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Box shadow */
    text-align: center; /* Center align content */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Additional styling */
.modal-message {
    font-size: 18px;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
}

.modal-buttons button {
    margin: 0 10px; /* Adjust spacing between buttons */
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

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

.popup-buttons {
    display: flex;
    justify-content: center; /* Center aligns buttons */
    margin-top: 20px; /* Adjust margin as needed */
}

.popup-buttons button {
    padding: 15px 30px; /* Adjust padding for larger buttons */
    font-size: 18px; /* Adjust font size */
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 10px; /* Rounded border */
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow */
    transition: background-color 0.3s;
    margin: 0 10px; /* Adjust margin between buttons */
}

.popup-buttons button:first-child {
    margin-right: 20px; /* Larger margin on the right side of the first button */
}

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

.language-selector-container {
    text-align: center;
    margin: 20px 0;
}
  
  .loading-indicator {
    display: none; /* Initially hidden */
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
  }
  
  #nextExerciseButton:disabled {
    background-color: grey;
    cursor: not-allowed;
  }
  
  .task-content ul {
    list-style-type: none; /* Remove bullet points */
    padding-left: 0;
  }
  
  .task-content li {
    display: flex;
    align-items: center;
  }
  
  
  #previousExerciseButton {
    display: none; /* Initially hidden */
    margin: 20px 10px; /* Space between buttons */
    padding: 10px 20px;
    background-color: #007bff; /* Match the styling of nextExerciseButton */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#previousExerciseButton:hover {
    background-color: #0056b3; /* Match the styling of nextExerciseButton */
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
