/* ================= BODY & GLOBAL ================= */
body {
    margin: 0px;
    padding: 0px;
    font-family: "Roboto", sans-serif;
    background-color: #fcfcfc;
    color: #000000;
}

/* ================= HERO / TITLE ================= */
div.title {
    background-image: url("banner.jpg");
    background-blend-mode: color-burn;
    background-attachment:fixed;
    padding: 100px 20px;
    background-color: rgba(0, 0, 0, 0.75);
    background-size: cover;
    background-position: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

h1 {
    font-family: 'Squartiqa 4F';
    font-size: clamp(50px, 10vw, 120px);
    color: #c6100f;
    margin: 0;
    padding-top: 100px;
    text-align: center;
}

div.title span.highlight {
    color: #fcfcfc;
}

/* ================= TITLEBAR / NAV ================= */

div.titlebar img {
    height: 35px;
    width: auto;
    margin: 0px;
    padding: 0px;
    border-radius: 0px;
    size: contain;
}

a.titlebar-link {
    display: flex;
    padding: 5px 10px;
    font-size: clamp(9px, 1.5vw, 12px);
    color: #c6100f;
    font-family: "Horizon";
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    margin: 5px;
    transition: all 0.3s ease;
}

div.titlebar a.active {
    text-decoration: underline;
}

a.titlebar-link:hover {
    color: #910c0c;
}

/* Titlebar container */
.titlebar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 8px 8px;
    box-sizing: border-box;
    background-color: rgba(12, 8, 5, 0.75);
    backdrop-filter: blur(10px);

    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* Logo */
.titlebar-link img {
    height: 30px;
}

.titlebar-link img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* Hide checkbox */
#nav-toggle {
    display: none;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    /* gap: 10px; */
}

/* Hamburger icon (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        background-color: rgba(12, 8, 5, 0.9);

        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        padding: 0;
    }

    /* Show menu when checked */
    #nav-toggle:checked~.nav-links {
        max-height: 400px;
        /* enough to fit all links */
        padding: 10px 10px;
    }

    .nav-links a {
        padding: 10px 0;
        text-align: center;
        width: 100%;
    }
}

/* ================= INTRO / IMAGE ================= */
div.img-block {
    margin: 30px 5%;
    padding: 20px;
    box-sizing: border-box;
    display: block;
    text-align: center;
}

div.img-block img {
    width: 80%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto;
    transition: transform 0.3s ease;
    display: block;
}

/* ================= ACTION BUTTONS ================= */
div.button-block {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #fcfcfc;
    padding: 30px 20px;
}

a.button {
    display: flex;
    width: auto;
    height: auto;
    margin: 15px;
    padding: 15px 15px;
    font-size: clamp(10px, 2.5vw, 24px);
    color: #fcfcfc;
    background-color: #c6100f;
    font-family: "Horizon";
    text-align: center;
    text-decoration: none;
    border-radius: clamp(20px, 5vw, 48px);
    transition: all 0.3s ease;
    justify-content: center;
    align-items: center;
}

a.media.button {
    height: clamp(10px, 1vw, 20px);
    width: clamp(10px, 1vw, 20px);
    display: flex;
    margin: 2px;
    size: contain;
    padding: 8px;
    background-color:
        #c6100f;
    border-radius: 20px;
    transition: all 0.3s ease;
}

a.media.button img {
    width: 200%;
    height: 200%;
    max-width: 25px;
    max-height: 25px;
    object-fit: contain;
    border-radius: 12px;
}

a.media.button:hover {
    background-color:
        #910c0c;
    scale: 1.05;
    cursor: pointer;
}

a.media.button img:hover {
     cursor: pointer;
}

a.button:hover {
    background-color: #910c0c;
    scale: 1.15;
}

/* ================= STATS / CARDS ================= */
div.card-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 20px;
}

div.card {
    width: 20%;
    background-color: #ecdbdb;
    padding: 20px;
    margin: 5px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.3s ease;
}

div.card.mega {
    width: 90%;
    background-color: #ecdbdb;
    padding: 20px;
    margin: 5px;
    border-radius: 10px;
    justify-content: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: top;
    margin: 30px 20px;
    gap: 20px;
}

#updates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* center horizontally */
    align-items: flex-start; /* align cards at the top */
    gap: 20px;
    margin: 30px 20px;
}

