* {
    margin: 0;
    padding: 0;
}
.main {
    width: 100%;
    background-image: url("achtergrond.jpg") ;
    background-position: top;
    background-size: cover;
    height: 100vh;
}

/* Header */

nav{
    display: flex;
    padding: 0% 2%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 130px;
}
.nav-links{
    flex: 1;
    text-align: center;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    margin: 8px 3%;
    position: relative;
}
.nav-links ul li a{
    text-decoration: none;
    font-size: clamp(18px, 2vw, 28px);
    color: #000000;
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #000000;
  transition: transform 0.25s ease-out;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
/* Center */

.bracket {
    display: none;
}
.event-container {
    width: 80%;
    overflow: hidden;
    margin: 0px 10% 0px 10%;
    position: relative;
}
.event {
    display: inline-block;
    vertical-align: top;
    margin: 3% 3%;
    width: 27%;
    height: 70vh; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
    overflow: hidden; 
    border-radius: 8px;
    background-color: #ffff;
}
.event-info {
    background: #ffff;
}
.event img {
    width: calc(100% - 20px);
    height: calc(60% - 20px);
    margin: 10px;
    object-fit: cover;
    display: block;
}
.text {
    padding: 3%;
    overflow: hidden;
    font-size: 90%;
}
.learnmore {
    width: 100%;
    text-align: center;
    margin: 8% 0px 7% 0px;
}
.learn-link {
    color: #000000;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin: 0px 5% 0px 5%;
  color: black;
  font-weight: bold;
  font-size: 50px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
  color: rgba(0,0,0,.5);
}
.popup {
    display: none; 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); 
    color: white;
    z-index: 9999; 
}
.infoCont {
    width: 90%;
    height: 90%;
    margin: auto;
    display: flex;
    flex-direction: row;
    background-size: cover;
    background-color: rgb(0 0 0 / 50%);
    background-blend-mode: color;
    border-radius: 10px;
}
.fade {
  animation-name: fade;
  animation-duration: .5s;
}
@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}
.infoCont img {
    max-width: 80%;
    border-radius: 10px;
    margin: auto;
    display: block;
    width: 100%;
    height: 100%;
    object-fit:contain;
}
.infoCont button {
    position: absolute;
    right: 0;
    font-size: 24px;
    background-color: transparent;
    color: #ffff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    margin: 1%;
}
.infoCont button:hover {
    color: rgb(225,225,225,50%)
}
.description {
    background-color: white;
    color: black;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    overflow-y: auto; 
    max-height: 100%; 
}
.infoCont h2 {
    margin-bottom: 10px;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    width: 80%;
}
.infoCont p {
    font-size: 100%;
    margin: auto;
}
.description p:last-of-type {
    margin-top: auto;
}
.title-bar {
    position: relative;
    height: 50px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.title-bar h2 {
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    font-size: 100%;
}
.title-bar button {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    background-color: transparent;
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}
.title-bar button:hover {
    color: rgb(0,0,0,50%)
}

/* Mobile Optimisation */

@media screen and (max-width: 768px) {
    .bracket {
        display: block; 
    }
    .event-container {
        width: 95%;
        margin: 0 auto;
        display: block;
    }
    .event {
        display: flex;
        flex-direction: column;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        height: 75vh;
    }
    .event img {
        width: 60%;
        margin: 0px auto 0px auto;
    }
    .learnmore {
        margin: 20px 0;
    }
    .prev, .next {
        display: none;
    }
    .infoCont img {
        display: none;
    }
}