/* ------- Flexbox Template Master Stylesheet ------ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap');


/* ----- Global Styles  -----  */



body {
    background-color: #e8f0f7;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-style: normal;
    font-weight: 400;
    padding: 0;
    margin: 0;
}

html {
  font-size: 1rem; /* Set the root font size */
}

ul, li {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: #333;}

h1 {
  font-size: 2.5rem; /* 2.5 * 16 = 40px */
  padding: 3px 0;
}

h2 {
  font-size: 1.875rem; /* 1.875 * 16 = 30px */
  padding: 3px 0px;
}

h3 {
  font-size: 1.5rem;
    padding: 3px 0px;
}

.logo h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1rem; /* 1 * 16 = 16px */
}

h2, p {
  margin: 10px;
}

/* ----- Navigation ---- */

.navbar {
  display: flex;
    color: #fff;
    height:70px;
}

.navbar ul{
    display: flex;
}

.navbar a {
    color: #fff;
    padding: 10px;
    margin: 5px;
}

.navbar a:hover {
    border-bottom: 2px #fff solid;
}

.navbar .flex{
        justify-content: space-between;
}

.nav_list_footer {
  display: block;
}

.nav_link {
    color: #fff;
    opacity: 0.95;
    font-size: 15px;
    transition: all 0.4s;
    position: relative;
}

.nav_link:hover,
.nav_link:focus {
    opacity: 1;
}

.nav_link::after {
    content: '';
    height: 3px;
    width: 100%;
    background-color: #fff;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.2s;
    opacity: 0;
    pointer-events: none;
}

.nav_link:hover::after {
    opacity: 1;
}

/* ----- Basic Layout ----- */

.wrapper {
    padding: 30px 30px 30px;
}

.container-header {
  background-color: slategrey;
  padding-top: 15px;
}

.header {
  display: flex;
    flex-wrap: wrap;
  max-width: 1200px;
  width: calc(100% - 30px);
justify-content: space-between;
   margin: auto ;
}

.logo {

}

.oth-title {
}

.navbar {
}

/* ----- Set Specific Column Widths ----- */

.columns {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    justify-content: space-between;
    margin: auto;
    background-color: lightgray;
    border-radius: 20px;
}

.col {
    margin: 30px 15px 30px;
background-color: #93989e;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 20px;
}

/* ----- Specific column widths -----  */

.col-100 {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 30px);
}

.col-1001 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: calc(100% - 30px);
    border: 3px solid #abaeb6;
}

.col-75 {
    width: calc(75% - 30px);
}

.col-50 {
    width: calc(50% - 30px);
}

.col-501-1, .col-501-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: calc(50% - 30px);
    border: 3px solid #abaeb6;
}

.col-33 {
    width: calc(33.33% - 30px);
}

.col-25 {
    width: calc(25% - 30px);
}

/* ----- Set Image to auto fit div ----- */

.col img {
    max-width: 100%;
    height: auto;
}

hr {
    margin: 25px 0;
}

/* ----- Change Order of Items for Small Media ----- */

.container-swap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

/* ----- Specifice Styles for Titles and Button Style Links ----- */

.recents-title {
    line-height: 0.5;
}

.recents-date {
    line-height: 0.5;
}

.author {
  font-size: 1rem;
  line-height: 1.25;
}

.continue {
  font-size: 12px;
  text-align: right;
  text-transform: uppercase;
  margin: 30px 0;
  }

.continue a {
  color: black;
  background-color: rgba(188, 190, 191, 0.8);
  text-decoration: none;
  border: 3px solid rgb(179, 199, 201);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(189, 194, 195, 0.19);
  padding: 5px;
}

.continue a:hover {
  color: #f4f4f4;
  background-color: green;
  cursor: pointer;
}

/* ----- Footer ----- */

.container-footer {
  background-color: slategrey;
          margin-bottom: 0;
          padding-bottom: 0;

}

.footer {
  display: flex;
  max-width: 1200px;
  margin: auto;
}

.footer .col-100 {
    background-color: slategrey;
                padding: 20px 0 0 0;
                margin: 0 30px;
}

.author {
  line-height: 1.75rem;
}


.footer .nav {
  line-height: 1.75rem;
}


/*  ----- Forms   ----- */

input,
button,
select,
textarea {
  font: inherit;
}

form {
  display: flex;
  gap: 3rem;

}

input {
    background-color: rgba(188, 190, 191, 0.8);
  text-decoration: none;
  border: 3px solid rgb(179, 199, 201);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(189, 194, 195, 0.19);
  padding: 5px;

}

input[type="submit"]:hover {
  color: #f4f4f4;
  background-color: green;
 cursor: pointer;
}

fieldset {
    border: none;

}


.search-srch {

}

.search-munros {

}

.search-corbets {
  
}


.search-others {
  
}

.listings {
  display: flex;
  flex-wrap: wrap;
}




/* ----- Setting for smaller screens - Break points

@media screen and (max-width: 1000px) {
    .col-25 {
        width: calc(50% - 30px);
    }
}


@media screen and (max-width: 800px) {
    .col-50, .col-501, .col-501-1, .col-501-2, .col-33, .col-25 {
        width: calc(100% - 30px);
    }
    }

    @media screen and (max-width: 600px) {
      .col-50, .col-501-1, .col-501-2 {
        width: calc(100% - 60px);

      }
    }

 ----- */


 /* Test BPs */

 @media screen and (max-width: 870px) {
    .col-50, .col-501, .col-501-1, .col-501-2, .col-25 {
        width: calc(100% - 30px);
    }
    }


/* ----- Reorder Item in Swap Container --  */

    @media screen and (max-width: 800px) {
  .container-swap {
    flex-direction: column;
  }
  .item1 {
    width: 100%;
  }
  .item2 {
    order: 3;
  }
  .item3 {
    order: 2;
  }
  .item4 {
    order: 4;
  } 
}



