/* general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0467c4;
    color: #000000;
}

header {
    position: sticky;
    top: 0;
    background-color: #521275;
    color: #5c1414;
    padding: 10px 0;
    text-align: center;
}

header h1 {
    margin: 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #054e93;
    text-decoration: none;
    font-weight: bold;
}

footer {
    position: fixed;
    right: 0;
    bottom: 0;
    background-color: #040802;
    color: #054e93;
    padding: 10px 0;
    text-align: right;
    margin-top: 20px;
}

/* content Styles */
.content, .project {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #0467c4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.project h2 {
    text-align: center;
    margin-bottom: 10px;
}

.project p {
    font-size: 1.1em;
    line-height: 1.6;
}
/* animated Background */
html {
    height: 100%;
}

body {
    margin: 0;
}

.bg {
    animation: slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #054e93 50%, rgb(116, 21, 199) 50%);
    bottom: 0;
    left: -50%;
    opacity: 0.5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
}

.bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 4s;
}

.bg3 {
    animation-duration: 5s;
}

@keyframes slide {
    0% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(25%);
    }
}

header, section{
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1em;
    border-radius: 5px;
}
/* style the button that is used to open and close the collapsible content */
.collapsible {
    background-color: #eee;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 10p;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
  }
  
  /* add a background color to the button if it is clicked on and when you hover */
  .active, .collapsible:hover {
    background-color: #15ac45;
  }
  
  /* style the collapsible content hidden by default */
.contents {
    padding: 18px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background-color: #ffffff;
    margin-top: 10px;
    overflow: hidden;
}
 .contents .content-item {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 23%; /* 4 items per row, accounting for gaps */
    margin-bottom: 20px;
    
}

  /*portfolio photo section*/
  .portfolio-photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    background-color: #054e93;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 5px solid #054e93;
    transition: transform 0.3s ease;
  }

  .portfolio-photo-container:hover {
    transform: scale(1.05); 
  }

  .portfolio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .flex {
    display: flex;
  }
  img:hover {
    border: 3px solid green;
    transition: border 0.3s ease-in-out;
}
 .contents img {
    flex-shrink: 0; 
    max-width: 200px; 
    height: auto; }

 .content-item p {
        flex-grow: 1;
        margin: 0;
        line-height: 1.6;
        padding: 10px;
        border: 2px solid #054e93;
        border-radius: 5px;
        background-color: #f4f4f4;
        overflow-wrap: break-word;
    }
    @media (max-width: 768px) {
        .contents .content-item {
            width: 48%; /* 2 items per row for smaller screens */
        }
    }
    
    @media (max-width: 480px) {
        .contents .content-item {
            width: 100%; /* 1 item per row for very small screens */
        }
    }