/* ========================================================================
   Global Reset & Base Styles
   ======================================================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Arial", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: #fafafa;
    color: #333;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    flex-direction: column;
}

ul, ol {
    padding-inline-start: 40px;
    margin-block-end: 30px;
}

/* ========================================================================
   Header
   ======================================================================== */
header {
    background-color: #a45abe;  /* Blue background for header */
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 1.5em;
    margin: 30px;
    text-align: left;
    font-weight: 300;
}

header p {
    font-size: 1.2em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ========================================================================
   Navigation
   ======================================================================== */
nav {
    background-color: #ffffff;
    border-bottom: 2px solid #eaeaea;
}

nav ul {
    display: flex;
    justify-content: center;
    padding: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    font-size: 1.1em;
    color: #803799;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #803799;
}

/* unvisited link */
a:link {
    color: #803799;
  }
  
  /* visited link */
  a:visited {
    color: #803799;
  }
  
  /* mouse over link */
  a:hover {
    color: #803799;
  }
  
  /* selected link */
  a:active {
    color: #803799;
  }

/* ========================================================================
   Section Content
   ======================================================================== */
section {
    margin: 20px 0;
    max-width: 900px;
    padding: 60px;
    background-color: #ffffff;
    border: 1px solid #fafafa;
    border-radius: 10px;
    margin: 0 auto;
}

section h1,
section h2,
section h3 {
    color: #803799;
    margin-bottom: 15px;
}

section p {
    margin-bottom: 15px;
}

blockquote {
    font-size: 18px;
    font-style: italic;
}

figure {
    padding: 0px 40px;
    border-left: #d7d7d7 solid 1px;
    margin: 60px 0px;
}

figcaption {
    font-size: 12px;
    font-style: italic;
    margin-top: 20px;
}

/* ========================================================================
   Tables (if used for statistics)
   ======================================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    padding: 10px;
    border: 1px solid #dddddd;
    text-align: left;
}

table th {
    background-color: #803799;
    color: #fff;
}

.wrap {
    overflow-wrap: break-word;
  }


/* ========================================================================
   Footer
   ======================================================================== */
footer {
    background-color: #fafafa;
    text-align: left;
    padding: 15px 50px;
    margin-top: 20px;
    font-size: 12px;
    max-width: 900px;
    margin: 0 auto;
}

element {
    background-color: #fafafa;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 20px auto;
}

/* ========================================================================
   Responsive Design
   ======================================================================== */
@media (max-width: 900px) {
    body {
        width: 100%;
    }
    section {
        margin: unset;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
      }
      
      td {
        font-size: 14px;
      }

      th {
        overflow-wrap: break-word;
        font-size: 10px;
      }

    header img {
        padding: 0px;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    header h1 {
        font-size: 2em;
    }
}
