/* Theming */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap"); /* import font */

:root {
    --white: #f9f9f9;
    --black: #36383f;
    --gray: #85888c;
    --textcolor: #373737;
} /* variables*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: var(--white);
    font-family: "Poppins", sans-serif;
}
a {
    text-decoration: none;
    color: var(--textcolor);
}
ul {
    list-style: none;
}
h1 {
    margin-top: 10px;
    color: var(--textcolor);
}
h2 {
    margin-top: 10px;
    margin-left: 5%;
    color: var(--textcolor);
}
p {
    margin-left: 5%;
    color: var(--textcolor);
}
pcom {
    font-family: Arial;
    margin-left: 5%;
    font-weight: bolder;
    color: var(--black);
}
ul.a {
    list-style-type: disc;
    list-style-position: inside;
    margin-left: 5%;
    color: var(--textcolor);
}
.block {
    margin-left: 5%;
}
.grid-left {
    margin-left: 5%;
    display: grid;
    grid-template-rows: auto auto;
}
.grid-right {
    margin-left: 5%;
    display: grid;
    grid-template-rows: auto auto;
}

/* Header sticky */
.header {
    /*background-color: var(--black);*/
    background-color: var(--white);
    /*background-image: linear-gradient(to right, #f2f2f2, #3e6a30);*/ /* Gradient from dark to light */
    box-shadow: 1px 1px 5px 0px var(--gray);
    position: sticky;
    top: 0;
    width: 100%;
}
/* Logo */
.logo {
    display: inline-block;
    position: absolute;
    padding: 30px;
    /*float: left;*/
    /*color: #ff003e;*/
    color: var(--gray);
    font-size: 30px;
}

/* Nav menu */
.nav {
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: var(--white);
    overflow: hidden;
}
/* Add gradient background */
.menu a {
    display: block;
    padding: 45px;
    color: var(--black);
}
.menu a:hover {
    background-color: var(--gray);
}
.nav {
    max-height: 0;
    transition: max-height 0.5s ease-out;
}

/* Menu Icon */
.hamb {
    cursor: pointer;
    float: right;
    padding: 20px;
} /* Style label tag */

.hamb-line {
    background: var(--gray);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
} /* Style span tag */

.hamb-line::before,
.hamb-line::after {
    background: var(--gray);
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    transition: all 0.2s ease-out;
    width: 100%;
}
.hamb-line::before {
    top: 5px;
}
.hamb-line::after {
    top: -5px;
}

.side-menu {
    display: none;
} /* Hide checkbox */

/* Toggle menu icon */
.side-menu:checked ~ nav {
    max-height: 100%;
}
.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top: 0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top: 0;
}

body:has(.side-menu:checked) {
    overflow: hidden;
}

/* Responsiveness */
@media (min-width: 1000px) {
    .nav {
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        /*position:absolute;
        top: 20;
        left:50;
        right:0;
        margin-left:auto;
        margin-right:auto;*/
        width: fit-content;
        background-color: transparent;
    }
    .menu li {
        float: left;
    }
    .menu a:hover {
        background-color: transparent;
        color: var(--gray);
    }
    .hamb {
        display: none;
    }
    .grid-left {
        margin-left: 5%;
        display: grid;
        grid-template-columns: 480px 500px;
    }
    .grid-right {
        margin-left: 5%;
        display: grid;
        grid-template-columns: 500px 480px;
    }
    .logo {
        display: inline-block;
        position: absolute;
        padding: 10px;
        /*float: left;*/
        /*color: #ff003e;*/
        color: var(--gray);
        font-size: 60px;
    }
}
