html {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7b01a; /*yellow*/
    background-image: url('/background-vector.png') ;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: #121f40; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
}

/*FLEXBOX for the ^HEADER section*/
.flex-container {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    justify-content: space-evenly;
}

header {
    background-color: #f7b01a;
    padding: 20px 0;
}
.logo {
    width: 100%;
}

nav {
    margin: auto;
    text-align: center;
}

.nav-bar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
nav ul {
    list-style-type: none;
}
nav ul li {
    display: inline;
    margin-left: 20px;
    padding: 5px;
}
nav ul li a {
    text-decoration: none;
    color: #121f40;
    font-style: bold;
}
nav ul li a:hover {
    border-bottom: 2px solid;
    color: #121f40;
    font-style: bold;
}

/*Search for boardgame in the header*/
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
}
.search-bar input {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.login-btn {
    background-color: #121f40;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    float: right;
    margin-top: 10px;
    margin-left: 20px;
}
.back-btn {
    background-color: #f7b01a;
    color: #121f40;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}
.back-btn:hover {
    background-color: #f7b01a;
    color: #121f40;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid;
}

/*^WELCOME section*/
.welcome-container {
    display: flex;
    flex-direction: row;
    max-width: 80%;
    height: 90vh;
    margin: 0 auto;
    border-bottom: 5px solid black;
}

/*First thing ppl see on homepage*/
.left-split-view {
    display: flex;
    flex-direction: column;
    margin: 0px 25px 50px 0px;
    width: 50%;
    padding-right: 20px;
    justify-content: center;  /*horizontal alignment*/
}
.right-split-view {
    margin: 0px 0px 50px 15px;
    max-width: 100%;
}
.cover-image {
    max-width: 100%;
    max-height: 100%;
}
.subtitle {
    font-family: "Times New Roman, Arial";
    font-size: 12px;
    font-style: italic;
    color:blue;
    text-decoration-line: underline;
}
.started-btn {
    background-color: #121f40;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    float: left;
    margin-top: 10px;
    margin-left: 1px;
}

/*^CONTAINER for CATEGORIES / ALL GAMES sections*/
.container {
    width: 80%;
    margin: 0 auto;
    margin-top: 30px;
    margin-bottom: 30px;
    border-style: hidden;
    overflow: auto; /* Or overflow: scroll; */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;
    flex: 1 0 auto;
}

/*^CATEGORIES section grid container by 3 columns*/
.grid-container {
  display: grid;
  grid-template-columns: auto auto auto;
  height: auto;
}
/*category item*/
.category {
    border-radius: 10px;
    border: solid #121f40;
    padding: 20px;
    width: 75%;
    height: 20%;
    margin: auto;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    background-color: #601214;
    color: #feebbb;
}
.category:hover{
    transform: scale(1.05); /* Slightly enlarges the box on hover */
}
.category h3 {
    font-size: 14px;
    margin: 0;
}
.category span {
    font-size: 12px;
    font-weight: bold;
}
.category-icon {
    width: 30px;
    margin-right: 10px;;
}
.see-more {
    text-align: right;
    margin-top: 20px;
}

/* ^Sort and Filter Container Styling All Games Page */
.sort-filter-container {
    display: flex;
    flex-wrap: wrap;
    row-gap: 5px;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    margin: 5px auto;
}

.sort, .filter {
    display: flex;
    align-items: center;
}

label {
    font-weight: bold;
    color: #121f40;
    margin-right: 10px;
}

select {
    padding: 10px;
    border: 2px solid #121f40;
    border-radius: 5px;
    background-color: #feebbb;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:hover {
    border-color: #601214;
}

/* ^All Games Styling */
.grid-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-height: 1200px;
}

.game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-style: solid;
}
.game-image-container {
    width: 170px;
    display: grid;
    place-items: center;
}

.game-image {
    max-width: 150px;
    height: auto;
    max-height: 180px;
    margin-right: 20px;
    border-radius: 10px;
}
/*consider using grid-row universal format*/
.game-details {
    flex-grow: 1;
}

.game-title {
    font-size: 1.5rem;
    color: #121f40;
    margin-bottom: 5px;
}

.game-description {
    font-size: 1rem;
    margin-bottom: 10px;
    margin-right: 15px;
    text-align: justify;
}

.game-category {
    font-weight: bold;
    margin-bottom: 5px;
}

.game-info-container {
    display: flex;
    justify-content: space-between;
}

