html {
    height: 100%;
}

body {
    padding: 0px;
    margin: 0px;
    font-family: "Montserrat", sans-serif;
    display: flex;
    flex-direction: column;
    background-color: #ababab;
    color: #e6e6e6;
    height: inherit;
}

.selectable {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.selectable:hover {
    opacity: 0.7;
}

header {  
    justify-content: space-between; /* Horizontal spacing */
    align-items: center;          /* Vertical alignment */
    display: flex;
    background-color: #ababab;
    position: relative;
    flex-shrink: 0;
    height: 65px;
    font-size: 20px;
}

footer {
    background-color: #8d8d8d;
    text-align: center;
    font-size: 14px; 
    flex-shrink: 0;
    display: block;
    height: 65px;
    user-select: none;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #555;
    height: calc(100% - 130px);
}

#menu-toggle {
    cursor: pointer;
    position: relative;
    z-index: 10;
}

#menu-logo {
    cursor: pointer;
    position: relative;
    z-index: 10;
    left: 0px;
}

#menu-name {
    position: relative;
    z-index: 10;
    left: 10px;
    display: grid;
    place-items: center;
}

#menu {
    display: none;
    position: absolute;
    align-items: center;          /* Vertical alignment */
    width: 100%;
    background-color: #8d8d8d;
    top: 0px;
    z-index: 10;
}

#menu-select {
    position: absolute;
    top: 0;
    right: 0px;
    width: auto;
    height: 100%;
    z-index: 5;
}

#menu-select ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    height: 100%;
}

#menu-select li {
    display: flex;
}

#menu-option {
    width: 150px;
}

#menu-select li:not(:last-child)::after {
  content: "|";     /* Dodaje pionową kreskę */
  z-index: 10;
  font-size: 50px
}

#menu-select a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

#menu-select a:hover {
    background-color: #555;
}

section {
    display: none;
    flex: 1;
    width: 100%;
}

section.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100% - 130px);
}

section.active > * {
    width: 100%;
}

section.active h2,
section.active p {
    max-width: 900px;
    margin: 0 auto;
}

#welcome {
    position: absolute;
    top: 0px;
    left: 0px;  
    height: 100%;
    flex: 1;
}

#welcome-image {
    display: block;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    flex: 1;
}

.gallery {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
    overflow: hidden;
}

.gallery a {
    display: contents;
}

.gallery a img {
    width: 100%;
    height: 100%;
    /* pointer-events: none;
    user-select: none; */
    object-fit: contain;
    object-position: center;
    display:block;
}

.gallery img {
    width: 100%;
    height: 100%;
    /* pointer-events: none;
    user-select: none; */
    object-fit: contain;
    object-position: center;
    display:block;
}

.gallery-nav {
    position: absolute;
    top: calc(50% - 65px);
    width: 30px;
    min-height: 120px;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 1;
    color: #e6e6e6;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.35);
}

.gallery-nav-left {
    left: 0;
}

.gallery-nav-right {
    right: 0;
}

.about-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    min-height: 0;
    font-size: 14px; 
}

.text-slider {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 0;
    touch-action: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.text-slider::-webkit-scrollbar {
    display: none;
}

.text-nav {
    position: absolute;
    top: calc(50% - 65px);
    width: 40px;
    min-height: 120px;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #e6e6e6;
}

.text-nav:hover {
    background: rgba(0, 0, 0, 0.35);
}

.text-nav-left {
    left: 0;
}

.text-nav-right {
    right: 0;
}

.text-slider::-webkit-scrollbar {
    display: none;
}

.text-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #ababab;
    border-radius: 10px;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.timeline-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    /* scrollbar-color: [kolor uchwytu] [kolor tła paska] */
    scrollbar-color: #8d8d8d #ababab;
}

.timeline {
    display: flex;
    position: relative;
    min-width: max-content;
    padding: 40px 250px;
    align-items: flex-start;
    user-select: none;
}

.timeline-axis {
    position: absolute;
    top: 200px;
    left: 0px;
    right: 0px;
    height: 35px;
    background-color: #d7d7d7;
    border-radius: 3px;
    z-index: 1;
}

.timeline-event {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 180px;
    width: 250px;
}

.timeline-marker {
    width: 25px;
    height: 70px;
    background-color: #8d8d8d;
    position: relative;
    z-index: 2;
    border-radius: 2px;
}

.timeline-milestone-marker {
    width: 10px;
    height: 60px;
    background-color: #e6e6e6;
    position: relative;
    border-radius: 2px;
    margin-top: 30px;
}

.timeline-event-text {
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    width: 230px;
    font-size: 14px; 
    line-height: 1.4;
}

.timeline-milestone {
    position: absolute;
    top: 0px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    margin-top: 95px;
}

.timeline-milestone-text {
    font-size: 1.5rem;
    color: #666;
    font-weight: bold;
    white-space: nowrap;
    transform: rotate(-90deg);
    transform-origin: center;
}

.timeline-milestone-line {
    display: none; /* Not needed with rectangle markers */
}

