/* Basic Reset */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    min-height: 100vh;
    /* Make body take full viewport height */
}

/* Header and Navigation Bar combined */
.header-container {
    width: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

header {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 30px; /* Consistent padding */
    box-sizing: border-box;
}

header h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0px 30px; /* Consistent padding */
}

/* Navigation */
.site-branding p.site-title a, .site-branding p.site-title {
    color: #fff;
    font-weight: 700;
}
.navbar nav {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width:100%; /* add full width */
    box-sizing: border-box;
}

.navbar nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

.navbar nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.navbar nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ff7eb3;
}

/* Main */
main {
    flex-grow: 1;
    /* Allow main to take available space */
    width: 100%;
    margin: 50px 0;
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
}

/* Container */
.container {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin-top: 20px;
    padding: 0 15px;
    gap: 20px;
    margin: 0 auto;
}

/* Match Cards */
.match-cards.alm-listing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 40px;
    flex: 3;
    width: 100%;
    max-width: 900px;
}
.alm-btn-wrap {
    margin-top: 50px;
}
.match-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    height: 250px; /* Increase height */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    border: 5px solid #fff;
    padding-bottom: 15px;
}

.match-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.match-card h2 {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px; /* Adjust padding */
    width: 100%;
    text-align: center;
    margin: 0;
    font-size: 1.2rem; /* Increase font size */
    line-height: 1.2;
    font-weight: 500;
    text-transform: capitalize;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.match-card:hover h2 {
    background-color: rgba(0, 0, 0, 0.8);
    color: #ff7eb3;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Add text shadow */
}

.match-card:hover {
    transform: translateY(-8px) scale(1.05); /* Slightly enlarge on hover */
    border-color: #ff4f72;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
}

.match-card.active {
    border: 2px solid red;
}

/* Ad Box */
.ad-box {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 15px; /* Increase border radius */
    padding: 20px; /* Increase padding */
    width: 300px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Enhance shadow */
    flex: 1;
    margin-left: 0px;
    display: flex;
    justify-content: center;
    min-height: 600px;
    /* Default minimum height for skyscraper ads */
}

/* Style for Adsense Ad Container */
#adsense-side-rail {
    width: 100%;
    /* Take the full width of the ad box */
    height: 100%;
    /* Allow height to be determined by ad */
    overflow: hidden;
    /* Hide any overflow if needed */
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 40px 0 0;
    width: 100%;
    text-align: center;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    margin: 20px;
    min-width: 250px;
}

.footer-section h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ff7eb3;
}

.footer-section p,
.footer-section ul,
.footer-section li {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff7eb3;
}

.footer-bottom {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 10px 0;
    font-size: 14px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-bottom::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: #ff7eb3;
    border-radius: 5px;
}
nav.footer-navigations {
    margin-top: 10px;
}
.footer-navigation-wrappers li a {
    font-size: 14px;
    margin-top: 20px;
    color: #ccc;
    padding: 0;
}
/* Media Queries for Responsiveness */
@media (max-width: 1000px) {
    .match-cards {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on medium screens */
    }

    .container {
        flex-direction: column;
    }

    .ad-box {
        margin: 0;
        width: 100%;
        /* Ad box takes full width on smaller screens */
        min-height: auto;
        /* allow to change */
    }

    #adsense-side-rail {
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .match-cards {
        grid-template-columns: 1fr;
        /* 1 column on small screens */
    }

    .navbar nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .navbar nav {
        width: 100%;
    }

    .ad-box {
        min-height: auto;
        /* allow to change */
    }

    #adsense-side-rail {
        min-height: 100px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 10px 0;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;           /* Use flexbox for layout */
    justify-content: center; /* Center the links horizontally */
    align-items: center;     /* Center the links vertically */
    margin-top: 20px;        /* Add some space above the pagination */
    gap: 10px;               /* Add space between page numbers */
    flex-wrap: wrap;         /* Allow pagination to wrap on smaller screens */
}

/* Styles for the individual page links */
.pagination a {
    display: block;             /* Make the whole area clickable */
    padding: 10px 15px;         /* Add padding inside the links */
    border: 1px solid #ddd;     /* Add a light border */
    text-decoration: none;      /* Remove link underline */
    color: #1e3c72;             /* Match the primary blue color */
    border-radius: 5px;         /* Rounded corners */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth hover effect */
    font-size: 16px;            /* Increase font size */
    font-weight: bold;          /* Make text bold */
    background-color: #fff;     /* White background for pagination links */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
}

/* Hover effect for the page links */
.pagination a:hover {
    background-color: #f0f0f0; /* Light gray background on hover */
    transform: scale(1.1);     /* Slightly enlarge on hover */
}

/* Styles for the active page link */
.pagination a.active {
    background-color: #2a5298; /* Match the secondary blue color */
    color: white;              /* White text for active page */
    border-color: #2a5298;     /* Match the secondary blue color */
    transform: scale(1.1);     /* Slightly enlarge active page */
}

/* Custom Google Sign-In Button */
.custom-google-signin {
    display: inline-block;
    padding: 10px 20px; /* Add padding */
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1); /* Match navbar background */
    color: white; /* Match navbar text color */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth hover effect */
}

.custom-google-signin:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Match navbar hover background */
    color: #ff7eb3; /* Match navbar hover text color */
    transform: translateY(-3px); /* Lift the button on hover */
}

.custom-google-signin {
    display: inline-block;
    margin-left: auto; /* Align to the right */
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
    transition: transform 0.3s, box-shadow 0.3s; /* Add transition for hover effect */
}

.custom-google-signin:hover {
    transform: translateY(-3px); /* Lift the button on hover */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

.header-container header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

.navbar .nav-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ff7eb3;
}
#ajax-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}
#ajax-pagination .current.page-numbers {
    background-color: #234581;
    color: #fff;
}

#ajax-pagination a.page-numbers {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 0px 1px 1px #19181859, 0 0 1px 1px #19181859;
    border-radius: 5px;
}
@media screen and (max-width:768px){
    .match-card{
        height: 180px;
    }
    .match-cards.alm-listing{
        grid-template-columns: repeat(2, 1fr);
        padding: 0 0px;
        gap: 15px;
    }
    .movie-wrapper {
        width: 100%;
    }
    main#main {
        margin-top: 10px;
    }
    .match-card h2{
        font-size: 1.0rem;
        padding: 10px 10px;
    }
    #pollContainer{
        padding: 30px 15px;
    }
    .poll-grid {
        grid-template-columns: 1fr;
        gap: 30px 30px;
    }
    .poll-option{
        padding: 10px;
        min-width: 100%;
    }
    .song-container button {
        margin: 5px 10px 10px 0;
        padding: 10px 25px;
        font-size: 15px;
    }
    .container.single-movie-wrapper {
        width: 100%;
    }
    .question-container {
        width: 100%;
        padding: 30px 15px;
    }
    #answer {
        font-size: 14px;
    }
    
}

