/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6c5905;
    --secondary-color: #948800;
    --accent-color: #f8f404;
    --text-color: #e6eff2;
    --background-dark: #4b4848e8;
    --header-bg: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

/* Header Styles 
header {
    background-color: var(--header-bg);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul a {
    color: var(--accent-color);
    font-size: 18px;
    transition: color 0.3s ease;
}

header nav ul a:hover {
    color: #fff;
}

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0d1117; /* Dark background */
    padding: 10px 20px;
    color: #f0db4f; /* Yellow text */
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

header nav {
    flex-grow: 1; /* Allow nav to take up remaining space */
    text-align: right;
}

header nav ul {
    display: flex;
    justify-content: flex-end; /* Align menu items to the right */
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent items from overflowing */
    white-space: nowrap; /* Prevent wrapping */
}

header nav ul li {
    margin: 0 15px; /* Add spacing between items */
}

header nav ul li a {
    text-decoration: none;
    color: #f0db4f;
    font-size: 16px;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #561800;
}

/* Hamburger Menu Icon */
header .menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #f0db4f;
}

/* Responsive Styles for Larger Screens */
@media (min-width: 600px) {
    header nav ul {
        display: flex; /* Ensure the menu is inline on large screens */
        position: static;
        flex-direction: row;
        background-color: transparent;
        box-shadow: none;
        white-space: nowrap; /* Prevent text wrapping */
    }

    header .menu-icon {
        display: none; /* Hide hamburger icon */
    }
}

/* Responsive Styles for Smaller Devices */
@media (max-width: 600px) {
    header nav ul {
        display: none; /* Hide the menu initially on smaller devices */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Place below header */
        right: 0;
        background-color: #0d1117; /* Dark background */
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
        padding: 10px;
        width: 200px;
        border-radius: 4px;
    }

    header nav ul.show {
        display: flex; /* Show the menu when toggled */
    }

    header .menu-icon {
        display: block; /* Show hamburger icon */
    }
}





/* Hero Section */
.hero {
    background-image: url('cric_bag.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: left;
    padding: 250px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 10px;
    color: #000;
    padding-left: 20px;
}

.hero p {
    font-size: 30px;
    color: #fff;
    padding-left: 20px;
}

/* News Section */
 .news-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #1b1b1f;
    color: #000;
}

.news-section h2 {
    font-size: 32px;    
    margin-bottom: 20px;
    color: #ffffff;
}

.news-section p {
    color: #fff;
}

.news-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.news-card {
    width: 80%;
    height: 100%;
    max-width: 700px;
    margin: 0px auto;
    padding: 20px;
    background-color: #e2d5d5;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap : 0px;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}


.news-card iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
} 
.news-card2 iframe{
    width:500px;
    height: 400px;
    border-radius: 10px;
}

/* Container for the news section */
.news-container {
    display: block; /* Ensures vertical stacking */
    width: 100%;    /* Makes the container full width */
    margin-bottom: 20px; /* Adds spacing between containers */
}

/* Styling for individual news cards */
.news-card,
.news-card2 {
    margin: 0 auto; /* Centers the content horizontally */
    max-width: 100%; /* Ensures the cards are responsive */
    overflow: hidden; /* Prevents overflow issues */
    border-radius: 8px; /* Optional: Adds rounded corners for aesthetics */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Optional: Adds shadow for a clean look */
}

/* Rankings Section */


 .rankings {
    padding: 50px 0px;
    text-align: center;
    background-color: #282830;
    color: #fff;
}

.rankings h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #fcfbfb;
}

.rank-table {
    display: inline-block;
    width: 100%;
    max-width: 390px;
    margin: 10px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rank-table:hover {
    transform: translateY(-10px); 
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); 
}
.rank-table iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 30px;
}

/* Fan Wall Section */
#fan-wall {
    background-color: #1e1e2f;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    text-align: center;
}

/* Section Heading */
#fan-wall h2 {
    font-size: 28px;
    color: #ffcc00; /* Vibrant gold for a fun effect */
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Textarea for user message */
textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    font-size: 16px;
    color: #ffffff;
    background-color: #2b2b3c;
    border: 2px solid #ffcc00; /* Gold border */
    border-radius: 8px;
    margin-bottom: 20px;
    resize: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    border: 2px solid #00e5ff; /* Neon blue for focus */
    box-shadow: 0 0 10px #00e5ff;
    outline: none;
}

