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

html, body {
    height: auto;
    font-family: Arial, sans-serif;
}

.light-theme {
    background-image: linear-gradient(#9FC2EE,#e9eff8) ;
    color: #000;
}

.dark-theme {
    background-color: #222222;
    color: #fff;
}

/*----------------------------------------------------------------------------BANER U GÓRY STRONY (NOT USED NOW)---------------------------------------------------------------------------------*/

header .top-image {
    width: 100%;
    height: 0px;
    background-image: linear-gradient(45deg,#9FC2EE,#e9eff8) ;
   background-image: url('/galeria/banerSzer.png');
    background-size:cover;
    background-position: center;
}

/*------------------------------------------------------------------------------MENU---------------------------------------------------------------------------------------------*/

nav {
    background-color: #659DE3;
    outline: 2px solid #9FC2EE;
    padding: 0;
    border-bottom: 2px #356fb6 solid;
}

.menu-container {
    max-width: 75%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    
}

nav ul {
    display: flex;
    list-style: none;
    width: 100%;
}

nav ul li {
    flex: 1;
}

nav ul li a {
    display: block;
    padding: 15px;
    text-align: center;
    color: #fff;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: #9FC2EE;
}

.dark-theme nav {
    background-color: #242325;
    outline: 2px solid #444444;
}

@media (max-width: 768px) {
    nav .menu-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        gap: 10px;
    }

    nav .menu-container ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    nav .menu-container ul li a {
        color: #ffffff;
        padding: 10px;
        background-color: transparent;
        font-size: 1.2em;
    }

    nav .menu-container ul li a:hover {
        background-color: #ffffff;
        color: #659DE3;
    }

}



/*---------------------------------------------------------------------------------MAIN-------------------------------------------------------------------------------------------*/
main {
    min-height: calc(100vh - 50px);
    display: flex;
    justify-content: center;
    position: relative; 
}

.content {
    width: 70%;
    background-color: #F0F0F0;
    display: flex;
    position: relative;
}

.main-content {
    width: 78%;
    padding: 20px;
}


.sidebar-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 22%; 
}

.sidebar {
    padding: 20px;
    position: relative;
}

.sidebar::before {
    content: "";
    position: absolute;
    left: -10px; 
    top: 5%;
    width: 1px;
    height: var(--sidebar-before-height, 0); 
    background-color: #242325;
    transition: all 0.3s ease; 
}

@media (max-width: 1550px) {
    .main-content{
        width:auto;
    }
    .content {
        flex-direction: column; 
        width: 100%; 
    }

    .sidebar::before {
        display: none; 
    }

    .sidebar-container {
        width: 300px; 
        margin-top: 20px; 
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 700px) and (max-width: 1550px){
    
    .sidebar {
       width:70vw;
        display: flex;
        flex-direction: row;
        justify-content: space-around; 
        align-items: center; 
        gap: 20px; 
    }

}


.dark-theme .content {
    background-color: #444444;
}

.dark-theme .main-content,
.dark-theme .sidebar {
    color: #fff;
}

#theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: linear-gradient(45deg, #ffffff 50%, #000000 50%);
    color: #FFD700;
}

/* ------------------------------------------------------------------------------------CALENDAR---------------------------------------------------------------------------------- */
.mini-calendar {
    margin-top: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

#calendar-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding: 5px 0;
    color: #333;
}

#calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

#calendar-days div {
    padding: 5px;
    background-color: #d3d3d3;
    border-radius: 3px;
    font-size: 0.8em;
    color: #333;
}

#calendar-days .today {
    background-color: #657dbb;
    color: #fff;
    font-weight: bold;
}


.clock {
    margin-top: 20px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.dark-theme .mini-calendar,
.dark-theme .clock {
    background-color: #444444; 
    color: #fff; 
}

.dark-theme #calendar-days div {
    background-color: #555;
    color: #fff; 
}

.dark-theme #calendar-days .today {
    background-color: #9FC2EE; 
    color: #000;
}

#calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    font-weight: bold;
    color: #333;
}

.dark-theme #calendar-weekdays {
    color: #fff;
}

#calendar-weekdays div {
    padding: 5px;
    text-align: center;
}

.clock {
    margin-top: 20px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
}

