:root {
    --background-color: rgb(39, 39, 39);
    --text-color: #ffffff;
    --off-white: #fbf8f3;
    --green-color: #3b7b6a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: white;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

main {
    flex: 1;
}

/* PRELOADER */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.load-logo {
  width: 150px;
  height: auto;
  margin-bottom: 10px;
  animation: bounce 2s infinite;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.load-logo p {
  font-size: 18px;
  color: #555;
}

/* NAVBAR */

nav {
    background-color: var(--background-color);

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 150px;
    height: 150px;
    
    color: var(--text-color);
}

nav .locations a {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

nav .give a {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

nav .visit a {
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 12px 32px;
    border-radius: 2em;
    transition: background-color 0.4s;
}

nav .visit a:hover {
    color: var(--background-color);
    background-color: var(--text-color);
}


/* MENU OVERLAY */

/* Navigation Button */
#menu-button {
    background-color: transparent;
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 22px;
}
  
  /* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
    color: #fff;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000;
}
  
  /* Overlay Header */
.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
  
#close-button {
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}
  
.logo {
    font-size: 1px;
}
  
.visit-button {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
}
  
  /* Overlay Content */
.overlay-content {
    display: flex;
    justify-content: space-around;
    padding: 20px;
}
  
.column h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
  
.column p {
    font-size: 16px;
    margin: 5px 0;
}
  
  /* Overlay Footer */
.overlay-footer {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #222;
}
  
.overlay-footer div h4 {
    font-size: 16px;
    margin-bottom: 5px;
}
  
.overlay-footer div p {
    font-size: 14px;
    margin: 3px 0;
}

#overlay.links {
    display: flex;
}

.social-media {
    margin: 20px 0;
}
  
.social-links a {
    margin: 0 10px;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}
  
.social-links a:hover {
    color: #ccc;
}

/* Main */

.images {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    background-color: white;
}

/* Footer */

footer {
    background-color: var(--background-color);
    color: var(--off-white);
    text-align: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;

    background-color: var(--background-color);
    color: var(--off-white);
    text-align: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}
  
.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 80px;
    padding-bottom: 20px;
}

.fa-solid {
    font-size: 26px;
    margin-bottom: 10px;
}
  
.footer-item {
    flex: 1 1 200px;
    margin: 10px;
    text-align: center;
    min-width: 150px;
}
  
.footer-item h4 {
    font-size: 20px;
    margin: 10px 0 5px;
}
  
.footer-item p {
    margin: 0;
    font-size: 12px;
    word-wrap: break-word;
}
  
.footer-item a {
    color: #fff;
    text-decoration: none;
}
  
.footer-item a:hover {
    text-decoration: underline;
}
  
.social-media {
    margin: 20px 0;
}
  
.social-media a {
    margin: 0 10px;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}
  
.social-media a:hover {
    color: #ccc;
}
  
.footer-bottom {
    margin-top: 20px;
    font-size: 14px;
}
  
.footer-bottom p {
    margin: 5px 0;
    opacity: 0.5;
}

#rep-link {
    color: white;
}

footer .rep-platform {
    opacity: 0.25;
    font-size: 0.75em;

    width: 96%;
    margin-top: 2em;
    margin-left: 2%;
    margin-right: 2%;
}

/* Styles for small screens (mobile) */
@media (max-width: 480px) {
    /* PRELOADER */
    #preloader {
        background-color: var(--off-white);
    }

    .load-logo {
        width: 100px;
    }

    /* NAVBAR */
    nav {
        padding: 0 20px;
        height: 80px;
    }

    nav .logo img {
        width: 80px;
    }

    nav .locations,
    nav .give {
        display: none;
    }

    nav .visit a {
        font-size: 14px;
        padding: 8px 16px;
    }

    /* MENU OVERLAY */
    .overlay-header {
        padding: 10px 20px;
    }

    .overlay-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .overlay-footer {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .overlay-footer div {
        text-align: center;
    }

    /* MAIN CONTENT */
    .images {
        margin-top: 30px;
        margin-bottom: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        height: calc(100vh - 150px - 80px);
        margin: 0;
        background-color: white;
    }

    .images img {
        width: 100%;
        height: auto;
        max-width: 300px;
    }

    /*  footer  */
    .footer-item {
        display: none;
    }

    .footer-container {
        margin-top: -80px;
    }

    footer {
        padding: 10px 0;
    }

    .footer-bottom {
        margin-top: 10px;
    }
}