/* =========================
   BASIS
========================= */


html, body {
	font: 12px Verdana, Arial, Helvetica, sans-serif;
    height: 100%;
    margin: 0;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto; /* masthead | page | footer */
}

.klasse-blok {
    margin-bottom: 1.2em;
}



img {
  max-width: 100%;
  height: auto;
  border: 0; 
}



.startlocatie-map {
  width: 100%;
  max-width: 100%;
  height: auto;
    display: block;
    margin: 1em auto;
    border: 1px solid #ccc;
  
  
}


.home-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 20px 1em;
}

.home-images img {
    height: auto;
    max-width: 100%;     /* mag nooit groter worden dan container */
}

.home-images img:first-child {
    max-width: 388px;
    flex: 1 1 388px;
}

.home-images img:last-child {
    max-width: 357px;
    flex: 1 1 357px;
}

.fb-button {
    display: inline-block;
    padding: 8px 14px;
    background-color: #1877f2;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.fb-button:hover {
    background-color: #145dbf;
}


a, a:link, a:visited {
  color: #B41700;
}

/* =========================
   MASTHEAD
========================= */
#masthead {
  background: #0B0053 url(../img/kopGvL.jpg) no-repeat center/cover;
  height: 140px;
}

/* =========================
   FLEX LAYOUT (DESKTOP)
========================= */
#page {
    display: flex;
    align-items: flex-start;
    width: 100%;
    height: 100%;          /* 🔑 DIT ONTBRAK */
}


/* =========================
   NAVIGATIE
========================= */
/* =========================
   NAVIGATIE – BASIS
========================= */

#nav {
    width: 14em;
    background-color: #2452bb;
    flex-shrink: 0;
}

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

#nav > ul > li {
    display: block;
}

/* =========================
   HOOFDITEMS (Informatie, Competitie)
========================= */

#nav a,
#nav .nolink {
    display: block;
    padding: 0.5em;
    border-bottom: 1px solid #fff;
    border-left: 8px solid #0B0053;
    background-color: #8fa6c9;   /* grijsblauw */
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

/* hover / actief */
#nav a:hover,
#nav a.active,
#nav .nolink:hover {
    background-color: #0B0053;
}

/* =========================
   SUBMENU – ALTIJD OPEN
========================= */

#nav ul.subnav {
    display: block;
    margin: 0;
    padding: 0;
    border-left: 8px solid #0B0053;
    background-color: #c7d4f5;   /* lichtblauw */
}

/* submenu-items */
#nav .subnav a {
    padding-left: 1.5em;
    background-color: #c7d4f5;
    color: #000;
    font-weight: normal;
}

/* hover submenu */
#nav .subnav a:hover {
    background-color: #9fb2d8;   /* iets donkerder grijsblauw */
}

/* =========================
   OPGERUIMD: GEEN ANIMATIES / PIJLTJES
========================= */

/* geen pijltjes */
#nav .nolink::after {
    content: none;
}

/* focus-within gedrag uitschakelen */
#nav li:focus-within > .nolink,
#nav li:focus-within > ul.subnav {
    transform: none;
}

/* =========================
   CONTENT
========================= */
#content {
  flex: 1;
  margin: 0 1em;
  width: 65%;
  
 /** 
  background: url(../img/Logo-Skymasters_bg.gif) no-repeat right top;
**/ 
 text-align: left;
  padding-bottom: 80px; /* zelfde hoogte als de footer */
}

h1 {
  text-align: center;
  color: #0B0053;
}

p {
  font-size: 110%;
  line-height: 1.5em;
}


/* === Stand-tabel layout === */
.datatable-stand table {
    table-layout: auto;
    width: 75%;
}




.datatable-uitslag table {
    table-layout: auto;   /* 🔑 dit ontbrak */
    width: 75%;
}



/* Gemeenschappelijke tabelbasis */
.datatable {
    width: 75%;
    font-size: 12px;
}

.datatable th,
.datatable td {
    padding: 0.25em 0;
}


/* === Stand === */
.datatable-stand th:nth-child(1),
.datatable-stand td:nth-child(1) {
    width: 45px;
    text-align: center;
}

.datatable-stand th:nth-child(2),
.datatable-stand td:nth-child(2) {
    width: 220px;
    text-align: left;
}

/* Ritkolommen */
.datatable-stand th:nth-child(n+3):not(:last-child),
.datatable-stand td:nth-child(n+3):not(:last-child) {
    width: 55px;
    text-align: center;
}

/* Totaal */
.datatable-stand th:last-child,
.datatable-stand td:last-child {
    width: 75px;
    text-align: right;
    font-weight: bold;
}


/* === Uitslag === */
.datatable-uitslag th:nth-child(1),
.datatable-uitslag td:nth-child(1) {
    width: 45px;
    text-align: center;
}

.datatable-uitslag th:nth-child(2),
.datatable-uitslag td:nth-child(2),
.datatable-uitslag th:nth-child(3),
.datatable-uitslag td:nth-child(3) {
	width: 40%;
    text-align: left;
}

.datatable-uitslag th:nth-child(4),
.datatable-uitslag td:nth-child(4) {
    width: 90px;
    text-align: right;
}


.datatable-uitslag td {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}



/* Zebra */
.datatablestand table tr.even {
    background-color: #efefff;
}



