/* cwc_style.css */

.cwc * {
    margin: 0;
    padding: 0;
}

.cwc body {
    background: #454545;
    color: #fff;
}

.cwc .container {
    padding: 10px;
    border: 2px solid #dedede;
}

.cwc .top,
.cwc .bottom {
}

/* Media query for mobile devices with a maximum width of 767px */
@media only screen and (max-width: 767px) {
    .cwc .top,
    .cwc .bottom {
        height: 300px; /* Set your desired height for mobile */
    }
}

/* Media query for desktop devices with a minimum width of 768px */
@media only screen and (min-width: 768px) {
    .cwc .top,
    .cwc .bottom {
        height: 425px; /* Set your desired height for desktop */
    }
}

.cwc textarea {
    height: 100%;
    background: #1f1f1f;
    color: #fff;
    padding: 10px 20px;
    border: 0;
    outline: 0;
    font-size: 16px;
    font-family: monospace; 
    width: 100%; 
    width: calc(100% - 40px);
    width: -webkit-fill-available;
    height: 100%; 
    height: calc(100% - 40px);
    height: -webkit-fill-available;
    overflow: auto; 
    resize: none; 
    white-space: pre;    
}

.cwc #output {
   height: 100%;
}

.cwc iframe {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 0;
    outline: 0;
}

.cwc label {
    display: block;
    align-items: center;
    background: #efefef;
    color: #000;
    padding: 0.5rem 1rem;
    font-weight: bold;
}


.cwc #error-message {
   color: red;
    margin-bottom: 0.5rem;
}

.cwc #run_button {
   margin: 1rem auto;
   display: block;
}