/* Buttons Styling */
button {
    background: linear-gradient(135deg, #ffcc00, #ff6f61); /* Gradient for a fun look */
    color: #000;
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    margin: 10px 5px;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0px 4px 15px rgba(255, 204, 0, 0.8);
}

button:active {
    transform: scale(1);
}

/* Message Feed */
.message-feed {
    margin-top: 20px;
    padding: 10px;
    background-color: #2b2b3c;
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto; /* Scroll if too many messages */
    box-shadow: inset 0px 4px 10px rgba(0, 0, 0, 0.5);
}

/* Individual Messages */
.message-feed div {
    background-color: #37374a;
    color: #ffffff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.5);
    position: relative;
    font-size: 16px;
}

.message-feed div::before {
    content: "🎉";
    font-size: 18px;
    position: absolute;
    top: 10px;
    left: 10px;
}

/* Scrollbar Styling */
.message-feed::-webkit-scrollbar {
    width: 8px;
}

.message-feed::-webkit-scrollbar-thumb {
    background: #ffcc00;
    border-radius: 4px;
}

.message-feed::-webkit-scrollbar-track {
    background: #1e1e2f;
}

/* Media Query for smaller devices */
@media (max-width: 768px) {
    textarea {
        height: 100px;
    }

    button {
        font-size: 14px;
        padding: 10px 15px;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .news-card iframe,
    .rank-table iframe {
        height: 300px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 20px;
    }

    header nav ul {
        gap: 15px;
    }
} 
/* Teams Section 
#Teams {
    padding: 50px 0;
    background-color: #1b1b1f; 
    color: #ffffff; 
}

.sub-title{
    margin-left: 25px;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    grid-gap: 15px;
    margin-top: 40px;
    margin-left: 15px;
    
}

.work {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background-color: #282830; 
    transition: transform 0.3s ease;
}*/

/* Team Icon Style 
.work img {
    width: 70%;  
    height: 90%;
    max-width: 120px;
    margin: auto;
    border-radius: 10px;
    display: block;
    transition: transform 0.6s ease;
}
*/
#Teams{
    background-color: #0d1117;
    padding : 20px;
}
#Teams .work-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px; /* Spacing between the items */
}

#Teams .work {
    flex: 0 0 calc(25% - 20px); /* Each item takes 25% width with some spacing */
    position: relative; /* For layered hover effect */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #1c1c1e;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#Teams .work:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

#Teams .work img {
    max-width: 80%; /* Adjust the image size */
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#Teams .work:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

#Teams .work h3 {
    font-size: 18px;
    color: #f0db4f;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

#Teams .work:hover h3 {
    color: #ffeb3b;
}

#Teams .work p {
    font-size: 14px;
    color: #ffffff;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#Teams .work:hover p {
    opacity: 2;
    transform: translateY(0);
}

#Teams .sub-title {
    font-size: 24px;
    color: #f0db4f;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}


/* Overlay Layer */
.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), #ff3f81); /* Darker gradient with a vibrant pink highlight */
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 20px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s ease, background 0.3s ease;
    color: #fff;
}

.layer h3 {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
}



.work:hover img {
    transform: scale(1.25);
}

.work:hover .layer {
    height: 100%;
}

.poll-section {
    padding: 30px;
    background-color: #282c34; /* Dark background */
    color: #ffffff; /* White text for contrast */
    border-radius: 10px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.poll-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff3f81; /* Highlighted color */
}

.poll-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 20px;
}

.poll-options label {
    display: flex;
    align-items: center;
    background: #3b404a;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    transition: transform 0.3s, background 0.3s;
    cursor: pointer;
    font-size: 1.1rem;
}

.poll-options input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.poll-options label:hover {
    background: #ff3f81; /* Hover color for labels */
    color: #ffffff;
    transform: scale(1.05);
}

button#submitVote {
    padding: 10px 30px;
    font-size: 1.1rem;
    background-color: #ff3f81;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

button#submitVote:hover {
    background-color: #ff2a68;
    transform: scale(1.05);
}

#voteMessage {
    font-size: 1rem;
    color: #ff3f81;
    margin-top: 15px;
}

.poll-results {
    margin-top: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #3b404a;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.6;
}


/* Responsive Design */



@media (max-width: 600px) {
    /* Adjusting News Cards */
    .news-card {
        width: 100%; 
        height: 700px;
        margin: 10px auto; 
        padding:10px; 
    }

    .news-card iframe,
    .rank-table iframe {
        height: 600px; /* Reduced height for iframes */
    }
    .news-card2 iframe {
        height : 250px;
        width: 450px;
    }

    /* Hero Section Adjustments */
    .hero {
        padding: 150px 40px; 
    }

    .hero h1 {
        font-size: 25px; 
    }

    .hero p {
        font-size: 15px; 
    }

    /* Header Navigation */
    header nav ul {
        flex-direction: column; /* Stack items vertically */
        gap: 10px; /* Reduced gap */
    }

    /* Rankings Section */
    .rank-table {
        width: 90%; /* Adjust width */
        margin: 10px auto; /* Centered */
    }

    /* Teams Section 
    .work-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust grid */
    

    /* Responsive Design for Smaller Devices */

    #Teams .work {
        flex: 0 0 calc(50% - 20px); /* Adjust to 2 cards per row for tablets */
    }

    #Teams .sub-title {
        font-size: 20px; /* Slightly smaller title for smaller devices */
    }


    /* General Adjustments */
    .rankings h2,
    .news-section h2 {
        font-size: 24px; /* Adjust heading sizes */
    }

    .poll-results {
        font-size: 1rem; /* Smaller font size */
    }
   

    
}
