*{
    margin:0;
    padding:0;
    box-sizing:border-box;/*berechnet alle Maße als Gesamtbreite oder Höhe*/
    font-family: Arial, Helvetica, sans-serif;
}

button, select, input, textarea{
    border:none;
}

body{
    background-color: gainsboro;
}
h1{
    font-size: 1.3rem;
}
h4, h5{
    font-size:1.2rem;
}
textarea{

    overflow: hidden;
}

#help{
    width:21cm;
    margin:4rem auto;
    margin-bottom: 1rem;   
}

#help div{
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap:.5rem;
}
.CodeMirror span{
   font-family:'Courier New', Courier, monospace;
}

#sites{
    width: 21cm;
    margin:4rem auto;
    outline:0.1rem solid gainsboro;
    min-height:29.7cm;
    padding:1.5rem;
    display: flex;
    flex-direction: column;
    background-color: white;
    gap:2rem;


    .text-question{
        display:flex;
        flex-direction:column;
        gap:0.2rem;

       .number{
            font-weight: bold;
            font-size: 1.1rem;
        }

        .points{
           text-align:right;
        }
    }
   
}

header{
    background-color:#9DC0BC;
    display:flex;
    position:fixed;
    top:0;
    width:100%;
    height:3rem;
    gap:3rem;
    justify-content: start;
    align-items: center;
    box-shadow: 0 2px 4px grey;
    padding:.5rem;
    overflow: hidden;
    z-index: 1000;
    
    button{
    background-color: white;
    border:none;
    padding:0;
    font-size: 2.5rem;
    border-radius:.5rem;
    background-color: transparent;
     }

     button:hover{
        filter: drop-shadow(0 0 1rem white);
        font-size: 2.7rem;
        transition: all 1s infinite;
     }
}


#title, #hints,#end-hints, #footer{
    border:none;
    resize:none;

    background-color: transparent;
    height:4.5rem;
    font-size:1rem;
    line-height: 1.5rem;

    overflow:hidden;

    &:focus{
        resize:vertical;
        background-color: rgba(92, 150, 143, 0.3);   
    }

    &:hover{
        background-color: rgba(92, 150, 143, 0.2);   
        border: .1rem solid rgb(112, 136, 133);
 
        &::after{
          content: "✎ clicken";
          background-color: rgba(92, 150, 143, 0.5);   
          padding:0.3rem;
          font-size:1rem;
        }
     }
}

#hints{
height: 8rem;
}

#title{
    font-size: 1.5rem;
    height:2rem;
    font-weight: bold;
}

#end-hints{
    height:1.5rem;
}

.text-question{

    .edit-off{
        border:none;     
        pointer-events: none;
        resize:none;
        background-color: transparent;
        font-size:1rem;
        
       
    }

    input[type="number"]{
       max-width:3rem;
    }   
}

.edit-on{
        resize:vertical;
        pointer-events: initial;
        background-color: transparent;
        font-size:1rem;
        background-color: rgba(92, 150, 143, 0.3);   
}

.edit-hover:hover{
    background-color: rgba(92, 150, 143, 0.2);   

    &::after{
      content: "Einstellungen";
      background-color:  rgba(92, 150, 143, 0.5);   
      padding:0.3rem;
      font-size:1rem;
      position: relative;
      bottom:0;
      border-radius:0.25rem;
    }
 }

#options-panel{
    background-color: rgba(92, 150, 143, 0.5);   
    width:100%;
    padding:0.5rem;
    display:grid;
    grid-template-columns: auto auto ;
    gap:.3rem;
    column-gap: 1rem;
    border-radius:0.25rem;

   button{
    font-size: 1.05rem;
   }

    select, input{
        width: 12rem;
    }

    label{
        display: flex;
        justify-content: space-between;
        background-color: #dce4e4;
        padding: 0.15rem;
    }

 }

 .multi-choice{
    display: flex;
    padding:.5rem 0 .5rem .5rem;
    flex-direction: column ;
    gap:.5rem;
    

    label{
        display: flex;
        flex-direction: row ;
        align-items: center;
        gap:1rem;
    }

    b {
        font-family: monospace;
        font-size: 1.2rem;
    }
    b,input, textarea{
        resize:none;
    }

    input[type="checkbox"]:disabled{
        opacity:1;
        border:none;
        box-shadow: none;
        background-color: transparent;
        outline:1px solid black;
        color: transparent;
    }

    textarea{
        width:100%;
        height:1.3rem;
    }

 }

 .answer{
    font-style: italic;
 }

 #upload, .uploadImg,.table-container{
    display: none;
 }

 .panel{
    position:absolute;
    top:0rem;
    width:100%;
    background-color: gainsboro;
    min-height:100vh;

    label{
        gap:1rem;
        display: flex;
    }  

    h3{
         padding:1rem;
    }

    div{
        padding:4rem 2rem 2rem 2rem;
        display: flex;
        flex-direction: column;
        gap:2rem; 
        
        button{
        font-size:1.2rem;
        }
    }
    section{
        display: flex;
        flex-direction: column;
        gap:.25rem;
    }
   
    input[type="checkbox"]{
        transform: scale(1.5);
    }

    input[type="number"]{
        width:3rem;
    }
 }

 #mix-table{
    text-align: left;

    tr:nth-child(odd){
      background-color: white;
    }
    
    td{
        padding:0.5rem;
    }
 }

 #table-head{
    font-size:1.1rem;
 }

 .table-container{
    display:flex;
    gap:2rem;
    flex-wrap: wrap;
    section{
        display: inline-table;
        pointer-events: initial;
    }

    
 }

 table{
 
    border:1px solid black;
    border-collapse: collapse;
    font-size:0.8rem;
    
    th, td {
        border: 1px solid;
        padding:0.1rem;
        min-width:4rem;
        
      }

    th{
        text-align: left;
    } 

    tr{
        width:4rem;
        height:1rem;
        margin-right:1rem;
    }
 }

 .table-name{
    margin: 0.5rem 0 0.5rem 0;
    text-decoration: italic;
 }

 dialog{
    padding:1rem;
    width:22cm;
    height: calc(100vh - 2rem);
    margin:1rem auto;
    border: none;
    background-color: #ADCAC7;
    border-radius: 0.25rem;

    textarea{
        width:100%;
        height: 55vh;
    }

    button{
        padding: 0.5rem;
    }

    &::backdrop {
        background-color: rgba( 0,0,0,0.8);
        transition: all 0.7s;
          
    }

 }

 #filter{
    display:flex;
    flex-direction: row;
    align-items: center;

    input[type="number"]{
        width:3rem;
    }

    input,select{
        height:1.5rem;
    }

    label{
        display:flex;
        align-items: center;
        gap:0.25rem;
    }

    button{
        width:13rem;
    }
 }

