/* Base Styles */
* { margin: 0; padding: 0; border: 0; }


/* Use relative font sizes */
body {
    background: #eaf8fb;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em; /* Relative size */
    line-height: 0.812rem; /* Relative line-height for better readability */
}

/* Paragraph styles */
p {
    letter-spacing: .04em;
    line-height: 21px; /* Relative line-height */
}

/* Header */
div#header {
    background-color: #333;
    background-image: url(header.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    color: #fff;  
    -webkit-border-bottom-right-radius: 4px;
    -webkit-border-bottom-left-radius: 4px;
    -moz-border-radius-bottomright: 4px;
    -moz-border-radius-bottomleft: 4px; 
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    margin: 0 auto;
    min-height: 130px;
    padding: 45px 15px 15px;
    width: 870px;
}

@keyframes fadeInAndColorChangeFooter {
    0% {
      opacity: 1;
      color: #f9e534;
    }
    50% {
      opacity: 1;
      color: #db05de;
    }
    100% {
      opacity: 1;
      color: #ffffff;
    }
  }
  
  div.col-right h1 {
    animation: fadeInAndColorChangeFooter 3s ease-in-out infinite alternate;
  }
  
  @media screen and (max-width: 600px) {
    div.col-right h1 {
      animation: none;
    }
  }

  ul.navigation {
    list-style: none;
    margin-top: 20px;
}

ul.navigation li {
    display: inline-block;
    margin: 0 3px 5px;
}

ul.navigation li a {
    background: #4a4a4a;
    color: #fff;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    border: 1px solid #595959;
    padding: 3px 10px;
    text-decoration: none;
}

ul.navigation li a:hover {
    background-color: #000;
}

/* Content Area */
div.content {
    margin: 1em auto;
    max-width: 900px;
}

div.col-right {
    width: 660px;
    float: right;
}

div.sidebar-left {
    width: 200px;
    float: left;
    padding: 0 10px;
}

/* Sidebar Links */
div.sidebar-left a {
    color: #445e64;
}

div.sidebar-left a:hover {
    text-decoration: none;
}

/* List */
.list {
    border-bottom: 1px solid #c3dce1;
    padding: 0 0 1.25rem 1rem;
}

.list li {
    margin-bottom: 0.625rem;
}

.list li a {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.6875rem; /* Relative font size */
}

/* Footer */
div#footer {
    background-color: #c4d5d9;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
    max-width: 900px;
}

/* Floats */
.float-left {
    float: left;
    margin:  0 10px 10px 0;
}

.float-right {
    float: right;
}

.float-right img {
    margin: 0 0 0.6rem 0.6rem;
}

.clear {
    clear: both;
}

body { background: #eaf8fb;}
  
header, footer { text-align: center; }
  
nav ul { list-style-type: none; }
  
figure { text-align: center;  }
  
figcaption { font-size: 0.7rem; font-style: italic; }

/* Responsive Layout for Mobile */
@media screen and (max-width: 600px) {
    #header, #footer, .content {
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
        display: block; /* Don't flex; keep block display */
        align-items: center;
    }

    /* Keep the desktop-like header and footer on mobile */
    div#header, div#footer {
        max-width: 100%;
    }

    /* Stack the sidebar and content vertically on mobile */
    div.col-right, div.sidebar-left {
        width: 100%;
        float: none;
        margin-bottom: 5px;
    }

    div.sidebar-left {
        display: block;
        padding: 0;
    }

    ul.navigation li {
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media screen and (min-width: 601px) {
    #header, #footer, .content {
        max-width: 860px;
        margin: auto;
        padding: 5px;
    }

    nav {
        float: left;
        margin-right: 20px;
        min-width: 150px;
    }
}


@media (hover: hover) {
  ul.list li a:hover {
    background-color: #a60abb;
    color: #fff317;
    text-decoration: underline;
  }
}

@media (hover: none) {
  ul.list li a {
    margin-top: 5px;
    background-color: #ef612d;
    color: #fef02c;
    text-decoration: none;
    padding: 5px 15px;
  }

  h3 {
    margin-bottom: 10px;
  }

  ul.list li a:active {
    margin-top: auto;
    background-color: #8cf316;
    color: #f325c6;
  }
}



/* Base styles */

/* Ensure to use relative font sizes */
body {
    font-size: 1rem; /* Instead of 16px */
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif; 
}

/* Desktop layout */
.header, .content, .navbar, .footer {
    width: 80%;
    margin: 0 auto;
}

.header {
    background-color: #4CAF50;
    padding: 1em;
    color: white;
}

.navbar ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

.navbar a {
    text-decoration: none;
    color: white;
    padding: 14px 20px;
    display: block;
}

/* Mobile layout */
@media only screen and (max-width: 600px) {
    .header, .content, .navbar, .footer {
        width: 100%;
        margin: 0;
        padding: 0.5em;
    }

    .navbar ul {
        display: block;
    }

    .navbar a {
        padding: 10px;
        text-align: center;
        display: block;
    }

    .content img {
        max-width: 100%;
        height: auto;
    }
}

/* Target relative font sizes for accessibility */
h1 {
    font-size: 2rem; /* Instead of 32px */
}

p {
    font-size: 1rem; /* Instead of 16px */
}

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
}