/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    color: #333;
}

/* Header Section */
 .head-container {
    min-height: auto;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 10px 0;
} 

/* Navigation */
 nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 100px;
}

nav .logo img {
    width: 120px;
    cursor: pointer;
    transition: all 0.5s;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}
/* Make all nav links black first, then override the active one */
nav ul li a {
    color: black; /* Default to black */
    text-decoration: none;
    font-size: 18px;
    padding: 5px 10px;
    transition: background 0.3s;
}

nav ul li a.active {
    color: white; /* Keep "Images" in white (or adjust if needed) */
}

nav ul li a.active,
nav ul li a:hover {
    background: #33b5ed;
    border-radius: 5px;
}

/* Competitions Section */
 .section {
    text-align: center;
    padding: 30px;
    background: #e0f2ff;
}
/* Scroll Container - Centers the scrolling section */
.scroll-container {
    display: flex;
    justify-content: center; /* Centers content */
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    height: 300px; /* Adjust based on content */
}

/* Scrolling Wrapper - Contains duplicate images for seamless effect */
.scroll-wrapper {
    display: flex;
    width: 200%; /* Ensures images repeat seamlessly */
    animation: scroll 30s linear infinite;
}

/* Scroll Items */
.scroll-item {
    flex: 0 0 auto;
    margin-right: 20px; /* Adjust spacing */
}

/* Scroll Images */
.scroll-item img {
    width: 350px; /* Adjust size */
    height: 250px;
    border-radius: 10px;
}

/* Infinite Scroll Animation */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Main Content */
 .container {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
} 

/* Tables */
 table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #003366;
    text-align: center;
    padding: 10px;
}

th {
    background-color: #003366;
    color: white;
}

/* Responsive Design */
 @media (max-width: 768px) {
    .head-container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 10px;
    }
} 
/* General Styles */
 body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    color: #333;
} 

/* Main Container */
 .container {
    width: 80%;
    margin: auto;
    padding: 20px;
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
} 

/* Headings */
 h1 {
    text-align: center;
    color: #003366;
    text-shadow: 1px 1px 5px rgba(0, 51, 102, 0.2);
}

h2 {
    color: #0055a4;
} 

/* Lists */
ul {
    list-style-type: circle;
    padding-left: 20px;
}

/* Task List */
 .tasks {
    list-style-type: square;
    padding-left: 40px;
    color: #0077cc;
}
/* Rules Container */
.rules-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px; /* Spacing between image and text */
    margin-bottom: 20px;
}

/* Images in Rules Section */
.rules-img {
    width: 280px; /* Adjust image size */
    height: auto;
    border-radius: 10px;
    /* //box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); */
    flex: right;
}
.design-img {
    display: block; /* Ensures it's treated as a block element */
    margin: 20px auto; /* Centers the image horizontally */
    width: 70%; /* Adjust width as needed */
    max-width: 900px; /* Prevents it from becoming too large */
    height: auto; /* Maintains aspect ratio */
}


/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .rules-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .rules-img {
        width: 100%; /* Full width for smaller screens */
        max-width: 300px;
    }
}
.containerrobotics {
    display: flex;
    flex: 1;
    margin-top: 20px; /* Ensures content starts after the navbar */
    height: calc(100vh - 60px); /* Adjust height to fit below navbar */
}

/* Sidebar Styling */
.sidebar {
    width: 99%;
    background: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    height: 100vh;
}

.sidebar a {
    color: black;
    text-decoration: none;
    padding: 12px;
    background: #f0f0f0;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    display: block;
}
.sidebar .vexgo{
    background-color: #007278;
    color: white;
}
.sidebar .vex123{
    background-color: #7A4183;
    color: white;
}
.sidebar .vexiq{
    background-color: #0077c8;
    color: white;
}

.sidebar .vexgo:hover {
    background: #487d80;
}
.sidebar .vex123:hover {
    background: #866b8b;
}
.sidebar .vexiq:hover {
    background: #659dc2;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.containerrobotics {
    display: flex;
    width: 100%;
    height: calc(100vh - 60px); /* Adjust for header height */
}

/* Left Sidebar Frame */
.left-frame {
    width: 20%;
    height: 100vh; /* Ensure it spans full height */
    border: none;
    overflow-y: auto; /* Allows scrolling if content is long */
    background: #ffffff; /* Match the background */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Slight shadow for separation */
}

/* Right Main Content Frame */
.right-frame {
    width: 80%;
    height: 100vh; /* Full height */
    border: none;
    overflow-y: auto; /* Allows scrolling */
}

/* Responsive Design */
@media (max-width: 768px) {
    .containerrobotics {
        flex-direction: column; /* Stacks the frames */
    }

    .left-frame {
        width: 100%;
        height: auto; /* Allow the sidebar to resize */
    }

    .right-frame {
        width: 100%;
        height: calc(100vh - 200px); /* Adjust height dynamically */
    }
}
.rulesright {
    opacity:80% ;
    background: url('./img/rules/competition.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    color: white; /* Ensures text is visible on different backgrounds */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adds slight text shadow for readability */
}
.rulesright {
    position: relative;
    background: url('./img/rules/competition.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    color: white; /* Ensures text is visible */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.rulesright::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black; /* Dark overlay */
    opacity: 0.5; /* Adjust transparency (0 = fully transparent, 1 = fully visible) */
    z-index: 1;
}

.rulesright div {
    position: relative;
    z-index: 2; /* Keeps text above the overlay */
    font-size: 50px;
    font-weight: bold;
}


/* PDF Section takes up full width but not full height */
.pdfiq {
    width: 100%;
    height: 100vh; /* PDF takes full height of the viewport */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Iframe styling to take full width */
.vexiq-frame {
    width: 100%;
    height: 100%;
    border: none;
}