/**
 * /style/style.css
 * @version 1.3
 * @desc Main style file
 * @author Fándly Gergő Zoltán (gergo@systemtest.tk, systemtest.tk)
 * @copy 2018 Fándly Gergő Zoltán
 * License:
    Systemtest.tk website's.
    Copyright (C) 2018  Fándly Gergő Zoltán

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
 **/

html{
    background: url("../res/bg.png") no-repeat center center fixed;
    background-size: cover;
}

div.header{
    overflow: auto;
    width: 100%;
}

div.content{
    border: 1px solid rgb(75, 75, 75);
    border-bottom-left-radius: 2em;
    border-bottom-right-radius: 2em;
    background: rgba(100, 100, 100, 0.8);
    overflow: auto;
    width: 95%;
    margin: auto;
    padding-bottom: 1.5em;
}
div.content div.inner{
    padding: 1.5em;
}

ul.menu{
    list-style: none;
    margin: 0;
    background: rgb(0, 190, 255);
    display: flex;
    justify-content: stretch;
    padding: 0;
}
ul.menu li{
    display: block;
    padding: 1em;
    color: rgb(255, 255, 255);
}
ul.menu li:hover{
    background: rgb(0, 153, 204);
}
ul.menu a{
    text-decoration: none;
    cursor: default;
}

footer{
    background: rgba(75, 75, 75, 0.8);
    border: 1px solid rgb(20, 20, 20);
    border-radius: 0.5em;
    padding: 1em;
    width: 50%;
    margin: auto;
    font-size: 0.8em;
    text-align: center;
}

hr.placeholder{
    border: none;
    height: 30px;
}
hr.separator{
    border: 1px solid rgb(75, 75, 75);
    width: 80%;
    margin-bottom: 1.5em;
}
hr.breakfloat{
    border: none;
    clear: both;
}

img.title{
    float: left;
    max-width: 60%;
    max-height: 10em;
}
img.logo{
    max-width: 30%;
}

div.langselect{
    float: right;
    width: 10%;
    background: rgb(195, 195, 195);
    border-radius: 5px;
    display: flex;
    padding: 5px;
    justify-content: space-around;
}
div.langselect a{
    display: block;
    max-width: 30%;
    max-height: 95%;
}
div.langselect img{
    max-width: 100%;
    max-height: 7em;
    display: block;
    margin: auto;
}

div.news{
    background: url('./res/news.png') no-repeat center center;
    background-size: contain;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 5px;
    width: 70%;
    padding: 0.5em;
    margin: auto;
}

button{
    margin: 0.1em;
    background: rgb(0, 190, 255);
    padding: 1em;
    border-radius: 0;
    border: 0;
    color: rgb(255, 255, 255);
    min-width: 7em;
}
button:hover{
    background: rgb(0, 153, 204);
}

div.container{
    background: rgba(100, 100, 100, 1);
    border-radius: 5px;
    text-align: center;
    padding: 1em;
    width: 40%;
}
div.container p{
    margin: 0;
    padding: 0;
    display: inline;
}

div.post{
    background: rgba(100, 100, 100, 1);
    border-radius: 5px;
    padding: 1em;
    width: 40%;
}

input{
    border-radius: 5px;
    padding: 0.5em;
    border: 1px solid rgb(75, 75, 75);
}
textarea{
    border-radius: 5px;
    padding: 0.5em;
    border: 1px solid rgb(75, 75, 75);
}
select{
    border-radius: 5px;
    padding: 0.5em;
    border: 1px solid rgb(75, 75, 75);
}

div.checkbox{
    width: 7em;
    height: 2.5em;
    background: rgb(50, 50, 50);
    border-radius: 1.5em;
    position: relative;
}
div.checkbox:before{
    content: 'On';
    position: absolute;
    top: 30%;
    left: 15%;
    color: rgb(35, 200, 40);
    font-size: 1em;
}
div.checkbox:after{
    content: 'Off';
    position: absolute;
    top: 30%;
    right: 15%;
    color: rgb(15, 15, 15);
    font-size: 1em;
}
div.checkbox label{
    display: block;
    width: 45%;
    height: 55%;
    border-radius: 1.5em;
    transition: 0.5s;
    cursor: pointer;
    position: absolute;
    top: 22.5%;
    left: 10%;
    z-index: 1;
    background: rgb(220, 220, 220);
}
div.checkbox input[type=checkbox]:checked + label{
    left: 45%;
    background: rgb(35, 200, 40);
}

fieldset{
    border: 5px solid rgba(75, 75, 75, 1);
    background: rgba(100, 100, 100, 1);
    border-radius: 1em;
    padding: 2em;
    width: 60%;
    text-align: left;
}
fieldset legend{
    background: rgba(100, 100, 100, 1);
    color: rgb(255,255,255);
    padding: 0.3em;
    font-size: 2em;
    border-radius: 0.5em;
    box-shadow: 0 0 0 5px rgba(75, 75, 75, 1);
    text-align:left;
    margin-left: 10%;
}

div.overlay.messages{
    height: 30%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
}
div.message{
    width: 50%;
    padding: 1em;
    border: 2px solid rgb(60, 255, 60);
    border-radius: 10px;
    margin: auto;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    background: rgba(0, 255, 0, 0.8);
    text-align: center;
}
div.message.error{
    border: 2px solid rgb(255, 60, 60);
    background: rgba(255, 0, 0, 0.8);
}

.center{
    margin: auto;
    text-align: center;
}

/*
 * Tiles
 */
div.tileset{
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: auto;
}

div.tileset div.tile{
    margin: 1em;
    background: rgb(0, 180, 245);
    padding: 0.5em;
    text-align: center;
    width: 20em;
    height: 30em;
}

div.tile .imgholder{
    width: 90%;
    height: 9em;
    margin: auto;
}

div.tile img{
    max-width: 99%;
    max-height: 99%;
}

div.fadeout{
    overflow: hidden;
    position: relative;
}

div.fadeout:before{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(transparent 7.5em, rgb(0, 180, 245));
}
div.fadeout.grey:before{
    background: linear-gradient(transparent 7.5em, rgba(100, 100, 100, 1));
}

div.progressbar{
    background: rgba(100, 100, 100, 1);
    border-radius: 2em;
}
div.progressbar div{
    background: rgb(0, 180, 245);
    border-radius: 2em;
    color: rgb(255, 255, 255);
    padding-top: 0.5em;
    padding-bottom: 0.2em;
}
div.progressbar span{
    margin: 1em;
}

button.red{
    background: rgba(230,74,74,0.9);
    border: 1px solid rgba(187,48,48,0.9);
}
button.red:hover{
    background: rgba(200,54,54,0.9);
}
button.green{
    background: rgba(74,230,74,0.9);
    border: 1px solid rgba(48,487,48,0.9);
}
button.green:hover{
    background: rgba(54,200,54,0.9);
}

span.red{
    color: rgba(230,74,74,0.9);
}
span.green{
    color: rgba(74,230,74,0.9);
}

#editor{
    height: 90vh;
}
#engEditor{
    height: 90vh;
}
#hunEditor{
    height: 90vh;
}
#rouEditor{
    height: 90vh;
}

.footable{
    text-align: left;
}
