@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Open+Sans&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #ffcc33;
    margin: 0;
    padding: 0;
    /* Change from centered flex to column layout */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Add styling for header and footer containers */
.header-container {
    width: 100%;
}

/* Styling for info-container */
.info-container {
    width: 100%;
    margin-top: 20px;
}

.footer-container {
    width: 100%;
    margin-top: 20px;
}

#feedback-container {
    background-color: #fff5cc;
    padding: max(6px, min(30px, 2%));
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    margin: max(12px, min(60px, 4%));
    width: calc(100% - 8%); /* Adjust width to account for margins */
    max-width: 1200px;
    align-self: center; /* Center the container horizontally */
    color: #333;
    flex: 1; /* Allow it to grow */
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    color: #ff9900;
}

h1 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.feedback {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.feedback-style-1 {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feedback-style-1 .feedback-text-content {
    margin-bottom: 20px;
}

.feedback-style-1 .feedback-thumbnail {
    margin-right: 10px;
    margin-bottom: 10px;
}

.feedback-style-2 {
    background-color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feedback-style-2 .feedback-text-content {
    margin-bottom: 10px;
}

.feedback-style-2 .feedback-image-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 5px;
}

.rating {
    margin-bottom: 10px;
    font-size: 18px;
}

.star {
    color: #f0ad4e;
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.ellipsis {
    display: inline;
}

.read-more {
    color: #ff9900;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

.feedback-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.feedback-thumbnail {
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.feedback-thumbnail:hover {
    transform: scale(1.1);
}

.feedback-image-grid {
    display: grid;
    grid-gap: 10px;
}

.feedback-image {
    max-width: 250px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
    background-color: #f8f8f8;
    padding: 8px;
    margin-bottom: 10px;
}

.feedback-image:hover {
    transform: scale(1.03);
}

.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-sizing: border-box;
    overflow: auto;
}

.image-viewer-content {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 50px;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
}

.image-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.navigation-arrow {
    font-size: 24px;
    color: white;
    cursor: pointer;
    margin: 0 10px;
    transition: opacity 0.3s ease;
}

.navigation-arrow:hover {
    opacity: 0.8;
}

/* New styles from refactoring */

/* Element feedback styles */
.element-feedback-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.element-feedback-tile {
    width: 356px;
    height: 562px;
    padding: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.3);
}

.element-feedback-content {
    height: 542px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.element-feedback-image-container {
    width: 100%;
    height: 269px;
    min-height: 269px;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.element-feedback-image {
    max-width: 100%;
    max-height: 267px;
    object-fit: contain;
}

.element-feedback-text {
    height: 78px; /* Default height, can be overridden with inline style */
    overflow: hidden;
    margin-bottom: 0;
    font-size: 14px;
}

.element-feedback-readmore {
    display: inline-block;
    background-color: #ffb000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    align-self: center;
    margin-top: auto;
}

.element-star {
    color: #f0ad4e;
    font-size: 24px;
}

.feedback-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.feedback-overlay-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.feedback-overlay-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.feedback-overlay-close:hover,
.feedback-overlay-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.element-feedback-title {
    margin-bottom: 0;
    margin-top: 20px;
    font-size: 20px;
}

.element-feedback-subtitle {
    margin-bottom: 0;
    font-size: 16px;
    min-height: 58px;
}

.cabin-subtitle {
    min-height: 29px;
}

.no-results {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    width: 100%;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 600px;
}

/* Full feedback list styles */
.full-feedback-container {
    max-width: 1200px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.full-feedback-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 25px;
}

.full-feedback-header {
    padding-bottom: 15px;
}

.full-feedback-header h2 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #333;
}

.full-feedback-header h3 {
    font-size: 18px;
    margin: 0;
    color: #555;
}

.header-divider {
    margin-top: 0;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #e0e0e0;
}

.feedback-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.feedback-section.last-section,
.feedback-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feedback-section h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #444;
}

.feedback-text {
    line-height: 1.6;
    color: #333;
}

.feedback-meta {
    margin-top: 15px;
    font-size: 13px;
    color: #777;
    text-align: right;
    font-style: italic;
}

.feedback-footer {
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.footer-divider {
    margin-bottom: 15px;
    border: 0;
    border-top: 1px solid #ddd;
}

.feedback-footer p {
    margin: 5px 0;
}

/* Image Viewer Styles */
#image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#image-container {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    margin: 0 auto;
}

#current-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.image-nav:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

#prev-image {
    left: -60px;
}

#next-image {
    right: -60px;
}

#image-count {
    color: white;
    font-size: 14px;
    margin-top: 10px;
}

/* Full feedback HTML styles */
.service-title,
.cabin-title,
.ship-title,
.excursions-title {
    font-size: 20px;
    margin-bottom: 0;
}

.cabin-question {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 16px;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #ccc;
}
