body {
     background-color: #1f1f1f;
}

.title {
    background: linear-gradient(to right, #ff0000, #000000);
    padding: 50px;
    text-align: center;
    color: white;
    margin: -10px -8px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lista {
    /* nav container */
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: #1f1f1f;
    border: 1px solid rgba(255,255,255,0.04);
    width: calc(100% - 20px); 
    top: -19.3px;  
    padding: 12px 14px;
    right: 6px; 
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
}

.main_text {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 10px;
    color: #c6c8c8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}


.flex_container {
    display: flex;
    justify-content: space-between; /* nebo 'center' nebo 'flex-start' */
    align-items: flex-start;
    gap: 20px; /* mezera mezi boxy */
    flex-wrap: wrap; /* zalomení na menších obrazovkách */
    padding: 20px;
}

#discordlogin {
    position: absolute;
    top: 14px;
    right: 20px;
    background-color: #7289da00; /* Discord modrá */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sec_text,
.thr_text,                                                                      
.for_text {
    width: 380px;
    height: 480px;
    padding: 30px 20px;
    margin-bottom: 40px;
    color: #c6c8c8;
    background-color: #2a2a2a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: left;
    border-radius: 12px;
    box-shadow: #1f1f1f 0px 5px 12px, rgba(0,0,0,0.5) 0px 6px 20px;
    border: 1px solid rgb(97, 3, 3);
    overflow: auto; /* přidá posuvník, pokud je obsah příliš velký */
    
}

.down_text {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 10px;
    color: #c6c8c8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}

.lista1 {
    /* active item styling (Home) */
    overflow: hidden;
    position: relative;
    /* match other items: use base button appearance; underline on hover */
    color: inherit; /* let .lista button color apply */
    font-weight: inherit;
}

/* base button style for items inside .lista */
.lista button {
    background: transparent;
    border: none;
    color: #c6c8c8;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.lista button:hover {
    color: #ffffff;
}

.lista button::after {
    /* small rounded underline indicator */
    content: '';
    display: block;
    width: 28px;
    height: 6px;
    background: transparent;
    border-radius: 6px;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    transition: background .12s ease;
}


/* hover shows underline for non-active items */
.lista button:hover::after {
    background: rgba(255,255,255,0.9);
}

.lista1::before {
    content: '';
    display: inline-block;
    width: 18px; /* same as other icons */
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* schedule/clock icon for Rozvrh školy */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6C8C8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='8'/><path d='M12 8v5l3 2'/></svg>");
}

/* icon for .lista2 (link/web) */
.lista2::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6C8C8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 14a5 5 0 0 0 7 0l1-1'/><path d='M14 10a5 5 0 0 0-7 0l-1 1'/></svg>");
}

/* icon for .lista3 (calendar) */
.lista3::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6C8C8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='2'/><path d='M16 3v4M8 3v4'/></svg>");
}

/* icon for .lista4 (chat) */
.lista4::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6C8C8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H8l-5 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>");
}

/* icon for .lista5 (home / homepage) */
.lista5::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6C8C8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 9.5L12 3l9 6.5'/><path d='M9 22V12h6v10'/></svg>");
}

.school-image {
    max-width: 50%;
    height: auto;
    border-radius: 12px;
    margin-top: 20px;
    right: 5%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* ---------- Footer styles ---------- */
.site-footer {
    /* match .lista styling: dark panel with subtle border and shadow */
    background-color: #1f1f1f;
    color: #c6c8c8;
    padding: 18px 16px;
    margin-top: 28px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
    max-width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
}
.site-footer .footer-inner {
    display: flex;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding: 6px 4px;
}
.site-footer .footer-col {
    flex: 1 1 200px;
    min-width: 180px;
}
.site-footer h4 {
    color: #c6c8c8;
    margin-bottom: 8px;
    font-size: 14px;
}
.site-footer p, .site-footer li {
    color: #c6c8c8;
    font-size: 13px;
    line-height: 1.4;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer a {
    color: #c6c8c8;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 8px;
}
.site-footer a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.03);
    text-decoration: none;
}
.site-footer .footer-bottom {
    border-top: none;
    max-width: 1100px;
    margin: 12px auto 0;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.site-footer .back-top {
    color: #c6c8c8;
    font-weight: 600;
}
.site-footer .back-top:hover {
    color: #ffffff;
}

@media (max-width: 700px) {
    .site-footer .footer-inner { gap: 12px; }
    .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}

.pngfoto,
.pngfoto2,
.pngfoto3 {
    display: block;
    margin: 20px auto 0 auto;
    width: 360px;           /* sjednocená šířka */
    height: 240px;          /* sjednocená výška */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* jemný stín */
}


/* ---------- Light Theme Styles ---------- */

body.light-theme {
    background-color: #f0f0f0;
    color: #1f1f1f;
}

body.light-theme .sec_text,
body.light-theme .thr_text,
body.light-theme .for_text {
    background-color: #ffffff;
    color: #1f1f1f;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 5px 12px, rgba(0, 0, 0, 0.1) 0px 6px 20px;
    border: 1px solid #ccc;
}

body.light-theme .site-footer {
    background-color: #e9e9e9;
    color: #1f1f1f;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .site-footer a {
    color: #1f1f1f;
}

body.light-theme .site-footer a:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .back-top {
    color: #1f1f1f;
}

body.light-theme .back-top:hover {
    color: #000000;
}