.site-marker{
    border-top: 0.2rem dotted grey;
    width:100%;
    position:absolute;
    height: .2rem;
}

#support{
    padding: 1rem;
    background-color: #ADCAC7;
    border-radius:0.25rem;
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.gpt-dialog{
   width:30rem; 
   padding: 1rem;
   display: flex;
   flex-direction: column; 
   gap:1.25rem;
   background-color:#ADCAC7;
   border-radius:0.25rem;
   border:none;

   textarea{
     height:4rem;
   }

   legend{
    padding-top:2rem;
     font-weight: bold;
     font-size: 1.2rem;
   }

   input, select{
    height:1.5rem;
   }


   label{
    display: flex;
    gap:1rem;
   }
  
}

#ki, #open-trivia{
    margin:0;
    padding:0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#open-trivia, #gpt-multi-result{
    input[type="text"]{
        width:100%;
    }  
}

.result-dialog{
  display: none;
} 

fieldset{
    border: 0.2rem solid #5e817c;
  }

 input[type="number"]{
    -moz-appearance: textfield;
}

summary{
    font-size:1.1rem;
    font-weight:bold;
}

#wait{
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    top:0;
    left:0;   
    z-index:10000;
    color: rgb(112, 136, 133, 0.8);
    font-size:1.5rem;
    min-width:100vw;
    min-height:300vh;
}

#wait-gpt, #wait-open-trivia{
    display: none; 
    font-size: 1.2rem;
    text-align: center;
}

.radio-label{
    justify-content: start;
}

@media only screen and (max-width: 1100px) {
    #logo {
      display:none;
    }

    .gpt-dialog{
        width:100%;
    }
  }

  #ad, #info{
    position: fixed;
    display: flex;
    justify-content: start;
    flex-direction: column;
    align-items: center;
    min-width:170px;
    max-width:170px;
    height:calc(100vh - 3.5rem);
    top:3.3rem;
    right:5px;
    font-size:.8rem;
    font-family:arial;
    background-color: rgb(242, 242, 242);
    z-index:0;
    padding:0.25rem;
    gap:0.5rem;
    div{ padding:0.1rem; background-color: #9DC0BC; border-radius:0.25rem;}
    button{
        width:1rem; height:1rem; border-radius:0.5rem; border:1px solid black; background-color: transparent; display: inline; 
    }

    p{display: inline; margin-bottom: 0.25rem; }

    span{
        font-size: 0.6rem;
    }

}

#info{
    left:5px;
    div{width:100%; }
   
    p{ font-weight: bold;}
    a{
        width:100%;
        color:black;
       
    }
    &:visited{
        color:black;
    }
}

button:hover:not(header button:hover){
    outline:2px solid black;
}

.codex-editor__redactor{
   padding-bottom: 0px !important;
}

.question{
    margin-left: -6rem;
}

.cdx-block{
   width: calc(21cm - 3rem);
}

.embeded-site{
    display: none; 
    width: 100%;
    border:none;
    overflow:auto;
}

.flex-col{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#iframe-dialog, #image-dialog{

   label{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.2rem;
    background-color: #dce4e4;
    

    button, input{
        height:1.5rem;
    }

    button{
        outline: 1px solid black;
        display: flex;
        align-items: center;
    }
   
   }

   input{
    width: 100%;
   }
}

.code{
    display: none;
}

#image-dialog input[type=range]{
     width: 8rem;
}

.row{
    display: flex;
    flex-direction: row;
    padding: 0.2rem;
}

#max-search{
    max-width: 4rem;
}

#pixabay-container{
    display: grid;
  grid-template-columns: auto auto auto auto;
  button{
    background-color: transparent;
  }
}

#message-modal{
    position:fixed;
    font-weight: 900;
    height:4rem;
    vertical-align: auto;
    top:1rem;
    z-index: 3000;
    background-color:#9DC0BC;
    color: black;
    border: 2px solid black;
}