@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Marko+One&display=swap');

/* Chapter 12 Styles */
body {
    background-color: #f0f8ff !important;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 100%;
    position: relative;
}
h1 {
    font-family: "Marko One", Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* 17-1*/
    color: #1d3e6f;
}
h2 {
    color: #2b5797;
    font-size: clamp(1.2rem, 3vw, 2rem); /* 17-1*/
    margin-left: 10px;
}
dt strong {
    color: #1d3e6f;
}
#info {
    color: #336699;
}
#info p {
    font-style: italic;
}
.price {
    font-family: Georgia, serif;
    font-style: italic;
    color: #6a8caf;
}
.label {
    font-weight: bold;
    font-variant: small-caps;
    font-style: normal;
}
p.warning,
sup {
    font-size: small;
    color: #004080;
}

/* Chapter 13 Styles */
body::before {
    background-image: url('../img/logo.png');
    background-repeat: repeat;
    background-size: 100px 100px;
    background-position: center 100px;
    opacity: 0.1;
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
}
header {
    margin-top: 0;
    padding: 2em;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.5);
    background: url('../img/bluedot.png') top repeat-x,
                url('../img/bluedot.png') bottom repeat-x;
    background-size: 30px 30px;
}
nav {
    padding: 1em;
}
nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
nav ul li {
    list-style: none;
    flex: 1 1 50%;
}
nav ul li a {
    display: block;
    border: 1px solid;
    border-radius: .5em;
    padding: .5em 1em;
    margin: .5em;
    text-decoration: none;
    color: #1d3e6f;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* Chapter 14 Styles */
main {
    background-color: rgba(255, 255, 255, 0.385);
    border: 2px double #004ea8;
    border-radius: 12px;
    padding: 2em;
    max-width: 1000px;
    margin: 2em auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
  }
  
aside {
    padding: 1em;
    margin: 1em 2.5% 0 10%;
    border-top-right-radius: 25px;
}
footer {
    padding: 2em;
}
h3 {
    border-top: 1px solid;
    border-left: 3px solid;
    padding-left: 1em;
    margin-top: 2.5em;
}
a {
    color: #1d3e6f;
    text-decoration: none;
    border-bottom: 1px dotted;
    padding-bottom: 0.2em;
}
a:visited {
    color: #5a7db5;
}
a:hover,
a:focus {
    color: #3c79c2;
    background-color: #fff;
}
a:active {
    color: #1a3e7c;
    background-color: #fff;
}

/* Chapter 15 Styles */
main img {
    float: left;
    margin: 0 1em 1em 0;
}
p.more {
    clear: left;
}
.about-section {
    overflow: hidden;
    margin-bottom: 2em;
}
.about-section img {
    float: left;
    width: 280px;
    margin: 0 1.5em 1.5em 0;
    shape-outside: polygon(0 0, 95% 0, 95% 100%, 0 100%);
    -webkit-shape-outside: polygon(0 0, 95% 0, 95% 100%, 0 100%);
}

/* Tables and Media */
p {
    line-height: 1.6;
    margin-left: 5px;
    font-size: clamp(0.95rem, 2vw, 1.1rem); /* 17-1*/
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #1a4f91;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #e6f2ff;
}
video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.contact-button {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #1d3e6f;
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.contact-button:hover {
    background-color: #143058;
}

/* Chapter 16 Styles */
nav ul li a.current {
    background-color: #d0e7ff;
    font-weight: bold;
    color: #1a3e7c;
}
nav a:hover {
    background-color: #e6f2ff;
}

#menu {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    gap: 1em;
    border: 3px solid #1d3e6f;
    padding: 1em;
    max-width: 1000px;
    margin: 0 auto 2em auto;
    background-color: #f0f8ff;
  }
  
  #menu section {
    border: 1px solid #ccc;
    padding: 1em;
    width: 45%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background-color: #f9fcff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  #menu section h2 {
    font-size: 1.2em;
    color: #1d3e6f;
    margin-bottom: 0.5em;
  }
  
  #menu section p {
    font-size: 0.9em;
    margin-bottom: 0.5em;
  }
  
  #menu .price {
    margin-top: auto;
    font-weight: bold;
    color: #143058;
  }

  
/* Chapter 17 Styles */
/* 400px */
@media screen and (min-width: 400px) {
    nav ul li {
        flex: none;
    }
    nav ul {
        justify-content: center;
    }
}

