body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background-image: url('darkness.png'); /* from https://www.toptal.com/designers/subtlepatterns/ */
    color: #e6edf3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.rectangle {
	width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#zegar {
    font-family: 'Josefin Sans', sans-serif;
    color: #346b93;
    font-size: 40px;
    text-align: right;
    flex: 1;
}

#logo {
    font-size: 40px;
    flex: 1;
}

#quote {
    width: 100%;
    color: rgb(183, 223, 221);
    font-family: Cursive;
	font-style: italic;
    font-size: 18px;
    /*text-align: right;*/
}

h1 {
    font-weight: 500;
    margin-bottom: 40px;
}

/* linki */
a {
    display: block;
    margin: 10px 0;
    color: #58a6ff;
    text-decoration: none;
    font-size: 18px;
}

a:hover {
    text-decoration: underline;
}

/* sekcja dolna */
.footer {
    margin-top: 60px;
    font-size: 14px;
    color: #8b949e;
}

div.aboutMe {
    max-width: 900px;
    width: 100%;
    margin: 50px auto;
    background-color: #4d092b;
    font-size: 16px;
    padding: 20px;
}

/* ====== LAYOUT ====== */
.layout {
    display: flex;
    align-items: flex-start;
}

/* ====== SIDEBAR ====== */
.sidebar {
    margin-top: 250px;
    width: 260px;
    max-height: 100vh;
    overflow-y: auto;
    background: #0d1117;
    border-right: 1px solid #30363d;
    padding: 20px;
    border-radius: 15px;
    position: sticky;
    top: 0;
}

.sidebar-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #8b949e;
}

/* ====== MENU ====== */
.menu-group {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

/* nagłówek */
.menu-group summary {
    padding: 12px;
    cursor: pointer;
    background: #161b22;
    border-radius: 8px;
    font-weight: 500;
    list-style: none;
    position: relative;
    transition: background 0.2s;
}

.menu-group summary:hover {
    background: #21262d;
}

/* strzałka */
.menu-group summary::after {
    content: "▶";
    position: absolute;
    right: 10px;
    transition: transform 0.3s;
}

.menu-group[open] summary::after {
    transform: rotate(90deg);
}

/* zawartość */
.menu-group ul {
    list-style: none;
    margin: 0;
    padding: 5px 0;
    background: #0d1117;
}

/* animacja */
.menu-group ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.menu-group[open] ul {
    max-height: 200px;
}

/* linki */
.menu-group a {
    display: block;
    padding: 10px 15px;
    color: #c9d1d9;
    font-size: 14px;
    border-radius: 6px;
}

.menu-group a:hover {
    background: #21262d;
}

/* aktywny link */
.menu-group a.active {
    background: #1f6feb;
    color: white;
}

/* ====== CONTENT ====== */
.content {
    flex: 1;
    padding: 20px;
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }
}

@media (max-width: 768px) {

    #zegar, #logo {
        font-size: 24px;
        text-align: center;
        flex: 100%;
    }

    .rectangle {
        flex-direction: column;
    }

    h1 {
        font-size: 22px;
    }

    a {
        font-size: 16px;
    }

    #quote {
        font-size: 18px;
        text-align: center;
    }
}

