/* ========================= */
/* RESET */
/* ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================= */
/* BODY */
/* ========================= */

body {
    background-image: url('static/bg.jpg'); 
    background-size: cover; 
    background-repeat: no-repeat; 
    background-attachment: fixed;
    font-family: "Lucida Console", "Courier New", monospace;
    color: rgb(255, 255, 255);
    height: 100vh;
    background-color: black;
}

/* ========================= */
/* MAIN GRID LAYOUT */
/* ========================= */

.parentpool {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: 60px 1fr;
    grid-template-areas:
        "sidebar topbar"
        "sidebar items";
    height: 100vh;
}

/* ========================= */
/* SIDEBAR */
/* ========================= */

.sidebar {
    grid-area: sidebar;
    background: linear-gradient(to bottom left, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 5px;
    display: inline-block;
    transition: 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* ========================= */
/* TOPBAR */
/* ========================= */

.topbar {
    grid-area: topbar;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar button {
    position: absolute;
    right: 20px;
}

h1 {
    font-size: 28px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 5px;
}

/* ========================= */
/* ITEMS SECTION */
/* ========================= */

.items {
    grid-area: items;
    padding: 30px;
    overflow-y: auto;
}

.category {
    margin-bottom: 50px;
    border: solid 1px rgb(255, 255, 255);
    border-radius: 5px;
    padding: 20px;
    flex-wrap: wrap;
    display: flex;
    flex-direction: row;
        gap: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
     backdrop-filter: blur(1px);
}

.category h2 {
    margin-bottom: 20px;
}

.item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: 0.3s ease;
    width: 220px;
    backdrop-filter: blur(4px);
    border: solid 1px rgba(255, 255, 255, 0.8);
}

.item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

/* ========================= */
/* BUTTONS */
/* ========================= */

button {
    background-color: #4CAF50; 
    color: white; 
    padding: 12px 20px; 
    font-size: 14px; 
    border: none; 
    border-radius: 5px;
    font-family: "Lucida Console", "Courier New", monospace;
    transition: all 0.3s ease;
    cursor: pointer;
}

button:hover {
    box-shadow: rgba(46, 240, 46, 0.4) -5px 5px,
                rgba(46, 240, 46, 0.3) -10px 10px,
                rgba(46, 240, 46, 0.2) -15px 15px,
                rgba(46, 240, 46, 0.1) -20px 20px;
    transform: translateY(-5px);
    border-radius: 30px;
}

/* ========================= */
/* PARAGRAPHS */
/* ========================= */

p {
    font-size: 16px; 
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 5px;
    transition: 0.3s ease;
}

p:hover {
    background-color: rgba(0, 0, 0, 0.4);
    cursor: help;
}

/* ========================= */
/* OPTIONAL: SCROLLBAR STYLE */
/* ========================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(46, 240, 46, 0.6);
    border-radius: 10px;
}

h2 {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    backdrop-filter: blur(1px);
}

h3 {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-block;
    backdrop-filter: blur(1px);
}

video {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
    border: solid 1px rgba(255, 255, 255, 0.8);
}