@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

:root {
    --color1: #636971;
    --color2: #353C47;
    --color3: #6E809C;
    --color4: #1E2633;
    --color5: #162133;
    --color6: #0D1C33;
}

::selection {
    background: var(--color1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.highlight {
    border: solid var(--color3) 2px;
}

body, header, nav, main, aside, footer {
    display: flex;
}

body {
    flex-wrap: wrap;
    flex: 1 1 100vw;
}

header, nav {
    background-color: var(--color4);
    color: #fff;
}

header {
    flex: 1 1 100vw;
    height: 100px;
}

header #logo {
    margin: 10px;
    flex: 0 1 200px;
}

#open-menu, #close-menu {
    color: #fff;
    border: none;
    background: none;
    font-size: 30px;
    font-weight: bold;
    padding: 0px 5px 0px 5px;
    cursor: pointer;
    display: none;
}

nav {
    flex: 1 1 100vw;
    align-items: center;
    justify-content: flex-end;
}

nav a {
    margin: 3%;
    font-size: 20pt;
}

nav input {
    width: 15%;
    height: 30%;
    color: white;
    background-color: var(--color3);
    border: none;
    border-radius: 6px;
    outline: 0;
    padding: 5px;
    font-size: 1.1em;
}

main {
    flex-direction: column;
    background-color: #fff;
    flex: 20 1 500px;
    min-height: calc(100vh - 224px);
}

aside {
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: var(--color2);
    flex: 1 1 200px;
}

aside #login {
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

aside a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

aside a picture {
    display: flex;
    justify-content: center;
}

aside a picture img {
    width: 90%;
    border-radius: 3px;
}

#login a {
    color: white;
    font-weight: 450;
    text-align: center;
    background-color: var(--color3);
    padding: 10px;
    margin: 5px;
    border: solid var(--color6) 2px;
    border-radius: 8px;
    width: 100%;
}

#login a:hover {
    background-color: #7c8aa0;
}

#most-viewed {
    display: flex;
    flex-direction: column;
    justify-content: left;
    padding: 30px;
}

tr {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

td {
    width: 315px;
}

td a:hover {
    color: #eeecec;
    background-color: var(--color3);
    border: solid var(--color6) 2px;
    border-radius: 6px;
    height: 100px;
    transition: border .1s;
}

td a {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 30px;
    transition: .5s;
}

td a span{
    font-size: 3em;
    margin: 15px;
}

footer {
    color: #fff;
    background-color: var(--color5);
    flex: 1 1 100vw;
    padding: 40px 60px;
}

footer .container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

footer .container .wrap-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 1.4em;
}

footer .container .wrap-support {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: column;
    height: 97px;
}

footer .container .wrap-support a:hover {
    text-decoration: underline;
}

footer .container p, footer .container a {
    margin: 10px;
}

a {
    text-decoration: none;
    color: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

#mobile-img {
    display: none;
}

#search-icon {
    cursor: pointer;
}

@media only screen and (max-width: 1060px) {
    main {
        min-height: calc(100vh - 324px);
    }

    aside {
        justify-content: space-between;
        align-items: center;
        flex: 1 1 100vw;
        height: 130px;
        flex-direction: row;
    }

    aside a {
        margin: 0;
    }

    aside #login {
        width: 180px;
        height: 200px;
    }

    aside a picture {
        width: 90%;
    }
    
    aside a picture img {
        width: 100%;
        border-radius: 3px;
    }

    #login a {
        margin: 2px;
    }

    footer .container a {
        text-decoration: underline;
    }

    footer .container a {
        text-decoration: underline;
    }
}

@media only screen and (max-width: 800px) {
    footer .container .wrap-logo {
        display: none;
    }
}

@media only screen and (max-width: 854px) {
    #open-menu, #close-menu {
        display: block;
    }

    #open-menu {
        margin-left: auto;
    }

    #close-menu {
        position: fixed;
        right: 15px;
        top: 15px;
    }

    nav {
        position: fixed;
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        color: #fff;
        background: var(--color3);
        align-items: center;
        justify-content: center;
        margin: 0;
        display: none;
        opacity: 0;
        transition: 0.3s;
    }

    nav input {
        width: 80%;
        height: 5%;
        color: white;
        background-color: var(--color2);
        border: none;
        border-radius: 6px;
        outline: 0;
        padding: 5px;
        font-size: 1.
    }

    aside {
        justify-content: center;
    }

    aside a#ad {
        display: none;
    }
}