table tr.even td {
  background-color: #f5f5f5;
}

table tr.odd td {
  background-color: #ffffff;
}

.nextinfo {

    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 18px;          /* vaste grootte */
    line-height: 1.6;
    color: #036;
}

.nexttitle {
    font-weight: bold;
}

.nextrit {
    margin-left: 0.5em;
}

/* =========================
   FOOTER
========================= */

#footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #0B0053;
    color: #e0e0e0;
    text-align: center;
    font-size: 0.75em;
    padding: 0.8em 0;
    z-index: 999;
}


/* =========================
   HAMBURGER
========================= */
#nav-toggle {
  position: absolute;
  opacity: 0;
}



.hamburger {
  display: none;
}



/* =========================
   MOBIEL
========================= */
@media (max-width: 767px) {

  #page {
    display: block;
  }
  
  
    #content {
        width: 100%;        /* 🔑 DIT ONTBRAK */
        margin: 0;
    }


  .hamburger {
    display: block;
    font-size: 28px;
    padding: 12px 16px;
    background: #0B0053;
    color: white;
    cursor: pointer;
    z-index: 2000;
    position: fixed;
  }

  #nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  #nav-toggle:checked ~ #page #nav {
    display: block;
  }

  #content {
    margin: 0;
    background: none;
  }



    .datatable-stand table,
    .datatable-uitslag table {
        width: 100%;
    }

}


.person {
    cursor: pointer;
    text-decoration: underline dotted;
}



.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
}

/* ✅ sluitknop netjes in hoek */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;

    font-size: 22px;
    font-weight: bold;
    cursor: pointer;

    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    padding: 5px 10px;

    z-index: 10;
}



#top {
    scroll-margin-top: 100px;
}

html {
    scroll-behavior: smooth;
}

.comments {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.comment {
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
}

.comment strong {
    color: #333;
}

.comment small {
    color: #777;
    font-size: 0.8em;
}

.event-poster {
    background: #f5e6b5;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.event-title {
    color: #c00000;
    font-size: 1.5em;
}

.event-date {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* 

.promo-text {
    max-width: 800px;
    margin: auto;
    padding: 15px;
    line-height: 1.6;
}

.promo-text h2 {
    font-size: 1.6em;
    color: #c00000;
    margin-bottom: 10px;
}

.promo-text h3 {
    margin-top: 20px;
    font-size: 1.2em;
}

.promo-text ul {
    padding-left: 20px;
}

.promo-text li {
    margin-bottom: 5px;
}

/* ✅ mobiel optimalisatie */
@media (max-width: 600px) {
    .promo-text {
        padding: 10px;
        font-size: 0.95em;
    }

    .promo-text h2 {
        font-size: 1.3em;
    }

    .promo-text h3 {
        font-size: 1.1em;
    }
}

.random-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.random-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.iframe-view {
    width: 100%;
    height: 700px;
    border: none;
    margin-top: 10px;
}

.btn {
    margin-bottom: 10px;
    padding: 6px 10px;
    cursor: pointer;
}

/* modal */
#modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

#modal img {
    max-width: 90%;
    max-height: 90%;
}

.gallery {
    margin-top: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}


/* ==========================================================================
   WEB BANNER STYLING (A.M.C. THE SKYMASTERS)
   ========================================================================== */

.site-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #c7d4f5; /* De exacte diepblauwe kleur van je oude banner */
    width: 100%;
    height: 120px; /* Vaste hoogte voor een strakke banner */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-bottom: 1px;
}

/* Links: Logo container */
.banner-logo {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background-color: #c7d4f5;
}

.banner-logo img {
    height: 90px; /* Schaleert het logo netjes binnen de balk */
    width: auto;
    object-fit: contain;
}

/* Midden: Content met de landkaart */
.banner-content {
    flex-grow: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Hier komt de landkaart als achtergrond van het middendeel */
    background-image: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)), url('../../assets/img/header/kaart-bg.png');
    background-size: cover;
    background-position: center;
    padding: 0 15px;
    border-left: 3px solid #0b2558;
    border-right: 3px solid #0b2558;
}

/* De blauwe letters uit je logo */
.banner-content h1 {
    color: #1a529b; 
    font-family: 'Arial Black', sans-serif;
    font-size: 26px;
    margin: 0;
    text-shadow: 1px 1px 0px #fff, -1px -1px 0px #fff, 1px -1px 0px #fff, -1px 1px 0px #fff; /* Geeft de letters de witte rand */
    letter-spacing: 1px;
}

.banner-content h2 {
    color: #1a529b;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 18px;
    margin: 5px 0 0 0;
    text-shadow: 1px 1px 0px #fff, -1px -1px 0px #fff, 1px -1px 0px #fff, -1px 1px 0px #fff;
}

/* Rechts: Vintage auto container */
.banner-auto {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background-color: #c7d4f5;
}

.banner-auto img {
    height: 85px;
    width: auto;
    object-fit: contain;
}

/* Responsive: Zorg dat het op mobiel ook werkt door de auto te verbergen als het scherm te smal wordt */
@media (max-width: 768px) {
    .banner-auto {
        display: none;
    }
    .banner-content h1 {
        font-size: 20px;
    }
    .banner-content h2 {
        font-size: 14px;
    }
}
