body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.box{
    display: flex;
    width: 100%;
    align-items: row;
    flex-direction: row;
    margin: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: #000000;
    color: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
/* Logo and Title */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.logo a span {
    color: #ff0000;
}

/* Navigation Menu */
nav ul {
    list-style: none;
    margin-left: 50px;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #ffffff;
    margin-top: 20px;
    font-size: 24px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ff0000;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #ff0000;
}

nav ul li a.active {
    color: #ff0000;
}

/*  */

/* Hero Section */
.hero {
    background: url('https://via.placeholder.com/1200x600') no-repeat center center/cover;
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    color: #000000;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: #000000;
    margin-bottom: 30px;
}

.hero .btn {
    background-color: #ff0000;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero .btn:hover {
    background-color: #cc0000;
}

/* Gallery Section */
.gallery {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: #000000;
}

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item .overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .overlay {
    bottom: 0;
    height: 40%;
}
  
.gallery-item:hover img {
    transform: scale(1.1);
}

footer {
    background-color: #000000;
    color: #ffffff;
    position: absolute;
    width: 100%;
    padding: 40px 0;
}

.footer-content {
    display: flex;;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-left: 30px;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #ff0000;
}

.footer-section p {
    margin: 0;
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
}

.footer-section.links ul li {
    margin-bottom: 10px;
}

.footer-section.links ul li a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-section.links ul li a:hover {
    color: #ff0000;
}

.footer-section.social .social-links {
    display: flex;
    gap: 10px;
}

.footer-section.social .social-links a {
    color: #ffffff;
    font-size: 20px;
    transition: color 0.3s ease;
}

.footer-section.social .social-links a:hover {
    color: #ff0000;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333333;
}
/* Subsite-Gallery*/
.subsite-gallery {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.subsite-gallery h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: #000000;
}

.subsite-gallery-grid {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.subsite-gallery-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.subsite-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.subsite-gallery-item:hover img {
    transform: scale(1.1);
}


.subsite-gallery-item .overlay {
    position: absolute;
    bottom: -33.33%;
    left: 0;
    width: 100%;
    height: 33.33%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 0 0 10px 10px;
}

.subsite-gallery-item:hover .overlay {
    opacity: 1;
    bottom: 0;
}

.subsite-gallery-item .overlay h3 {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 10px;
}

sorting-buttons {
    gap: 10px;
    margin-bottom: 20px;
}

.sorting-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background-color: #ac0808; 
    color: #ffffff; 
    cursor: pointer; 
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 14px;
    font-weight: bold;
}
.black-button {
    background-color: black; 
    color: white; 
    padding: 10px 20px; 
    font-size: 16px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
}

.black-button:hover {
    background-color: #333; 
}
.sorting-buttons button:hover {
    background-color: #7d0505; 
    transform: scale(1.05); 
}

.sorting-buttons button.active {
    background-color: #480101; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-bar {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.search-bar input {
    padding: 10px;
    width: 300px;
    border: 1px solid #000000;
    border-radius: 5px;
    font-size: 16px;
}
.container-search {
    width: 90%; 
    max-width: 1200px;
    margin: 10px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    text-align: center; 
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: row; 
    gap: 20px; 
}

.lightbox.active {
    display: flex; 
}

.lightbox img {
    max-width: 70%; 
    max-height: 90%;
    border-radius: 10px;
}

.like-system {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.like-button,
.dislike-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.like-button:hover,
.dislike-button:hover {
    background-color: #cc0000;
}

.like-count {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

/* Comment Section */
.comment-section {
    margin-top: 15px;
    text-align: left;
}

.comment-list {
    list-style-type: none;
    padding: 0;
    margin-bottom: 10px;
    max-height: 90%; 
    overflow-y: auto; 
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #222;
}

.comment-list li {
    background-color: #333; 
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    color: #fff; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.comment-input {
    width: calc(100% - 90px); 
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #222; 
    color: #fff; 
}

.comment-button {
    padding: 10px 20px;
    background-color: #ff0000; 
    color: #fff;
    margin-top: 5px;
    border: none;
    border-radius: 25px; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.comment-button:hover {
    background-color: #cc0000;
    transform: scale(1.05); 
}

.toggle-comments-button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 14px;
    background-color: #ff0000; 
    color: #fff;
    border: none;
    border-radius: 25px; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.toggle-comments-button:hover {
    background-color: #cc0000; 
    transform: scale(1.05); 
}

/* Delete Comment Button */
.delete-comment-button {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #ff4d4d; 
    color: #fff;
    border: none;
    border-radius: 25px; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.delete-comment-button:hover {
    background-color: #cc0000; 
    transform: scale(1.05); 
}

/* Interaction Section */
.interaction-section {
    background-color: #000000; 
    border: 1px solid #333; 
    border-radius: 10px; 
    max-height: 90%;
    padding: 20px; 
    margin-top: 20px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); 
    text-align: center; 
    overflow-y: auto; 
}

/* Info Section */
.info-section {
    text-align: left;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #222; 
    border-radius: 10px;
    color: #fff; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.info-section h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #ff0000;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-section li {
    margin-bottom: 5px;
    font-size: 14px;
}

/* Story Section */
.story-section {
    padding: 4rem 0;
    background-color: #f8f8f8;
}

.story-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.story-text, .story-image {
    flex: 1;
}

.story-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.story-image {
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-image img:hover {
    transform: scale(1.05);
}

/* Alternate layout for right-text containers */
.right-text {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .story-container {
        flex-direction: column;
        padding: 1rem;
    }
    .right-text {
        flex-direction: column;
    }
    .story-image {
        height: 300px;
    }
}