/* 480px */
@media screen and (min-width: 480px) {
    .about-section img {
        float: left;
        margin: 0 1em 1em 0;
    }
}

/* 600px */
@media screen and (min-width: 600px) {
    main {
        line-height: 1.6;
        padding: 1em;
        border: double 4px #b3d1ff;
        border-radius: 25px;
        margin: 2.5%;
    }

    h2, h3 {
        font-weight: bold;
    }
}

/* 940px */
@media screen and (min-width: 940px) {
    main {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2em;
    }

    article,
    section:not(.contact-info):not(.our-services) {
        grid-column: 1 / -1;
    }

    .contact-info {
        grid-column: span 2;
    }
}








/* ------------------------------FINAL PROJECT --------------------*/

/* Home Page */
.homepage-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 1em;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.welcome-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* About Page */
.about-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 1em;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 auto;
}

.about-text {
    font-size: 1rem;
    line-height: 1.5;
}

.link-list {
    list-style-type: disc;
    padding-left: 1.5em;
    text-align: left;
    margin: 0 auto;
    max-width: 300px;
}

.resources-header {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5em;
    outline: none;
    border: none;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75em;
    padding: 0;
    list-style: none;
    margin: 0;
    width: 100%;
}

.link-grid li {
    width: 100%;
}

.link-grid li a {
    display: block;
    width: 100%;
    background-color: #e0f0ff;
    padding: 0.75em;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: #0050aa;
    font-weight: 500;
    box-sizing: border-box;
}

.link-grid li a:hover {
    background-color: #c2e0ff;
}

/* Services Page */
.services-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    align-items: center;
    text-align: center;
}

.services-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
    background-color: white;
}

.services-table caption {
    font-weight: bold;
    margin-bottom: 0.5em;
}

.services-table th,
.services-table td {
    border: 1px solid #ccc;
    padding: 0.75em;
    text-align: left;
}

.services-table th {
    background-color: #f0f8ff;
}

/* Showcase Page */
.showcase-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    align-items: center;
    text-align: center;
}

.showcase-video {
    width: 100%;
    max-width: 640px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.video-recommend {
    font-size: 1rem;
}

.video-recommend a {
    color: #0050aa;
    font-weight: 500;
    text-decoration: none;
}

.video-recommend a:hover {
    text-decoration: underline;
}

/* Packages Page */
.packages-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5em;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.choose-header {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 2em auto 1em auto;
    outline: none;
    border: none;
}

.choose-wrapper {
    background-color: #b9ccf0;
    border: 2px solid #cce1ff;
    border-radius: 12px;
    padding: 2em;
    margin: 0 auto;
    max-width: 850px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.choose-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    text-align: center;
}

.choose-grid div {
    background-color: #ffffff;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    width: 220px;
}

.choose-grid h4 {
    margin: 0.25em 0;
    color: #004ea8;
}

/* Contact Page */
.contact-main {
    padding: 2em;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
}

.contact-heading {
    font-size: 2rem;
    font-weight: bold;
    color: #004ea8;
    margin-bottom: 1em;
}

.contact-info {
    margin-bottom: 2em;
    max-width: 600px;
    text-align: left;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    text-align: left;
}

.contact-form fieldset {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1em;
}

.contact-form label {
    display: block;
    margin-top: 0.5em;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.5em;
    margin: 0.25em 0 1em 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-buttons {
    text-align: center;
    margin-top: 1em;
}

.form-buttons button {
    padding: 0.6em 1.2em;
    border: none;
    border-radius: 6px;
    background-color: #004ea8;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin: 0 0.5em;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.form-buttons button:hover {
    background-color: #003b86;
    transform: translateY(-1px);
}

.form-buttons button:active {
    transform: translateY(0);
    background-color: #002e6b;
}

/* Testimonial Page */
.testimonials-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2em;
    text-align: center;
}

.testimonials-main h2 {
    font-size: 2rem;
    color: #004ea8;
    margin-bottom: 1em;
}

.testimonial-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    margin: 2em auto;
    max-width: 600px;
}

.testimonial-card {
    background: #ffffff;
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.testimonial-card p {
    margin-bottom: 0.5em;
    font-style: italic;
    color: #222;
}

.testimonial-card .author {
    font-style: normal;
    font-weight: bold;
    color: #004ea8;
    margin-top: 1em;
}
