/* CSS Document */
/* =================================================================== */
/* BASE STYLES (Mobile-Small) | 0px - 399px                           */
/* =================================================================== */

:root {
    --text-color: #D4D3D3;
    --deco-color: #F9C701;
    --bg-color: #272727;
}

html {
    scroll-behavior: smooth;
    margin: 0;
}

body {
    background-color: #393939;
    color: var(--text-color);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

main {
    margin: 0px auto;
    padding: 0px;
    width: 100%;
}

nav {
    background-color: #272727;
    position: sticky;
    top: 0px;
    text-align: center;
    box-shadow: 0px 0px 20px black;
    font-size: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0 auto;
    width: 300px;
    padding-left: 0;
}

nav li {
    display: flex;
}

nav li.logo {
    display: none;
}

nav li.sw {
    display: none;
}

nav li.link {
    margin-right: 0;
    text-align:center;
}

nav a {
    display: flex;
    text-decoration: none;
    color: var(--text-color);
    padding: 1.3em 0.4em 1em 0.4em;
    font-size: 14.4px;
    transition: background-color 150ms ease;
}

nav a:hover {
    background-color:#131313;
    color: #FFFFFF;
}

nav a.active-link {
    border-bottom: 3px solid var(--text-color);
}

header {
    background-image: url(res/bannertt.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 150px;
}

article {
    width: 95%;
    margin: 0px auto;
}

section.onas {
    background-image: url(res/bgi.webp);
    background-repeat: no-repeat;
    background-size:cover;
}

section.nabor {
    background-image: url(res/bgin.webp);
    background-repeat: no-repeat;
    background-size:cover;
}

section.discord {
    background-image: url(res/bgid.webp);
    background-repeat: no-repeat;
    background-size:cover;
}

section.vedeni {
    background-image: url(res/bgiv.webp);
    background-repeat: no-repeat;
    background-size:cover;
}

section.statistics {
    background-image: url(res/bgin.webp);
    background-repeat: no-repeat;
    background-size:cover;
}

div.deco {
    margin: 0 auto;
    text-align: center;
}

img.nabor {
    width: 30%;
}

img.discord {
    width: 30%;
}

img.erb {
    width: 45%
}

img.community {
    width: 30%;
}

img.hell {
    width: 80%;
}

img.vision {
    width: 60%;
}

table.heroes {
    margin: 0 auto;
    font-size: 1.25rem;
    text-shadow: 1.5px 1.5px 0px black;
    color:#D4D3D3;
    width: 95%;
    text-align: center;
}

table.heroes img {
    width: 70%;
}

table.vedeni {
    width: 98%;
    text-align: center;
    margin: 0 auto;
    border: none;
    border-collapse: collapse;
}

img.vedeni {
    width: 100%;
}

h1 {
    color: #eceaea;
    font-size: 2.5rem;
    font-weight: normal;
    text-align: center;
    text-shadow: 1.5px 1.5px 0px black;
}

h2 {
    color: #F9C701;
    font-size: 1.2rem;
    text-align: left;
    text-indent: 1em;
    text-shadow: 1.5px 1.5px 0px black;
}

p {
    color: #D4D3D3;
    text-align: justify;
    font-size: 1rem;
    padding: 10px;
    text-shadow: 1.5px 1.5px 0px black;
}

span.highlight {
    color: #F9C701; 
    font-weight: bold;
}

span.b {
    font-weight: bold;
}

span.i {
    font-style: italic;
}

p.citec {
    font-style: italic;
    text-align: center;
    font-weight: normal;
    text-indent: 0;
}

p.cite {
    font-style: italic;
    text-align: justify;
    font-weight: normal;
    width: 90%;
    margin: 0px auto;
}

ul.rank {
    font-size: 1rem;
    color: #D4D3D3;
    text-shadow: 1.5px 1.5px 0px black;
}

p.zajem {
    text-align: center;
    font-size: 1.25rem;
}

table.nabortl {
    margin: 0 auto;
}

button.nabor {
    border: none;
    padding: 8px 10px;
    text-align: center;
    text-decoration: none;
    font-size: 1.5rem;
    cursor: pointer;
    background-color: #F9C701;
    box-shadow: 0px 0px 20px black;
    border-radius: 20px;
    color:#131313;
}

button.nabor:hover {
    background-color: #f98d01;
    color: #000000;
    transition: background-color 150ms ease;
}

/* =============================== */
/*            STATISTICS            */
/* =============================== */

section.statistics h1 {
    margin-bottom: 10px; 
    margin-top: 0;
    padding-top: 30px;
}

    h2 {
    /* color: #eceaea; */
    font-size: 2rem;
    font-weight: normal;
    text-align: center;
    text-shadow: 1.5px 1.5px 0px black;
    margin-bottom: 0;
    margin-top: 14px;
    text-indent: 0;
}

table.charts {
    margin: 0 auto;
    width: 95%;
    padding-bottom: 20px;
    border-spacing: 20px;
}

th.charts {
    vertical-align: top;
}

img.charts {
    border-radius: 8px;
    border: 1px solid var(--text-color);
    width: 70%;
}

th.charts a.chartsImg:hover {
    opacity: 0.6;
    filter: blur(1px);
}

th.charts a.chartsTitle {
    color: var(--text-color);
    text-decoration: none;
    transition: none;
    font-size: 1.2rem;
    text-shadow: 1.5px 1.5px 0px black;
}

th.charts a.chartsTitle:hover {
    text-decoration: none;
    text-shadow: none;
    color: var(--text-color);
}

th.charts ul {
    padding: 0;
}

th.charts li {
    list-style: none;
    padding: 5px 0 5px 0;
    color: var(--deco-color);
    text-shadow: 1.5px 1.5px 0px black;
    font-weight: normal;
    padding: 6px 0 6px 0;
}

th.charts a {
    color: var(--text-color);
    text-decoration: none;
    transition: none;
    text-shadow: 1.5px 1.5px 0px black;
    font-weight: bold;
}

th.charts a:hover {
    color:#FFFFFF;
    text-decoration: underline;
    text-shadow: none;
}

th.chartsArchive {
    vertical-align: top;
}

th.chartsArchive li {
    list-style: none;
    padding: 5px 0 5px 0;
    color: var(--deco-color);
    text-shadow: 1.5px 1.5px 0px black;
    font-weight: normal;
    padding: 6px 0 6px 0;
    text-align: left;
}

th.chartsArchive a {
    color: var(--text-color);
    text-decoration: none;
    transition: none;
    text-shadow: 1.5px 1.5px 0px black;
    font-weight: bold;
}

th.chartsArchive a:hover {
    color:#FFFFFF;
    text-decoration: underline;
    text-shadow: none;
}

th.chartsArchive h2 {
    text-align: left;
    text-indent: 1rem;
}

th.chartsArchive ul {
    padding: 0;
}

p.citeCharts {
    font-style: italic;
    text-align: center;
    font-weight: normal;
    font-size: 1rem;
    text-indent: 0;
    padding-top: 0;
    margin-bottom: 20px;
}

a.aContact {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}

a.aContact:hover {
    color:#FFFFFF;
    text-decoration: underline;
}


/* =============================== */
/*              FOOTER              */
/* =============================== */

footer {
    background-color: #222222;
    color:#D4D3D3;
    position: relative;
    bottom: 0px;
}

footer table.footer {
    text-align: left;
    margin: 0 auto;
    width: 95%;
    font-size: 0.625rem;
}

footer th.footerr {
    text-align: right;
    font-weight: normal;
}

footer th.footerl {
    font-weight: normal;
}

footer a {
    color: #D4D3D3;
}

footer a:hover {
    color:#FFFFFF;
    text-decoration: none;
}


/* =================================================================== */
/* MOBILE STYLES | 400px and up                                       */
/* =================================================================== */

@media screen and (min-width: 400px) {
    
    nav ul {
        width: 400px;
        padding: 0;
    }

    nav li.logo {
        display: flex;
        margin-top: 6px;
        padding-right: 5%;
        padding-left: 3%;
    }

    nav img.logo {
        width: 60px;
    }

    nav a.logo {
        text-decoration: none;
        padding: 0;
        transition: none;
    }

    nav a.logo:hover {
        background-color: initial;
    }

    nav a {
        padding: 1.8em 0.4em 1em 0.4em;
    }

    table.heroes {
        font-size: 1.125rem;
    }

    img.heroes {
        width: 50%;
    }

    img.nabor {
    width: 22%;
    }

    button.nabor {
        font-size: 1.625rem;
    }

}


/* =================================================================== */
/* TABLET STYLES | 600px and up                                       */
/* =================================================================== */

@media screen and (min-width: 600px) {

    nav {
        width: 100%;
    }

    nav ul {
        width: 550px;
    }

    nav img.logo {
        width: 65px;
    }

    nav li.logo {
        padding-right: 1em;
        padding-left: 0;
    }

    nav a {
        padding: 1.2em 0.6em 1em 0.6em;
        font-size: 20px;
    }

    header {
        height: 200px;
    }

    article {
        width: 550px;
    }

    section.onas {
        width: 100%;
    }

    table.heroes {
        font-size: 1.25rem;
        width: 590px;
    }

    section.vedeni {
        width: 100%;
    }

    table.vedeni {
        width: 590px;
    }

    img.vedeni {
        width: 280px;
    }

    h1 {
        font-size: 2.625rem;
    }

    h2  {
        font-size: 1.75rem;
    }

    p {
        font-size: 1.25rem;
        padding: 25px;
    }

    p.cite {
        width: 500px;
    }

    ul.rank {
        font-size: 1.25rem;
    }

    p.zajem {
        font-size: 1.5rem;
    }
              
    footer table.footer {
        width: 580px;
        font-size: 0.8125rem;
    }

    th.charts a {
        font-size: 1.125rem;
    }

    th.charts li{
        font-size: 1.25rem;
    }

    th.chartsArchive a {
        font-size: 1.125rem;
    }

    th.chartsArchive li{
        font-size: 1.25rem;
    }

    p.citeCharts {
        font-size: 1.35rem;
    }
}


/* =================================================================== */
/* BIG TABLET STYLES | 900px and up                                   */
/* =================================================================== */

@media screen and (min-width: 900px) {

    nav {
        width: 100%;
    }

    nav ul {
        padding: 0;
        width: 900px;
    }

    nav li.logo {
        padding-left: 40px;
        padding-right: 0;
    }

    nav a.logo:hover {
        color: var(--text-color);
    }

    nav li.sw {
        display: flex;
        margin-left: 10px;
        padding: 1em 10% 0.5em 0em;
        font-size: 24px;
    }

    nav a.logo {
        font-size:22px;
    }

    nav a {
        padding: 1.2em 0.8em 1em 0.8em;
    }

    p {
        font-size: 1.5rem;
    }

    ul.rank {
        font-size: 1.5rem;
    }

    header {
        height: 240px;
    }

    article {
        width: 800px;
    }

    section.vedeni {
        width: 100%;
    }

    table.heroes {
        width: 700px;
    }

    table.vedeni {
        width: 800px;
    }

    p.cite {
        width: 800px;
    }
              
    footer {
        width: 100%;
    }

    footer table.footer {
        width: 850px;
        font-size: 1rem;
    }

    img.nabor {
        width: 15%;
    }

    img.discord {
        width: 18%;
    }

    table.heroes img{
        width: 60%;
    }

    img.erb {
        width: 35%
    }

    img.hell {
        width: 65%
    }

    img.vision {
        width: 50%;
    }

    img.community {
        width: 26%
    }

    th.charts img {
        width: 200px;
    }

    th.charts a {
        font-size: 1.3rem;
    }  

    th.charts li {
        font-size: 1.5rem;
    }

    th.chartsArchive a {
        font-size: 1.3rem;
    }  

    th.chartsArchive li {
        font-size: 1.5rem;
    }
}

/* =================================================================== */
/* DESKTOP STYLES | 1100px and up                                     */
/* =================================================================== */

@media screen and (min-width: 1100px) {

    :root {
        --bg-color: #272727;
    }

    body {
        background-color: #272727; /* Changed from #393939 */
    }

    div.right {
        display: flex; /* This is new */
    }

    nav {
        background-color: var(--bg-color);
        height: 75px;
    }

    nav ul {
        width: 1050px; /* Changed from 900px */
    }
    
    /* nav li.sw 'display: flex' is inherited from 900px breakpoint */
    nav li.sw {
        padding: 0.9em 22% 0.7em 0em; /* Changed padding */
    }

    nav a.logo {
        font-size:24px;
    }

    nav a {
        padding: 1.2em 1em 1em 1em; /* Changed padding */
    }

    header {
        height: 311px; /* Changed from 240px */
    }

    article {
        width: 900px; /* Changed from 800px */
    }

    section.onascite {
        background-color: #393939; /* This is new */
    }

    /* This rule is needed to override the 60% width from smaller screens */
    table.heroes img {
        width: auto; 
    }

    table.vedeni {
        width: 900px; /* Changed from 800px */
    }

    img.vedeni {
        width: 450px; /* Changed from 280px */
    }

    img.erb {
        width: 30%
    }

    img.hell {
        width: 55%
    }

    p.cite {
        width: 900px; /* Changed from 800px */
    }
              
    footer {
        background-color: var(--bg-color); /* Changed from #222222 */
        box-shadow: 0px 0px 20px black; /* This is new */
    }

    footer table.footer {
        width: 1000px; /* Changed from 850px */
    }

    img.vision {
        width: 45%;
    }

    img.community {
        width: 22%
    }

    img.discord {
        width: 16%;
    }
}