
/* Set background image */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: 15px;
}

.background {
    background: url('../images/mandala.jpg') no-repeat center center fixed;
    background-size: cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
}

.red-overlay {
    background-color: red;
    opacity: 0.9;
    height: 100px;
    width: 100%;
    position: absolute;
    top: 60px;
    z-index: -2;
}

.white-overlay {
    background-color: white;
    opacity: 0.95;
    width: 80%;
    margin: auto;
    padding: 120px 20px 20px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.logo {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 50px;
    height: auto;
}

nav {
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
}

nav ul li {
    display: inline;
}

.nav-button {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    padding: 10px 20px;
    transition: color 0.3s ease, transform 0.1s ease;
    border-radius: 6px;
    box-shadow: 0 2px #333;
    background: linear-gradient(#222, #000);
}

.nav-button:hover {
    color: #ff4444;
}

.nav-button:active {
    transform: translateY(2px);
    box-shadow: 0 1px #222;
}

.content {
  
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0 auto;         /* centers the whole block horizontally */
    max-width: 700px;       /* limits width so text lines aren’t too long */
    text-align: justify;
    font-size: 30px;
}

.content h1 {
    text-align: center;
    max-width: 800px; 
    font-size: 45px;
}

.content img {
    width: auto;
    max-width: 20%;
    height: auto;
    margin: 20px auto;
}

.image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.image-row img {
    max-width: 20%;
    height: auto;
    width: auto;
}

/* Black Background */
.coding-section {
    background-color: black;
    color: white;
    padding: 20px 90px 20px 90px;  /* increase padding for spacing */
    width: calc(100% + 40px);  /* override white-overlay padding */
    margin: 0 -20px 20px -20px; /* negative margin to extend to edges */
    box-sizing: border-box;
    border-radius: 10px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 30px;   /* increase font size */
    text-align: justify;
}
/* Image editing */

.tree-image {
    width: 200px;
    height: auto;
    display: block;
    margin: 20px auto;
}

.piano {
    width: 100px;
    height: auto;
    display: block;
    margin: 20px auto;
}

.N-Cradle {
    width: 100px;
    height: auto;
    display: block;
    margin: 20px auto;
}

.knife {
    width: 100px;
    height: 100px;
    display: block;
    margin: 20px auto;
}

.UOE {
    width: 400px;
    height: 50px;
    display: block;
    margin: 20px auto;
    object-fit: cover;
}

.lab-image {
    width: 700px;
    height: auto;
    display: block;
    margin: 20px auto;
}

.red {
    max-width: none !important;
    width: 400px !important;  /* or whatever size you want */
    height: auto !important;
    display: block;
    margin: 10px auto;
}

.ob {
    max-width: 420px;
    height: auto;
    display: block;
    margin: 20px auto;
}

.gradbw {
    width: 700px;
    height: auto;
    display: block;
    margin: 20px auto;
    object-fit: cover;
}

.paper {
    max-width: 700px;
    width: auto;
    height: auto;
    display: block;
    margin: 20px auto;
    object-fit: cover;
}

.table {
    max-width: 700px;
    width: auto;
    height: auto;
    display: block;
    margin: 20px auto;
    object-fit: cover;
}

/* Specific styling for University page image borders */
img.lab-image {
    border: 4px solid black;
}

img.ob {
    border: 4px solid black;
}

img.gradbw {
    border: 4px solid black;
}

.content knife {
    text-align: center;
}

.content.contact-info .red {
    width: 300px !important;
    height: auto !important;
    display: block;
    margin: 10px auto;
}

/* Contact page center alignment */
.contact-info {
    text-align: center;
    font-size: 20px;
    margin-top: 100px;
}

.contact-info i {
    margin-right: 10px;
}


@media (max-width: 768px) {
    .image-row img {
        max-width: 80%;
    }

    .content {
        font-size: 12px;

    }

    
    
    /* 1. Nav bar - move it down so Home isn’t hidden */
    nav {
     position: absolute;
     top: 30px;   /* adjust until nav sits neatly under the red bar */
     left: 0;
     width: 100%;
     height: auto; /* allow nav height to expand with content */
    }
    nav ul {
      flex-direction: column;
      gap: 10px;
      padding: 0;
      margin: 0;
    }

    .logo {
        display: none;
    }
  
    /* 2. gradbw image - make it larger */
    .gradbw {
      max-width: 100%; /* fill screen width */
      height: auto;
    }
  
    /* 3. lab-image - shrink it */
    .lab-image {
      max-width: 90%;
      height: auto;
    }
  
    /* 4. Coding-section text not squashed */
    .coding-section {
      max-width: 95%;
      margin: 0 auto 20px auto;
      padding: 20px;
      font-size: 12px;     /* reduce size */
      text-align: justify; /* neat paragraph flow */
        
    }
  
    /* 5. Observatory image (ob) */
    .ob {
      max-width: 95%;
      height: auto;
    }
  
    /* 6. Dissertation paper image */
    .paper {
      max-width: 95%;
      height: auto;
    }

    .table {
        max-width: 95%;
        height: auto;
      }
    
  
    /* 7. General images inside .content */
    .content img {
      max-width: 95%;
      height: auto;
    }
  
    /* 8. Knife image */
    .knife {
      max-width: 50%;  /* smaller than others */
      height: auto;
    }
  }