div.card img {
    width: 80%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

div.card p {
    margin: 5px;
}

div.card.mega img {
    width: 25%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

div.card.mega h4 {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

div.card.mega h3 {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

div.card.mega p {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    line-height: 1.5;
}

div.card:hover {
    /* padding: 40px; */
    scale: 1.05;
}

/* ================= ROBOT SECTION ================= */
div.robot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 30px 20px;
    gap: 20px;
}

.robot img {
    width: 100%;
    max-width: 720px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

img {
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    cursor:default;
}

div.robot-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    padding: 20px;
}

.spinner {
  margin: 20px auto;
  width: 40px;
  height: 40px;
  border: 5px solid #ecdbdb;
  border-top-color: #910c0c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

details {
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-align: center;
    font-family: "Roboto", sans-serif;
}

/* Make summary clickable and not ugly */
details summary {
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    padding: 6px 0;
}

details > summary {
    list-style: none;          /* Firefox */
    cursor: pointer;
}

details > summary::-webkit-details-marker {
    display: none;             /* Chrome / Safari */
}

/* Simple arrow indicator */
details summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.3s ease;
}

/* Rotate arrow when open */
details[open] summary::before {
    transform: rotate(90deg);
}

details.details-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

div.card.match {
    border-color: #440606;
    border-style:solid;
    width: 80%;
    border-width: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr ;
    justify-items: center;
    align-items: center;
    justify-self: center;
    text-align: center;
    margin: 20px;
    gap: 10px;
}
.item1 {
  grid-column: 1 / span 2;
}

span.win {

    text-decoration:underline #440606 6px;
}

div.card.mega:hover {
    /* padding: 40px; */
    scale: 1.05 1.0;
}

div.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    margin: 5px;
    padding: 20px;
}

badge {
    background-color: #c6100f;
    color: #fcfcfc;
    font-family: "Cinzel Decorative", serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: bold;
    text-align: center;
    padding: 15px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

badge:hover {
    transform: scale(1.05);
    cursor:default;
}

/* ================= SPONSORS ================= */

#sponsors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

#sponsors img {
    object-fit: contain;      /* keeps the logo fully visible */
    width: auto;             /* reasonable default size */
    height: 6vw;             /* preserves aspect ratio */
    margin: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

div.bottom {
    margin-bottom: 100px;
}

/* ================= FOOTER ================= */
div.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 5px;
    background-color: rgba(12, 8, 5, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px;
}

footer {
    color: #fcfcfc;
    font-size: clamp(12px, 1.2vw, 16px);
    text-align: center;
    text-shadow: 1px 1px 2px rgba(12, 8, 5, 0.5);
    font-family: "Cinzel Decorative", serif;
    padding-right: 2vw;
}

@font-face {
    font-family: 'Squartiqa 4F';
    src: local('Squartiqa 4F Regular'), local('Squartiqa-4F-Regular'),
        url('Squartiqa4F.woff2') format('woff2'),
        url('Squartiqa4F.woff') format('woff'),
        url('Squartiqa4F.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }

@font-face {
    font-family: 'Horizon';
    src: local('Horizon'),
        url("Horizon.woff2") format("woff2"),
        url("Horizon.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ================= TEXT STYLING ================= */
h2 {
    font-size: clamp(30px, 4vw, 75px);
    color: #fff;
    text-align: center;
    font-family: 'Horizon';
}

h3 {
    font-size: clamp(20px, 3vw, 50px);
    color: #910c0c;
    text-align: center;
    font-family: "Horizon";
}

h4 {
    font-size: clamp(18px, 2.5vw, 30px);
    color: rgb(70, 36, 36);
    text-align: center;
    font-family: "Cinzel Decorative";
    font-weight: bolder;
}

h4.bullet {
    text-align: left;
}

p {
    font-size: clamp(14px, 2vw, 20px);
    color: #440606;
    line-height: 1.5;
    text-align: center;
    padding: 0px 10px;
    padding-left: 5%;
    padding-right: 5%;
    font-family: "Roboto", sans-serif;
}

/* ================= MEDIA QUERIES ================= */
@media (max-width: 768px) {
    div.robot {
        flex-direction: column;
        text-align: center;
    }

    div.robot-text {
        align-items: left;
        padding: 15px;
    }

    div.card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    div.card.mega {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0px;
    }

    div.card:hover {
        padding: 30px;
    }

    #sponsors img {
        height: 13vw;
        border-radius: 2px;
    }

    div.card.mega img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    div.card.mega p {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
        text-align: left;
        line-height: 1.5;
    }

    h1,
    h2,
    h3,
    h4,
    p {
        text-align: center;
    }

    h4.bullet {
        text-align: left;
    }

    div.title {
        padding: 25px 15px;
    }
}
