body {
    font-family: Arial, sans-serif;
    background-color:gray;
    text-align: center;
    padding: 20px;
}

/* Base Styles */
body, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu {
    display: flex;
    gap: 20px;
    background: #333;
    padding: 10px 20px;
    justify-content: center;
}

.menu li {
    position: relative;
}

.menu a {
    text-decoration: none;
    color: lightgray;
    padding: 10px 15px;
    font-size: 16px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu a:hover {
    background-color: #575757;
    transform: scale(1.05);
    border-radius: 5px;
}

/* Active Link Styling */
.menu a.active {
    color: limegreen;
    font-weight: bold;
    border-bottom: 2px solid limegreen;
}

/* Hover Underline Effect */
.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: lightgray;
    bottom: -5px;
    left: 50%;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu a:hover::after {
    width: 100%;
}

/* Dropdown Styling */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1000;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.menu li:hover .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    color: lightgray;
    padding: 10px 20px;
    font-size: 14px;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown a:hover {
    background-color: #575757;
}

/* Responsive Menu */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        display: none;
        width: 100%;
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        width: 100%;
    }

    .menu a {
        display: block;
        width: 100%;
        padding: 10px;
    }

    .dropdown {
        position: static;
        display: none;
    }

    .menu li.active .dropdown {
        display: block;
    }
}

/* Hamburger Button */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: yellowgreen;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 5px;
    right: 20px;
    z-index: 1001;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

.menu {
    transition: max-height 0.3s ease;
}

/* Basic styling for the time and calendar */
#time, #calendar {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    color: #333;
    margin: 20px;
    padding: 10px;
    text-align: center;
    background-color: #f0f0f0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Optional: Add a background color for the time */
#time {
    background-color: #dcdcdc;
}

/* Optional: Style the calendar */
#calendar {
    background-color: #e9e9e9;
}

h1 {
        margin-top: 50px; /* Moves the h1 50px down */   
    color: #FFFFFF;
}

p2 {
    color:green
}

p3 {
    color:blue
}

p4 {
    color:yellow
}

p5 {
    color:red
}

.button1 {
    display: inline-block;
    background-color: #b30000;
    color: greenyellow;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.button1:hover {
    background-color: #4f0000;
    color: limegreen;
}

.button2 {
    display: inline-block;
    background-color: #0000b3;
    color: limegreen;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.button2:hover {
    background-color: #00004f;
    color: greenyellow;
}

.button3 {
    display: inline-block;
    background-color: #00b300;
    color: yellow;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.button3:hover {
    background-color: #004f00;
    color: yellowgreen;
}

/* Back to Home Button */
.back-home {
    display: inline-block;
    text-decoration: none;
    font-size: 18px;
    color: lightgray;
    font-weight: bold;
    padding: 8px 12px;
    border: 2px solid darkgray;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-home:hover {
    background-color: darkgray;
    color: white;
}

/* Back to Videos Button */
.back-videos {
    display: inline-block;
    text-decoration: none;
    font-size: 18px;
    color: #28a745; /* Green */
    font-weight: bold;
    padding: 8px 12px;
    border: 2px solid #28a745;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-videos:hover {
    background-color: #28a745;
    color: white;
}

/* War Thunder Button */
.war-thunder {
    display: inline-block;
    text-decoration: none;
    font-size: 18px;
    color: #a72845; /* Red */
    font-weight: bold;
    padding: 8px 12px;
    border: 2px solid #a72845;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.war-thunder:hover {
    background-color: #a72845;
    color: white;
}

/* Super Mechs Button */
.super-mechs {
    display: inline-block;
    text-decoration: none;
    font-size: 18px;
    color: #a7a745; /* Yellow */
    font-weight: bold;
    padding: 8px 12px;
    border: 2px solid #a7a745;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.super-mechs:hover {
    background-color: #a7a745;
    color: white;
}

/* Video gallery styling */
#video-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 videos per row */
    gap: 20px;
    padding: 20px;
}

.video iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

/* Responsive design */
@media (max-width: 900px) {
    #video-gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on medium screens */
    }
}

@media (max-width: 600px) {
    #video-gallery {
        grid-template-columns: repeat(1, 1fr); /* 1 per row on small screens */
    }
}

/* Main Styles */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

      .container {
        display: flex;
        flex-wrap: wrap;
      }
  
      .item {
        flex: 1 1 300px;
        margin: 10px;
        padding: 20px;
        background-color: lightblue;
      }
  
      img {
        max-width: 100%;
        height: auto;
      }
  
      @media (max-width: 768px) {
        .item {
          flex: 1 1 100%; /* Make items full width on small screens */
        }
      }
      
      .download-btn {
        display: inline-block;
        padding: 10px 20px;
        background-color: #4CAF50;
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-weight: bold;
        transition: background-color 0.3s ease;
      }
      
      .download-btn:hover {
        background-color: #45a049;
      }
      