/**
 * Copyright 2021 Jiri Skoda <developer@skodaj.cz>
 * 
 * Licensed 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.
 */

/* File with definitions of styles for mobile version of page */

@media screen and (max-width: 860px),
       screen and (max-height: 640px){
        main{
            width: 90vw;
            overflow-x: hidden;
            overflow-y: auto;
        }


        main > h1{
            font-size: 12pt;
        }

        main > h1 > strong{
            font-size: 18pt;
        }

        main > h1 >img{
            height: 32px;
        }

        main > h1 > button{
            display: block;
            float: right;
            border: none;
            background: none;
            transition: 300ms;
            border-radius: 5px;
            padding: 10px;
            position: absolute;
            top: 0;
            right: 0;
        }

        main > h1 > button:hover{
            background-color: var(--background);
        }

        main > h1 > button > img{
            height: 24px;
        }

        main > section#content > article{
            display: block !important;
            width: 100%!important;
            padding: 5px;
        }

        main > section#content > article#messages{
            width: calc(100% - 20px) !important;
        }

        main > section#content > article#messages  img{
            height: 16px !important;
        }

        main > section#content > article#messages > div{
            padding: 5px !important;
            margin: 0 !important;
            width: calc(100% - 10px) !important;
            margin: 5px !important;
        }

        main > section#content > article#form{
            background-color: var(--background);
            width: calc(100% - 10px) !important;
        }

        main > section#content > article#form >form > input,
        main > section#content > article#form > form > button{
            width: calc(100% - 20px);
            margin-bottom: 5px;
            margin-left: 10px;
        }

        main > section#content > article#form > form > label,
        main > section#content > article#form > form > button{
            font-size: 14pt;
        }

        main > section#content > article#form > form > button{
            width: 100%;
        }

        footer{
            height: calc(1em + 15px);
            overflow: hidden;
        }

        footer > ul{
            float: none;
            text-align: center;
            width: 100%;
        }

        footer > ul > li{
            display: block;
            border: none;
        }

        footer > ul > li:hover{
            text-decoration: underline !important;
            cursor: pointer !important;
        }

        footer > ul > li#footer-more{
            border: none;
            display: inline-block;
            text-align: center;
        }

        footer > ul > li#footer-more >span#footer-more-less,
        footer > ul > li#footer-more >span#footer-more-more{
            display: none;
        }

        footer > ul > li#footer-language,
        footer > ul > li#footer-theme{
            display: inline-block;
            border-right: 1px solid var(--foreground-footer);
            text-align: center;
        }
    }