@import url(constants.css);

body {
    margin: 0;
    display: flex;
    font-family: "Quicksand", sans-serif;
    background-color: var(--clr-background);
    height: 100dvh;
}

#sidePanel {
    margin: 20px;
    width: fit-content;
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#sidePanel p {
    margin: 5px 0 0 0;
}

#sidePanel p:first-child {
    margin: 0;
}

#topPanel {
    background-color: var(--clr-background);
    width: 100%;
    flex-grow: 1;
    box-shadow: 1px 1px 10px var(--clr-shadow);
    border-radius: 10px;
    margin: 0 0 20px 0;
}

.panel {
    background-color: rgb(40, 40, 41);
    width: calc(100% - 40px);
    border-radius: 10px;
    color: white;
    font-size: 12px;
    padding: 20px;
    
}

.panel a img {
    width: 16px;
    height: 16px;
    margin: 0 10px 0 0;
}

.panel:last-child {
    margin: 20px 0 0 0;
}

#logo {
    width: 120px;
    margin: 0 0 -20px 0;
    opacity: 0.8;
    cursor: pointer;
    z-index: 10;
    position: relative;
    left: 50%;
    top: 30px;
    translate: -50%;
}

#bannerStart {
    position: relative;
    left: 50%;
    top: -5px;
    width: 75px;
    height: 75px;
    border-radius: 0 0 100% 0;
    border-bottom: 5px solid #005bda;
    border-right: 5px solid #ffdd00;
    rotate: 45deg;
    transform-origin: 0px 0px;
}

#categories {
    margin: -10px 0 40px 0;
}

#categories h3{
    padding: 10px;
    margin: 0;
    text-align: center;
    color: var(--clr-title);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

#categories h3:hover {
    font-weight: 900;
}

#categories h3 span {
    margin: 0 5px;
    opacity: 0.8;
}

#categories img {
    width: 40px;
    margin: auto;
    display: block;
}

#quote {
    color: grey;
    font-style: italic;
    width: calc(100% - 40px);
    margin: 20px auto;
}

#background {
    flex-grow: 1;
    height: 100%;
}

#background img{
    max-width: 80%;
    max-height: 80%;
    position: relative;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    opacity: 0.08;
}

#background p {
    color: rgb(190, 190, 190);
    font-weight: 600;
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 20px;
    font-size: 14px;
}

#main {
    width: calc(100vw - 230px);
    height: 100dvh;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
}

#mobilePanel {
    background-color: var(--clr-background);
    width: 100%;
    height: 78px;
    border-bottom: 2px solid var(--clr-shadow);
    display: none;
    justify-content: space-between;
    align-items: center;
}

#mobileLogo {
    width: 60px;
    margin: 10px;
    opacity: 0.8;
}

#layout {
    width: 100vw;
    height: 100vh;
    display: flex;
}

#mobileBanner {
    width: 40px;
    position: absolute;
    top: 80px;
    right: 20px;
}

#mobileCatButton {
    width: 78px;
    height: 100%;
    cursor: pointer;
}

#mobileCatButton svg {
    width: 24px;
    height: 20px;
    position: relative;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

#mobileCatTitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--clr-title);
}

#mobileCatPanel {
    position: absolute;
    background-color: var(--clr-background);
    top: 78px;
    right: 0;
    z-index: 10;
    border-radius: 0 0 0 10px;
    border: 2px solid var(--clr-shadow);
    border-right: none;
    border-top: none;
    display: none;
}

#mobileCatPanel h3 {
    margin: 20px;
    font-weight: 600;
    color: var(--clr-text);
    text-align: center;
    cursor: pointer;
    user-select: none;
}

#mobileLinks {
    width: calc(100% - 20px);
    height: fit-content;
    display: flex;
    justify-content: space-around;
    margin: 0 10px 10px 10px;
}

#mobileLinks a {
    width: fit-content;
    height: fit-content;
}

#mobileLinks a img{
    filter: brightness(0.2);
    width: 18px;
    height: 18px;
}

#mobileBackgroundClick {
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9;
}

#overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    position: fixed;
    visibility: hidden;
}

#overlay div {
    max-width: 80%;
    max-height: 80%;
    height: fit-content;
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
}

#overlay div img {
    max-width: 100%;
    max-height: 100%;
    border: 5px solid var(--clr-background);
    border-radius: 10px;
}

#overlay div b {
    color: var(--clr-title);
    background-color: var(--clr-background);
    padding: 5px;
    width: 20px;
    height: 20px;
    text-align: center;
    border-radius: 5px;
    display: block;
    font-size: 20px;
    line-height: 16px;
    position: absolute;
    top: 10px;
    right: 2px;
    cursor: pointer;
}

@media (max-width: 800px) {
    #sidePanel {
        display: none;
    }

    #main {
        width: 100vw;
        height: calc(100dvh - 80px);
        top: 80px;
    }

    #layout {
        display: inline;
    }

    #mobilePanel {
        display: flex;
    }

    #background {
        height: calc(100dvh - 80px);
    }

    #background p {
        font-size: 12px;
        width: max-content;
        left: 50%;
        translate: -50%;
        margin: 20px 0;
    }
}

