/* Normal (unselected) state */
nav a {
    color: darkblue;
    text-decoration: none; /* removes underline */
    padding: 6px 12px;     /* adds clickable space */
}

/* Hover effect */
nav a:hover {
    color: white;
    background-color: darkblue;
    border-radius: 4px;
    font-family: "Georgia", serif;
}

/* Selected (current page) */
nav a.selected {
    font-weight: bold;
    color: darkblue;
    border-bottom: 2px solid darkblue; /* underline effect */
}

/* Body and backgrounds */
body {
    max-width: 1000px;
    margin: auto;
    padding: 16px;
    background-color: #f0f8ff;
    background-image: url(images/green_gradient.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

header {
    padding-top: 15%;
    background-image: url('images/swirl_banner.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
    height: 200px;
}

main {
    background-color: white;
    padding: 12px;
}

hr {
    border: none;
    border-top: 2px dotted darkblue;
}

h1 {
    text-align: center;
    color: darkblue;
}

h2 {
    color: darkblue;
}

p {
    font-size: 17px;
}

nav {
    text-align: center;
}

span {
    color: darkblue;
}


blockquote:first-letter {
  font-size: 150%;
  color: darkblue;
  font-weight: bold;
}

table {
  width: 100%;
  border: 4px solid #003399;
  border-collapse: collapse;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: "Times New Roman", Times, serif;
}

th {
  text-align: center;
  background-color: #c8e6c9; /* pale green */
  color: darkblue;           
  padding: 15px;
  font-size: 1.4em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid #9ccc65; /* slightly darker green border */
}

td {
  text-align: right;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  color: #333;
}


/* Page wrapper */
#wrapper {
    background-color: white;
    border: 3px solid darkblue;
    padding: 20px;
}

/* Social section */
#social {
    background-color: #dff5b3;
    color: darkblue;
    text-align: center;
    padding: 10px;
}

/* Classes */

/* Text and Typography */
.bold {
  font-weight: bold;
}

.italic {
  font-style: italic;
}

.justified {
  text-align: justify;
}

.centered {
  text-align: center;
}

.left-align {
  text-align: left !important;
}

.note-text {
  font-size: 16px;
}

.highlight {
  color: darkblue;
  font-size: 22px;
  text-align: center;
}

.accent-text {
  color: darkblue;
  font-size: 20px;
  font-style: italic;
}

.byline {
  color: #555;
  font-size: 0.9em;
  font-style: italic;
  margin-bottom: 1em;
  text-align: center;
}

.special-char {
  color: purple;
  font-size: 1.3em;
  font-weight: bold;
}

/* Layout and Box Elements */
.box {
  border: 2px solid #2c3e50;
}

.feature-box {
  background-color: #dff5b3;
  border: 2px solid darkblue;
  border-radius: 8px;
  margin: 16px auto;
  padding: 10px;
  text-align: center;
}

.infobar {
  background-color: #2c3e50;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 6px 0;
  text-align: center;
}

.green-divider {
  background-color: #b3e6b3;
  border: none;
  height: 4px;
  margin: 20px auto;
  width: 50%;
}

/* Columns */
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.column {
  background-color: #ffffff;
  border: 2px solid darkblue;
  border-radius: 6px;
  flex: 1;
  padding: 12px;
}

/* Images */
.img {
  display: block;
  height: auto;
  max-width: 100%;
}

img.responsive {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 500px;
  width: 100%;
}

.resume-img,
.award-img {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: block;
  height: auto;
  margin: 10px auto;
  padding: 4px;
  width: 100%;
}

.resume-img {
  max-width: 350px;
}

.award-img {
  max-width: 400px;
}

.bullet {
  height: auto;
  margin-right: 6px;
  vertical-align: middle;
  width: 16px;
}

.back-to-top {
  margin-top: 12px;
  text-align: center;
}

.back-to-top img {
  border: 0;
  height: auto;
  max-width: 80px;
  width: 100%;
}

/* SVG Elements */
.svg-rect {
  fill: #dff5b3;
  opacity: 0.5;
  stroke: black;
  stroke-width: 3;
}

.svg-text {
  fill: darkblue;
  font-size: 14px;
}

/* Lists */
.list-style {
  list-style-type: square;
  margin-left: 1.5em;
  padding-left: 0;
  text-align: left;
}

.ref-list {
  list-style-type: lower-roman;
  padding-left: 24px;
}

/* Special Effects */
.spin-image {
  transition: transform 0.6s ease;
}

.spin-image:hover {
  transform: rotate(360deg);
}

.fade-in {
  animation: fadeIn 1.2s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Contact Table */
.contact-form {
  border: 4px solid #001f4d; /* dark blue border */
  border-collapse: collapse;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: "Times New Roman", Times, serif;
  margin-top: 20px;
  width: 100%;
}

.contact-form th {
  background-color: #c8e6c9; /* pale green */
  border-bottom: 3px solid #9ccc65;
  color: darkblue;
  font-size: 1.4em;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 15px;
  text-align: center;
  text-transform: uppercase;
}

.contact-form td {
  border: 1px solid #001f4d;
  padding: 10px;
  vertical-align: top;
}

.contact-form td:first-child {
  background-color: #f1f8f4;
  font-weight: bold;
  width: 30%;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: "Times New Roman", Times, serif;
  padding: 6px;
  width: 95%;
}

.contact-form label {
  margin-right: 10px;
}

.required {
  color: red;
  font-weight: bold;
}

.submit-button {
  background-color: darkblue;
  color: white;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-container {
    position: relative;
    width: 90%;          
    max-width: 600px;    
    margin: 1em auto;
    overflow: hidden;
}

.carousel-slide {
    width: 100%;         
    height: auto;        
    display: none;       
    object-fit: cover;
    border-radius: 5px;
}

/* Navigation buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 8px;
    font-size: 18px;
    border-radius: 3px;
}

.prev { left: 10px; }
.next { right: 10px; }
