@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,600;0,700;0,900;1,600&display=swap');

body {
    font-family: 'Raleway', sans-serif;
    margin: 0px;
    background-color: #F7F2E9;
}

h1 {
    font-size: 2em; /* 32px */
    text-align: center;
    font-weight: 900;
    color: #44836C;
}

#solid-line { /* h1 dotted line code taken from Stack Overflow: https://stackoverflow.com/questions/5214127/css-technique-for-a-horizontal-line-with-words-in-the-middle */
    overflow: hidden;
    text-align: center;
  }
  
  #solid-line:before, #solid-line:after {
    background-color: #44836C;
    content: "";
    display: inline-block;
    height: 4px;
    position: relative;
    vertical-align: middle;
    width: 50%;
  }
  
  #solid-line:before {
    right: 0.5em;
    margin-left: -50%;
  }
  
  #solid-line:after {
    left: 0.5em;
    margin-right: -50%;
  }

h2 {
    font-size: 1.75em; /*28px */
    text-align: center;
}

h3 {
    font-size: 1.5em; /* 24px */
    text-align: center;
}

h4 {
    font-size: 1.25em; /* 20px */
}

p {
    font-size: 1.125em; /* 18px */
}

h5 {
    font-size: 0.875em; /* 14px */
    text-align: center;
}

/*------------------------------------------------------------------------------------Nav---*/

#nav-section {
    background-color: #44836C;
    padding: 20px 0px 40px 0px; /* top, right, bottom, left */
    margin-bottom: 20px;
}

nav {
    width: 90%;
    margin: 0 auto;
}

.logo {
    float: left;
    margin: 0px;
    color: #F7F2E9;
    font-weight: 900;
    font-size: 1.25em; /* 20px */
    text-decoration: none;
}

.nav-links {
    display: flex;
    float: right;
    margin: 0px;
    list-style-type: none;
    flex-wrap: wrap;
    text-align: right;
}

.menu-icon {
    display: none;
}

.nav-links li a {
    text-decoration: none;
    color: #F7F2E9;
    margin-left: 1.25em;
}

/*------------------------------------------------------------------------------------Hero---*/

.hero-image {
    background-image: url(../images/hero-img.jpg);
    background-repeat: no-repeat;
    width: 100%;
    background-size: 100%;
}

.hero-text {
    width: 90%;
    margin: 0 auto;
    padding-top: 30px;
    padding-bottom: 100px;
}

.hero-image h4 {
    color: #F7F2E9;
    text-align: left;
    font-weight: 600;
    margin: 0px;
}

.hero-image h1 {
    text-align: left;
    margin: 0px;
    color: #F7F2E9;
}

.hero-image .button {
    background-color: #44836C;
    color: #F7F2E9;
    padding: 10px;
    border: none;
    border-radius: 13px;
    margin-top: 20px;
    width: fit-content;
}

/*----------------------------------------------------------------------------New Arrivals---*/

.new-arrivals {
    width: 90%;
    margin: 0 auto;
    padding-bottom: 2%;
}

.new-arrivals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 2%;
}

#grid-section {
    display: inline-table;
}

.new-arrivals-grid .section4 {
    grid-column: 1 / span 2;
}

.new-arrivals-grid .section5 {
    width: 95%;
    margin-left: 5%;
}

.new-arrivals-grid .section5 p {
    margin-top: 0px;
}

.grid-pic {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.grid-pic2 {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.grid-desc {
    margin: 0px;
    text-align: center;
}

.grid-price {
    margin: 0px;
    text-align: center;
}

/*--------------------------------------------------------------------------Upcoming Dates---*/

.upcoming-tours {
    width: 90%;
    margin: 0 auto;
}

.upcoming-tours h1 {
    margin-bottom: 0px;
}

.upcoming-tours h3 {
    margin-top: 0px;
}

.upcoming-tours-grid {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-auto-columns: 1fr;
    grid-auto-flow: row;

  }
  
  .image2 { grid-area: 2 / 1 / 3 / 2; }
  
  .image1 { grid-area: 1 / 1 / 2 / 2; }
  
  .image3 { grid-area: 1 / 4 / 2 / 5; }
  
  .image4 { grid-area: 2 / 4 / 3 / 5; }
  
  .text1 { grid-area: 1 / 2 / 3 / 3; }
  
  .text2 { grid-area: 1 / 3 / 3 / 4; }

#utd-grid-pic {
    width: 100%;
    height: 80%;
    display: inline-table;
}

.upcoming-tours-grid p {
    margin: 0px;
    text-align: center;
    
}

/*-----------------------------------------------------------------------------Mailing List---*/

.mailing-list-section {
    background-color: #44836C;
    color: #F7F2E9;
}

.mailing-list {
    width: 90%;
    margin: 0 auto;
    padding-bottom: 2%;
}

.mailing-list h1 {
    color: #F7F2E9;
    margin-bottom: 0px;
    padding-top: 20px;
}

.mailing-list h3 {
    margin-top: 0px;
    margin-bottom: 20px;
}

form {
    display: flex;
    justify-content: space-between;
}

form input {
    padding: 10px;
    background-color: #F7F2E9;
    border: none;
    border-radius: 13px;
    width: 100%;
    margin-left: 0.5%;
    margin-right: 0.5%;
}

form #submit {
    width: 50%;
}

footer p {
    font-weight: 800;
    text-align: center;
    margin-bottom: 0px;
}

/*--------------------------------------------------------------------------------Responsive---*/

@media screen and (max-width: 990px) { /* Laptop */
    h1 {
        font-size: 1.938em;
    }

    h2 {
        font-size: 1.688em;
    }

    h3 {
        font-size: 1.438em;
    }

    h4 {
        font-size: 1.188em;
    }

    p {
        font-size: 1.063em;
    }

    h5 {
        font-size: 0.813em;
    }
  }
  
  @media screen and (max-width: 768px) { /* Tablets */
    h1 {
        font-size: 1.875em;
    }

    h2 {
        font-size: 1.625em;
    }

    h3 {
        font-size: 1.375em;
    }

    h4 {
        font-size: 1.125em;
    }

    p {
        font-size: 1em;
    }

    h5 {
        font-size: 0.75em;
    }

    .new-arrivals-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .new-arrivals-grid .section5 {
        grid-column: 1 / span 2;
        padding-bottom: 5%;
    }

    form {
        flex-direction: column;
        align-items: center;
    }
  }
  
  @media screen and (max-width: 480px) { /* Phones */
    form {
        flex-direction: column;
        align-items: center;
    }
    
    h1 {
        font-size: 1.813em;
    }

    h2 {
        font-size: 1.563em;
    }

    h3 {
        font-size: 1.313em;
    }

    h4 {
        font-size: 1.063em;
    }

    p {
        font-size: 0.938em;
    }

    h5 {
        font-size: 0.688em;
    }

    .logo {
        display: none;
    }
    
    .nav-links {
        float: none;
        text-align: left;
    }

    .menu-icon {
        display: block;
    }

    nav {
        height: 40px;
        overflow: hidden;
    }

    .nav-expanded {
        height: 150px;
    }
 }