/*
Theme name: Webdesign
Version: 1.0
Description: Theme for page with student homework for webdesign.
Author: Vaclav Nemec
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900;1,1000&display=swap');

:root {
    --pink: #f14db3;
    --blue: #33a6d7;
    --yellow: #ffe82c;
    --gray: #3b4247;
    --black: #1a1f22;
}

html {
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito";
    font-size: 1.6rem;
}

body  {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 70px auto 70px;
    row-gap: 15px;
    align-items: center;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

header nav {
    display: grid;
    grid-template-columns: 20vw 1fr;
    justify-items: center;
    width: 100%;
}

nav .mobile {
    display: none;
}

header nav a {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

header nav img {
    height: 80%;
}

header nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 80%;

    list-style-type: none;
}

header nav ul li a {
    background-color: var(--blue);
    padding: 10px;
    color: #000;
    font-weight: 700;
    font-size: 2rem;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    transition: 0.3s;
}

header nav ul li a:hover {
    background-color: var(--pink);
    transition: 0.3s;
}

header nav ul li.current-menu-item a {
    background-color: var(--yellow);
}


@media screen and (max-width: 1000px) {
    nav {
        grid-column-gap: 50vw;
    }

    nav > a {
        padding-left: 10px;
        margin-left: 10px;
    }
    
    nav ul {
        position: absolute;
        width: 100%;
        padding: min(10vh, 200px) 0;
        top: 75px;
        z-index: 100;
        left: -100vw;
        transition: 0.5s;
        box-shadow: 0px 5px 10px rgba(0,0,0,0.1);
        /* height: min-content !important; */
        height: calc(100vh - 75px) !important;
    }

    nav ul li a {
        text-align: center;
        width: 60vw !important;
        padding: 10px 15px !important;
    }

    nav .mobile {
        display: inline-block;
    }

    header nav ul {
        height: auto;
        background-color: #fff;
        flex-direction: column;
        box-shadow: 0px 5px 10px rgba(0,0,0,0.1);
    }


    /* MOBILE MENU ICON */
    nav input.mobile {
        display: none;
    }

    header nav .menu-icon{
        height: 50px;
        padding: 25px 20px;
        position: relative;
        cursor: pointer;
    }
    
    /* MOBILE MENU ICON LINES */

    header .menu-icon .nav-icon{
        background-color: #000;
        display: block;
        height: 3px;
        width: 15px;
        position: relative;
        transition: background .2s ease-out;

        display: flex;
        justify-content: flex-end;
    }
    
    header .menu-icon .nav-icon:before{
        background-color: #000;
        content: "";
        display: block;
        height: 100%;
        position: absolute;
        transition: all .2s ease-out;
        width: 150%;
        top: 5px;
    }

    header .menu-icon .nav-icon:after{
        background-color: #000;
        content: "";
        display: block;
        height: 100%;
        position: absolute;
        width: 150%;
        transition: all .2s ease-out;
        top: -5px;
    }

    /* DISPLAING MOBILE MENU */

    header .menu-btn:checked ~ ul {
        top: 75px;
        left: 0vw;        
        transition: 0.5s;
        width: 100%;
    }

    /* MOBILE MENU ICON NAVIGATION */
    
    header .menu-btn:checked ~ .menu-icon .nav-icon{
        background-color: transparent;
    }
    header .menu-btn:checked ~ .menu-icon .nav-icon:before{
        transform: rotate(45deg);
        top: 0;
    }
    header .menu-btn:checked ~ .menu-icon .nav-icon:after{
        transform: rotate(-45deg);
        top: 0;
    }
}


body main {
    padding: 0 30px;
}

body main h2.login-info {
    text-align: center;
}

body main h2.login-info a {
    color: var(--blue);
    text-decoration: underline;
}

body:not(.home) main {
    align-self: start;
}

body main section {
    width: min(1100px, 75vw);
    margin: 0 auto;
}

body.home main {
    align-self: start;
}

body.home main ul {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    margin-left: 25px;
    gap: 25px;

    list-style-type: initial;
}

body.home main section>ul:first-child>li {
    font-weight: bold;
}

body.home main ul li a {
    width: max(30vw, 250px);
    height: 60px;
    background-color: var(--blue);

    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--black);

    font-weight: 800;
    font-size: 2.5rem;

    transition: 0.3s;
}

body.home main ul li a:hover {
    background-color: var(--pink);
    transition: 0.3s;
}


body main h1 {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 1000;
}

body main h2,
body main h2 a {
    font-size: 2.8rem;
    font-weight: 800;
    text-decoration: none;
    color: #000;
}

body main h2 a:hover {
    color: var(--pink);
}

body main h2:not(:first-child) {
    margin-top: 20px;
}

body main h3 {
    font-size: 2.2rem;
    font-weight: 700;
}

body.single main ul,
body.single main ol {
    margin-left: 30px;
}

body.single main ul li ul,
body.single main ul li ol,
body.single main ol li ul,
body.single main ol li ol {
    margin-left: 30px;
}

body.single main figure {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.single main figure img {
    max-width: 90%;
}

body main div.wp-block-file {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body main p {
    margin-bottom: 3px;
}

footer {
    width: 100%;

    padding: 10px 20px;
    
    display: flex;
    align-items: center;
    justify-content: center;

    height: 70px;

    background-color: #1a1f22;
    color: #ffffff;
    text-align: center;

}

footer a {
    color: rgb(255, 232, 44);
}

#webchatgpt-snackbar {
    display: none;
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
  body{
    background-color:#202020;
    color: #fff;
  }
  body main h2, body main h2 a{
    color: #fff;
  }
  main a{
    color: #eee;
  }
  main a:hover{
    color: #ccc;
  }
  main mark{
    padding:0px 6px;
  }
}