body {
    background-image: url(bg_15.webp);
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
    background-attachment: fixed;
    background-position: left;
}

.mainimage {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.defconmain {
    margin: 40px auto;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    background: #2c3e50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: whitesmoke;
}

.ctf_description {
    margin: 40px auto;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    background: #2c3e50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: whitesmoke;
}

.h2ctf {
    color: whitesmoke;
    font-weight: normal;
}

.ctfimg {
    width: 100%;
    max-width: 800px;
}

.ctfimg2 {
    max-width: 100%;
    width: 300px;
    height: auto;
    border-radius: 10px;
    border: 2px solid #003344;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery {
    text-align: center;
    padding: 40px 20px;
    background: #2c3e50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: whitesmoke;
}

.side-by-side {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* ensures responsiveness */
    margin-top: 20px;
}

.ctfimg2:hover {
  transform: scale(1.05);
}

.off-screen-menu.active {
    right: 0;
    background-color: whitesmoke;
}

nav {
    padding: 1rem;
    display: flex;
    background-color: whitesmoke;
}

.ham-menu {
    height: 60px;
    width: 50px;
    margin-left: auto;
  margin-right: 20px;
    position: relative;
    top: 20px;
    left: 20px;
    background-color: #2c3e50;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 12px;
}

.ham-menu span {
    height: 6px;
    width: 100%;
    background-color: black;
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
}

.ham-menu span:nth-child(1) {
    top: 25%;
}

.ham-menu span:nth-child(3) {
    top: 75%;
}

.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.ham-menu.active span:nth-child(2) {
    opacity: 0;
}

.ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

html {
    scroll-behavior: smooth;
}

.burg {
    color: black;
    text-decoration: none;
}

/* burger css */
.off-screen-menu {
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 3rem;
    transition: .3s ease;
    color: white;
}

section {
    margin: 40px auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.ctf-caption {
    margin: 40px auto;
    max-width: 900px;
    border-radius: 8px;
    color: whitesmoke;
    font-weight: normal;
}