@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');

*{ 
    padding-left: 2%;
    padding-right: 2%;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #231701, #DAA520);
}

header{
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* WAS: margin-botton: 20px;*/
}
.logo{
    color: #fff;
    text-decoration: none;
    font-size: 35px;
    font-weight: 700;
}

nav ul{
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a{
    color: #ffc600;
    text-decoration: none;
    transition: 0.5s;
}

nav ul li a:hover{
    color: #FDE800;
}

.container-for-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    height: 80vh;
    position: relative;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    position: relative;
    border-radius: 10px;
    color: #ffc600;
    padding: 40px;
    text-align: center;
    font-size: 45px;
    width: 100%;
    min-height: 200px;
    transition: transform 0.3s;
    overflow: hidden;
}

.grid-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 44, 44, 0.5);
    z-index: 1;
}

.grid-item h3 {
    position: relative;
    z-index: 2; 
}

.grid-item:hover{
    cursor: pointer;
    transform: scale(1.1);
}

#myModal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20%;
    left: 0;
    z-index: 999;
}

.modal {
    max-width: 65%;
    max-height: 65%;
    object-fit: contain;
    border-radius: 10px;
}

#Nelson{
    background-image: url('/nelson.jpeg');
    background-size: cover;
}

#hlomla{
    background-image: url('/hlomla.jpeg');
    background-size: cover;
}

#nyewuza{
    background-image: url('/nyewuza.jpeg');
    background-size: cover;
}

#zukhanye{
    background-image: url('/zukhanye.jpeg');
    background-size: cover;
}

#tediso{
    background-image: url('/tediso.jpeg');
    background-size: cover;
}

#mbasa{
    background-image: url('/mbasa.jpeg');
    background-size: cover;
}

#Nelson,
#hlomla,
#nyewuza,
#zukhanye,
#tediso,
#mbasa {
    background-size: cover;
    background-position: center;
}

