* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    /* Background gradient */
    color: #444;
    min-height: 100vh;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.menu>li {
    position: relative;
    display: inline;
}

.menu a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

nav .menu .active {
    background-color: #555;
    color: white;
}

.submenu {
    display: none;
    position: absolute;
    background-color: #007BFF;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li:hover .submenu {
    display: block;
}

.submenu a {
    padding: 10px 20px;
}

section {
    margin: 20px 0;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

main {
    display: flex;
    align-items: center;
    background: url('../image/dorocosmo.jpg') center center / cover no-repeat;
    flex: 1;
    padding: 20px;
}

header {
    background-color: #444;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;

    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.logo {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    /* Adjust size as needed */
    height: auto;
}

.logo-text {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    font-family: 'Roboto', sans-serif;
}

nav {
    display: flex;
    justify-content: center;
}

.menu a:hover {
    background-color: #555;
    border-radius: 5px;
}

.main-nav {
    background-color: #333;
    overflow: hidden;
}

.main-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-nav ul li {
    padding: 14px 20px;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
}

.main-nav ul li a:hover {
    background-color: #575757;
}

.labs-bar {
    background-color: #444;
    box-shadow: 0 4px 8px rgba(88, 89, 80, 0.1);
    margin: 20px auto;
    width: fit-content;
    border-radius: 0px;
    position: fixed;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.labs-bar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.labs-bar ul li {
    padding: 10px 20px;
}

.labs-bar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    border-radius: 4px;
}

.labs-bar ul li a:hover {
    background-color: #555;
    color: white;
}

.labs-bar ul li a.active {
    background-color: #555;
    color: white;
}

.footer {
    background-color: #444;
    color: white;
    padding: 30px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px 0;
}

.footer-section h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #f5a623;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #f5a623;
}

.footer-section .social-icons a {
    margin: 0 10px;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    overflow: hidden;
    transition: background-color 0.3s;
}

.footer-section .social-icons a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-section .social-icons a:hover {
    background-color: #f5a623;
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #333;
    padding: 10px 0;
    font-size: 14px;
}

.modal-container {
    width: 100%;
    height: 100vh;
    /* Center the modal within the container */
    display: flex;
    justify-content: center;
    align-items: center;

}

.modal {
    background: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    position: relative;

}

/* Header with blue background */
.modal-header {
    background-color: #007bff;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    margin: 0;
}

/* Close button */
.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    padding: 20px;
}

.card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    text-align: center;
}

.badge {
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
    color: #fff;
    margin-left: 5px;
}

.mocha {
    background-color: #8d6748;
}

.pytest {
    background-color: #8d6748;
}

.phpunit {
    background-color: #8d6748;
}

.junit {
    background-color: #8d6748;
}

/* Button area */
.button-group {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: auto;
}

.btn {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin: 5px;
    flex: 1;
    max-width: 100px;
}

.continue {
    background-color: #007bff;
    color: #fff;
}

.guide {
    background-color: #f0f4f8;
    color: #007bff;
    border: 1px solid #007bff;
}

.continue:hover,
.guide:hover {
    opacity: 0.9;
}

/* Second Modal Body and Button Styles */
.modal-body {
    padding: 20px;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.input-group label {
    width: 120px; /* Adjusted label width for alignment */
    font-weight: bold;
}

.input-group input[type="text"],
.input-group select {
    flex: 1;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.open-ide-button {
    background-color: #1b2a3a;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    margin-top: 20px;
    text-align: center;
}

.open-ide-button:hover {
    background-color: #16222e;
}
.container {
    width: 90%;
    max-width: 700px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Added max-height and overflow-y properties */
    max-height: 80vh; /* Adjust as needed */
    overflow-y: auto;
}

.container h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-group label {
    width: 150px; /* Adjust width for label spacing */
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.form-group select,
.form-group input[type="text"] {
    flex: 1;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: #333;
}

/* Additional styling for container to match modal layout */
.modal-body {
    padding: 20px;
}

.modal-body .form-group + .form-group {
    margin-top: 10px;
}

.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 150px;
}

.text-editor-toolbar {
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.text-editor-toolbar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    margin-right: 5px;
    color: #444;
}

.text-editor-toolbar button img{
    height: 20px;
    width: 20px;
}

.text-editor-toolbar button:hover {
    color: #000;
}

.divider {
    margin: 20px 0;
    padding: 10px;
    background-color: #333;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
}

.test-case-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.test-case-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.test-case-column {
    display: flex;
    flex-direction: column;
    width: 45%;
}

.test-case-label {
    background-color: grey;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.test-case-input, .test-case-output {
    width: 100%;
    height: fit-content;
    padding: 8px;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
}

.test-case-result {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10%;
    font-size: 24px;
    color: #333;
}
.btn-container {
    padding: 10px 20px;       
    font-size: 16px;
    font-weight: bold;
    background-color: #007bff; /* Customize to match your theme */
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    display: inline-block;     /* Makes the button only as wide as the text */
}

.btn-container .update-challenge-button {
    background-color: #007bff; /* Customize to match your theme */
    text-align: left;          /* Aligns the button container to the left */
    color: white;

}

.btn:hover {
    background-color: #005bb5;
}
