@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    overflow-y: scroll;
  }

.spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    min-width: 350px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h2 {
    text-align: center;
    font-size: min(20vw, 30px);
    margin:  0 0 20px 0;
}

header {
    position: relative;
    height: 30vh;
    min-height: 80px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('assets/Banner5-min.jpg');
    background-size: cover;
    background-position: center center;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3); /* Adjust the color and transparency here */
    z-index: 1;
}

header h1 {
    color: #333;
    font-size: max(3vw,60px);

    z-index: 2;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #f1f1f1;
    overflow: hidden;
    list-style-type: none;
}

nav li {
    float: left;
    cursor: pointer;
}

nav li a {
    display: block;
    color: #333;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 1rem;
}

nav li a:hover {
    background-color: #ddd;
}

nav .menu-icon {
    display: none;
    font-size: 30px;
}

main {
    padding: 20px;
    flex: 1;
    
}

p a {
    color: #0074d9;
    text-decoration: underline;
    cursor: pointer;
}

section {
    margin-bottom: 20px;
}

.image-array {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

}

.image-array figure {
    flex: 1 1 200px;
    margin: 10px;
}

figure {
    display: block;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    max-width: 600px;
}

figcaption {
    font-style: italic;
}

img {
    min-width: 400px;
    width: 400px;
    max-width: 80%;
    height: 300px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

figure:hover {
    transform: scale(1.1);
}

/* This is the CSS for the button animation */
button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}
.button {
    display: flex;
    align-items: center;
    justify-content: center;    
    font-family: sans-serif;
    overflow: hidden;
}

.button a {
    box-sizing: border-box;
    text-decoration: none;
    width: 320px;
    height: 60px;
    color:  #333 ;
    line-height: 60px;
    text-align: center;
    text-transform: capitalize;
    font-size: 25px;
    position: relative;
    transition: all 0.2s;
    overflow: hidden;
}
.button a span {
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    border: 2px solid  #333;
    z-index: -1;
}

span::before {
    content: "";
    position: absolute;
    width: 4%;
    height: 700%;
    background-color: white;
    top: 50%;
    left: 50%;
    transition: all 0.2s;
    transform: translate(-50%, -50%) rotate(-60deg);
}

.button a:hover span::before {
    width: 100%;
    background-color: #333 ;
    transform: translate(-50%, -50%) rotate(60deg);
}

.button a:hover {
    color: white;
}

  
/* Default styles for the navigation bar */


/* Styles for the responsive menu */
@media screen and (max-width: 900px) {
    header {
        height: 20vh;
    }

    nav ul {
        display: none;
        flex-direction: column;
    }

    nav .menu-icon {
        display: block;
        cursor: pointer;
        padding: 14px 16px;
        background-color: #f1f1f1;
    } 
    
    img {
        min-width: 300px;
        width: 300px;
        height: 225px;
    }
}

footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;

    bottom: 0;
    width: 100%;
}
