/*
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
*/

*, *:before, *:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    width: 100vw;

    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;

    display: flex;
    flex-direction: column;
}

#title {
    background-color: #75B2F0;
    font-size: 25px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
}

#middle {
    overflow-y: auto;
    overflow-x: auto;
}

#middle > div#test-controls > div#buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 5px;
    flex-wrap: wrap;
}

#middle div#test-list > label {
    display: flex;
    gap: 5px;
    align-items: center;
}

#log {
    position: fixed;
    height: 20px;
    width: 100%;
    bottom: 0;
    z-index: 1000;
    border-top: 2px solid #777;
    transition: 0.25s ease;
}

body.expanded-log #middle {
    margin-bottom: 40%;
}

body.expanded-log #log {
    height: 40%;
}

#log--title {
    position: absolute;
    top: 0;
    height: 20px;
    width: 100%;
    background-color: #93AAC2;
}

#log--content {
    position: absolute;
    top: 20px;
    bottom: 0;
    width: 100%;
    overflow-x: none;
    overflow-y: scroll;
    background-color: white;
}

.log--content--line {
    border-bottom: 1px solid #ccc;
    white-space: pre;
}

.log--content--line--log {
    background-color: white;
}

.log--content--line--warn {
    background-color: #FCFFA6;
}

.log--content--line--error {
    background-color: #FFA6A6;
}

#info{
    background:#ffa;
    border: 1px solid #ffd324;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    clear:both;
    margin:15px 6px 0;
    min-width:295px;
    max-width:97%;
    padding:4px 0px 2px 10px;
    word-wrap:break-word;
    margin-bottom:10px;
    display:inline-block;
    min-height: 160px;
    max-height: 300px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#test-enablers-container {
    margin: 10px 5px;
}

#test-expander {
    text-decoration: underline;
}

#test-list {
    display: none;
}

#test-list.expanded {
    display: inherit;
}

#test-list label {
    display: block;
}


:root {
    --button-background-color: #54738e;
    --button-border-color: #4c6880;
    --button-color: #ffffff;
    --button-hover-background-color: #445f76;
    --button-hover-border-color: #3e5569;
    --button-hover-color: #ffffff;
}

@media (max-width: 560px) {
    .button-group {
        flex-direction: column;
        line-height: 1;
    }
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 100%;
}

.button-group .cdv-btn {
    padding: 8px 12px;
    line-height: 1;
}

.button-group .cdv-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.button-group .cdv-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.cdv-btn {
    color: var(--button-color);
    background-color: var(--button-background-color);
    padding: 8px;
    font-size: 1rem;
    line-height: 2.5;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--button-border-color);
    text-decoration: none;
    text-align: center;
}

.cdv-btn:hover {
    color: var(--button-hover-color);
    background-color: var(--button-hover-background-color);
    border-color: var(--button-hover-border-color);
    text-decoration: none;
}