.game-location {
    color: #666;
}
/*consider using grid-row*/
.game-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.game-meta p {
    margin: 5px 0;
}
.game-read-more {
    display: inline-block;
    width: 80px;
    padding: 10px 15px;
    background-color: #121f40;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}
.game-read-more:hover {
    background-color: black;
}

/* Pagination Section */
.pagination-section {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 5%;
}

.show-results {
    display: flex;
    align-items: center;
    gap: 10px;
}

.show-results select {
    padding: 5px;
    border: none;
    border-radius: 5px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    color: #121f40;
    background-color: #f7b01a; 
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.pagination-btn-next{
    background-color: #121f40;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.pagination-btn:hover, .pagination-btn-next:hover{
    background-color: #121f40;
    color: white;
}
/* New from pagination suggestion */
.pagination .active{
    background-color: #121f40;
    color: white;
}

/*^ABOUT US section image wrap*/
.float-image {
            float: left;
            margin-right: 30px;
            margin-bottom: 5px;
            max-width: 300px;
            border-radius: 8px;
            border-style: solid;
        }

.image-text-wrap::after {
            content: "";
            display: table;
            clear: both;
        }
.abous-us {
    border-style: solid;
    text-align: justify;
}

/* ^Events Styling at About Us page*/
.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
}
.event-details {
    flex-grow: 1;
}
.event-image {
    float: left;
    width: 150px;
    height: auto;
    margin-right: 20px;
    border-radius: 10px;
}
.event-title {
    display: inline-block;
    font-size: 1.5rem;
    color: #121f40;
    margin-bottom: 5px;
    vertical-align: middle;
}

.event-description {
    font-size: 1rem;
    margin-bottom: 10px;
}

.event-category {
    font-weight: bold;
    margin-bottom: 5px;
}

.event-location {
    color: #666;
}

/*^CONTACT section style*/
.contact-container {
    display: flex;
    width: 100%;
}

/*Right side follow us sytle*/
.follow-right-view { 
    width: 50%;
    padding-left: 60px;
}
/* Row for social media */
.form-row {
    display: flex;
    gap: 15px;
}
.form-row h3{
    width: 20%;
    color: #601214;
    padding-left: 5px;
}
.social-icon{
    width: 50px;
    height: 50px;
}
.social-link {
    width: 50%;
    text-align: left;
    color: #feebbb;
    padding: auto;
    margin: auto;
}
.social-link:hover {
    color: #0000EE;
}

.contact-left-view{
    width: 50%;
    padding-right: 20px;
}

.feedback-title {
    font-size: 2rem;
    font-weight: bold;
    color: #00204a;
    margin-bottom: 20px;
    margin-top: 0px;
}


.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-field {
    background-color: #fde7c6;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-family: "Arial";
    font-size: 1rem;
    color: #333;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.full-width {
    width: 100%;
}

.textarea-field {
    height: 150px;
    resize: none;
}

.submit-button {
    background-color: #00204a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    width: 106%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
    background-color: #601214;
    color: white;
}

/* ^Footer Section */
.footer {
    background-color: #121f40;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 80px;
    height: auto;
}

.footer-nav {
    width: 100%;
    margin: 10px;
    display: flex;
    text-align: center;
    justify-content: center;
    gap: 20px;
}

.footer-nav a {
    text-decoration: none;
    text-align: center;
    color: #f7b01a;
    font-size: 1.2rem;
    font-family: "Times";
}

.footer-nav a:hover {
    color: white;
}

.copyright-section {
    height: 20px;
    margin: 0;
    background-color: #f7b01a;
}
.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: black;
    text-align: center;
}

.map-location {
    width: 80%;
}

 /* new carousel code */
 .carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    background-color: lightpink;
    margin-top: 10px;
}

.gallery-btn {
    height: 30px;
}
 .carousel-wrapper {
    width: 300px;
    display: flex;
    margin-inline: auto;
 }
 .gallery {
    display: flex;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    width: 100%;
    border: 2px solid black;
 }
 .gallery-img {
    width: 300px;
    height: auto;
    scroll-snap-align: center;

 }
  .lil-nav {
    display: flex;
    width: 300px;
    background-color: blue; 
    margin: 5px auto;
 }
  .bubble {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: white; 
    margin: 0 auto;
 }
/* Responsive Designs here */
@media screen and (max-width: 431px) {

    .flex-container {
        display: flex;
        flex-direction: column;
        width: 100vh;
        justify-content: space-between;
        margin: 0 auto;
    }

    .logo-container {
        justify-content: center;
        align-items: center;
    }

    .logo {
        max-width: 100%;
        margin: 5% 5% 5% 5%;
    }

    .search-bar {
        margin-left: 5%;
        margin-top: 5%;
        
    }

    .welcome-container {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        height: 80%;
        margin: 0 auto;
    }

    .left-split-view {
        display: flex;
        flex-direction: column;
        max-width: 100vh;
        margin-left: 5%;
        justify-content: center;  /* for horizontal alignment*/
        align-items: center;  
    }

    .right-split-view {
        margin: 0 0 0 0;
    }

    .nav-block {
        background-color: #121f40;
    }
    .nav-bar {
        display: flex;
        flex-direction: column;
        padding-right: 5%;
    }

    nav ul li a {
        text-decoration: underline;
        color: white;
        font-style: bold;
    }

    /* ^Footer Section */
    .footer {
        background-color: #121f40;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
    }

    .footer-nav ul li a {
        text-decoration: underline;
        color: #f7b01a;
        font-size: 1.2rem;
        font-family: "Times";
    }

    .container {
        width: 90%;
        margin: 0 auto;
        margin-top: 30px;
        margin-bottom: 30px;
        border-style: hidden;
        overflow: auto; /* Or overflow: scroll; */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;
        flex: 1 0 auto;
    }

    .contact-container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .contact-left-view{
        width: 100%;
        margin-top: 5%;
    }

    .follow-right-view { 
        width:  100%;
        margin: 0;
        padding: 0;
        justify-content: center;
    }

    /* Row for social media */
    .form-row {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
    }
    .form-row h3{
        width: 20%;
        color: #601214;
    }
    .social-icon{
        width: 50px;
        height: 50px;
    }
    .social-link {
        width: 50%;
        text-align: left;
        color: #601214;
        padding: auto;
        margin: auto;
    }

    .map-location {
        width: 80%;
        display: block;
        margin: 0 auto;
    }

    .game-item {
        flex-direction: column;
        text-align: center;
    }

    .page-number {
        display: block;
        margin: 0 auto;
    }

    .grid-container {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 10px;
    }

    /* .carousel-container {
    display: flex; 
    flex-shrink: 0;
    overflow-x: auto;
    scroll-snap-type:mandatory;
    } */

}

