.fade-out {
  animation: fadeOut 0.25s forwards;
}

/* Animacja pojawiania się */
body {
  animation: fadeIn 0.25s;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.main-wrapper {
    min-height: 100vh;
    font-family: 'Poppins', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 20px;
}

.content-wrapper {
    display: flex;
    width: 96%;
    position: relative;
    margin: 0 auto;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.content-wrapper.visible {
  opacity: 1;
}

.room-info {
    width: 20%;
    padding: 30px 30px;
    background-color: #f3f3f3;
    border-bottom-left-radius: 16px;
    border-top-left-radius: 16px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.07);
}

.room-image {
    width: 100%;
    margin: 10px 0;
    border-radius: 8px;
    border: 2px solid #116072;
    object-fit: cover;
}

.room-attributes-list {
    list-style: none;
    padding-left: 0;
    width: 95%;
    margin-top: 20px;
}

.room-attributes-list li {
    position: relative;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.3;
    padding-left: 18px;
    text-align: left;
}

.room-attributes-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 6px;
    height: 6px;
    background-color: #116072;
    border-radius: 50%;
}

.room-attributes-list .label {
    font-weight: 600;
    color: #116072;
}

.room-timetable {
    width: 65%;
    margin-left: 0;
    background-color: #ffffff;
    border-bottom-right-radius: 16px;
    border-top-right-radius: 16px;
    padding: 40px 30px;
    overflow-x: auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.availability-indicator {
    display: inline-block;
    margin-bottom: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.avail {
    background-color: #09af0c;
}

.unavail {
    background-color: #e91212;
}

.arrow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.arrow-left {
    left: -30px;
}

.arrow-right {
    right: -30px;
}

.arrow-nav:hover {
    color:#116072;
    transform: translateY(-50%) scale(1.1);
}

#schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto 60px auto;
    font-size: 11px;
}

#schedule-table th {
    height: 30px;
    padding: 3px;
    background-color: #116072;
    border: 1px solid #238095;
    color: #e6e6e6;
}

#schedule-table td{
    vertical-align: middle;
    text-align: center;
    height: 28px;
    width: 7%;
    padding: 3px;
    border: 1px solid #238095;
}

#schedule-table td.hours-column{
    width: 5%;
    color: #e6e6e6;
    background-color: #116072;
}

.occupied {
    background-color: #ffcccc;
    color: red;
}

/* Kolory dla rezerwacji */
.reserved {
    background-color: rgb(255, 218, 204);
    color: rgb(252, 102, 15);
}

.available {
    background-color: #ccffcc;
    color: green;
}

.table-title{
    font-size: 22px;
    color:#116072;
}

.section-title {
    font-size: 30px;
    color:#116072;
}

.room-description {
    font-size: 16px;
    color: #333;
}

@media (max-width: 1000px) {
    .main-wrapper {
        padding: 10px;
    }

    .content-wrapper {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .room-info {
        width: 24%;
        padding: 10px 10px;
        border-bottom-left-radius: 10px;
        border-top-left-radius: 10px;
        box-shadow: 0 6px 15px rgba(0,0,0,0.07);
    }

    .room-image {
        margin: 5px 0;
        border-radius: 4px;
        border: 1px solid #116072;
    }

    .room-attributes-list {
        list-style: none;
        padding-left: 0;
        width: 95%;
        margin-top: 10px;
    }

    .room-attributes-list li {
        font-size: 4px;
        padding-left: 4px;
    }

    .room-attributes-list li::before {
        width: 3px;
        height: 3px;
        top: 1px;
    }

    .room-attributes-list .label {
        line-height: 1;
        font-weight: 600;
        color: #116072;
        margin-left: 2px;
    }

    .room-timetable {
        width: 65%;
        margin-left: 0;
        background-color: #ffffff;
        border-bottom-right-radius: 16px;
        border-top-right-radius: 16px;
        padding: 40px 30px;
        overflow-x: auto;
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    }

    .availability-indicator {
        display: inline-block;
        margin-bottom: 2px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        margin-right: 6px;
        vertical-align: middle;
    }

    .availability-indicator {
        display: inline-block;
        margin-bottom: 1px;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        margin-right: 8px;
        vertical-align: middle;
    }

    .room-timetable {
        border-bottom-right-radius: 10px;
        border-top-right-radius: 10px;
        padding: 20px 10px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    }

    .arrow-nav {
        display: none;
    }

    #schedule-table {
        width: 100%;
        border-collapse: collapse;
        margin: 0 auto 20px auto;
        font-size: 3px;
    }

    #schedule-table th {
        height: 6px;
        padding: 3px;
        border: 0.5px solid #238095;
        color: #e6e6e6;
    }

    #schedule-table td{
        height: 8.5px;
        width: 20px;
        padding: 2px;
        border: 0.5px solid #238095;
    }

    #schedule-table td.hours-column{
        width: 5%;
        color: #e6e6e6;
        background-color: #116072;
    }

    .section-title {
        font-size: 12px;
        color:#116072;
    }

    .table-title {
        font-size: 7px;
        color:#116072;
    }

    .room-description {
        font-size: 5px;
        color: #333;
    }
}