:root {
    --background-color: black;
    --main-body-bg: white;
    --main-body-text: rgb(33, 37, 41);

    --main-nav-bg: rgb(33, 37, 41);
    --main-nav-text: #ccc;

    --main-footer-bg: rgb(54, 69, 79);
    --main-footer-text: rgb(192, 192, 192);
    --shadow: rgba(255, 255, 255, 1);
}

body {
    font-family: "Anton SC";
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: auto 1fr;
    background-color: var(--background-color);
    overflow-x: hidden;
}
p, .sub-menu a {
    font-family: "Afacad Flux", Arial;
    font-weight: bold;
}
* {
    margin: 0;
    padding: 0;
}

main {
    padding: 5px;
    margin: 10px;
    border: 1px solid var(--main-nav-text);
    border-radius: 15px;
    box-shadow: 0px 0px 5px var(--shadow);
    background-color: var(--main-body-bg);
    color: var(--main-body-text);
}
.header {
    background-image: url("./assets/images/papercobackground.jpg");
    background-size: cover;
    height: 400px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    border: 6px solid var(--main-body-text);
    box-shadow: 0px 1px 5px rgba(0,0,0,0.5);
}
.header > h1 {
    padding: 10px;
    font-size: 7.5rem;
    margin-left: 20px;
    font-weight: 100;
    text-shadow: 0px 2px 10px rgb(33, 37, 41);
}
.header > img {
    margin-left: 10px;
    height: 150px;
    border-radius: 100%;
    box-shadow: 0px 2px 10px rgb(33, 37, 41);
}
.text {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 20px;
    padding: 10px;
}
.body-txt {
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 20px 0px 10px 0px;
}
.name {
    display: inline;
    border: 2px solid rgb(192, 192, 192);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    background-color: inherit;
    transition: all 0.15s;
}
.name:hover {
    background-color: var(--main-body-text);
    color: var(--main-body-bg);
}
.name:active {
    opacity: 0.5;
}
.text > a {
    text-decoration: none;
    color: var(--main-body-text);
}
.text > a > button {
    font-family: "Afacad Flux", Arial;
    font-weight: bold;
    line-height: 1;
}

#productshowcase {
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0px 0px 5px var(--main-body-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 6px solid var(--main-body-text);
}
#productshowcase > h2 {
    text-align: center;
    margin: 20px 0px;
    font-size: 24pt;
}
#productshowcase > div {
    display: grid;
    grid-template-columns: 200px 200px 200px 200px;
    grid-template-rows: 200px 200px;
    gap: 50px;
    margin: 20px 0px;
}
#productshowcase > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 8px solid var(--main-body-text);
    box-shadow: 0px 0px 5px var(--main-body-text);
}

/* Footer */
footer {
    background-color: var(--main-footer-bg);
    color: var(--main-footer-text);
    text-align: center;
    border-radius: 15px;
    padding:15px;
    margin: 0px 10px 10px 10px;
    box-shadow: 0px 0px 5px var(--shadow);
    border: 1px solid var(--main-footer-text);
    display: flex;
    justify-content: space-between;
    line-height: 2;
}
footer ul {
    list-style: none;
    text-align: right;
    font-family: "Afacad Flux", Arial;
    font-weight: bold;
}
footer p {
    text-align: left;
}
footer a {
    color: var(--main-nav-text);
}
footer span {
    color: rgb(65, 78, 87);
}

/* Sidebar */
#sidebar {
    box-sizing: border-box;
    height: 100vh;
    width: 250px;
    padding: 5px 1em;
    margin: 10px 0px 10px 10px;
    border: 1px solid var(--main-nav-text);
    border-radius: 15px;
    box-shadow: 0px 0px 5px var(--shadow);
    color: var(--main-nav-text);
    background-color: var(--main-nav-bg);

    position: sticky;
    top: 0;
    align-self: start;

    overflow-y: scroll;
    scrollbar-color: var(--main-nav-text) var(--main-nav-bg);
    scrollbar-width: thin;
}
#sidebar ul {
    list-style: none;
}

#toggle {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
    align-items: center;
}
#toggle-btn > img {
    width: 30px;
    height: 30px;
}
#toggle-btn {
    padding: 5px 15px 5px 5px;
    margin: 10px 0px 15px 0px;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    svg {
        transition: rotate 0.15s ease;
    }
}
.dropdown-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

#sidebar ul li.active {
    border-radius: 0.5em;
    background-color: rgba(255, 255, 255, 0.1);
}
#sidebar a, #sidebar .dropdown-btn, #sidebar .logo {
    border-radius: .5em;
    padding: 0.85em;
    margin: 0.5em 0;
    text-decoration: none;
    color: var(--main-nav-text);
    display: flex;
    align-items: center;
    gap: 1em;
    transition: all 0.15s;
}
#sidebar a:hover, #sidebar .dropdown-btn:hover{
    box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.5);
}
#sidebar a:active, #sidebar .dropdown-btn:active {
    background-color: rgba(155, 155, 155, 0.05);
}

#sidebar .sub-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: 0.3s ease-in-out;
    > div {
        overflow: hidden;
    }
}
#sidebar .sub-menu.show {
    grid-template-rows: 1fr;
}
.dropdown-btn svg {
    transition: 0.15s ease;
}
.rotate svg:last-child {
    rotate: -90deg;
}
#sidebar .sub-menu a{
    padding-left: 2em;
}
