/* Genel stil ayarları */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px; /* Daha geniş ekranlar için max-width artırıldı */
    margin: 0 auto;
    padding: 20px;
}

.questions-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.title {
    text-align: center;
    margin-bottom: 20px;
}

/* Soru ve cevapların stilleri */
.question {
    border-radius: 2%;
    display: none;
    margin-bottom: 20px;
    box-sizing: border-box;
    border: 3px solid #ccc;
    background-color: white;
    padding: 3%;
    position: relative;
}

.question.active {
    display: block;
}

.question h4 {
    margin-bottom: 10px;
}

.question h3 {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.question p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Progress bar */
.progresss {
    text-align: center;
}

/* Kod editörü ve çıktı alanı */
.editor-output-container {
    display: flex;
    justify-content: center; /* Ortalar */
    align-items: flex-start; /* Üstten hizalar */
    gap: 2%; /* Aralarındaki boşluk */
    margin-bottom: 20px;
}

#code-editor {
    padding: 10px;
    font-family: monospace;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8f8f8;
    width: 48%;
    height: 500px;
    resize: none;
    position: relative;
    left: 10px;
}

#output-container {
    background-color: black;
    padding: 10px;
    border-radius: 5px;
    height: 490px;
    width: 48%;
    position: relative;
    bottom: 510px;
    left: 50%;
}

#output {
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    font-size: 100%;
    color: white;
    height: 40%;
    overflow: auto; /* Taşma durumunda kaydırma */
    position: relative;
    top: 40px;
}

#loading-spinner {
    display: none; /* Varsayılan olarak gizle */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 30px;
    height: 30px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.popup h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.popup p {
    font-size: 16px;
    margin-bottom: 20px;
}

.popup button {
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup button:hover {
    background-color: #2980b9;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .question h3 {
        font-size: 14px;
    }

    .question {
        width: 100%;
        margin: 0 auto;
    }

    #output-container {
        width: 100%;
        height: 300px; /* Yüksekliği artırarak çıktı alanını daha büyük yapıyoruz */
        margin-top: 20px;
        position: relative;
        bottom: 0;
        left: 0;
    }

    #code-editor {
        width: 100%;
        margin-top: 20px;
        height: 200px; /* Yüksekliği azaltarak çıktı alanı için daha fazla yer açıyoruz */
        position: relative;
        left: 0;
    }

    .editor-output-container {
        flex-direction: column; /* Küçük ekranlarda dikey hizalama */
        align-items: center;
    }
}

@media screen and (min-width: 1200px) {
    body {
        zoom: 80%;
    }
}
