@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400&display=swap');

body { /* Caution */
  margin: 0px;
  font-family: 'Ubuntu', sans-serif;
}

/* Clears default styling from lists */
ul { 
  list-style-type: none;
  margin: 0;
  padding: 0;
}

li { 
  list-style-type: none;
}

p {
  font-weight: 100;
  font-size: 16px;
  margin: 0 0 26px;
}

h1 { /* Used in Planner */
  font-weight: 200;
  font-size: 30px;
  color: white;
}

h2 { /* Used in triple item grid */
  margin: 26px 0 6px;
  font-size: 22px;
  line-height: 26px;
  font-weight: 100;
  color: #d00;
}

h3 { /* Used in read more on posts */
  font-size: 16px;
  line-height: 26px;
  font-weight: 200;
}

h4 { /* used in warning message */
  font-weight: 200;
}

h5 { /* Used in titles of sitemap */
  font-size: 16px;
  margin-top: 1rem;
  margin-bottom: 4px;
  font-weight: 600;
}

h6 { /* Used in news image label and description */
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 8px; 
}


.fa { /* Social media button styling */
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 32px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 50%;
  color: black;
}

.search-bar {
  display: flex;
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 1rem;
  justify-content: flex-end;
  align-items: center;
}

#search-icon {
  padding: 14px;
  background-color: #d00;
  color: white;
  font-size: 24px;
  margin-left: 1rem;
}

#ticket-icon {
  transform: rotate(-45deg);
  font-size: 24px;
}

header {
  padding: 0;
  margin-bottom: 2rem;
}

.search-bar-icons {
  padding: 5px 10px 0px;
}

.navigation-bar {
  display: flex;
  margin-left: 10%;
  margin-right: 10%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.navigation-bar-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content: center;
  flex: 1;
}

.navigation-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content: center;
  flex-wrap: wrap;
}

.navigation-buttons > button { /* Targets buttons inside this class */
  background-color:  white; 
  font-family: 'Ubuntu', sans-serif;
  border: none;
  padding-top: 4px;
  margin-right: 40px; /* This has to be margin otherwise the underline animation will be too large and not fit under the letters */
  padding-bottom: 2px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 18px;
  cursor: pointer;
  
  /* Animation */
  border-bottom: 4px solid white;
  transition: .1s ease;
}

.navigation-buttons > button:hover {
  border-bottom: 4px solid #5c2483;
}

.navigation-buttons-icon {
  display: flex;
  align-items: center;
  /* background-color:  #4CAF50; */
}

.navigation-buttons-icon > button {
  background-color:  white; 
  font-family: 'Ubuntu', sans-serif;
  border: none;
  padding-top: 4px;
  padding-bottom: 6px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 18px;
  cursor: pointer;

  /* Animation */
  border-bottom-width: 0px;
  transition: 0.15s;
}

.navigation-buttons-icon > button:hover {
  border-bottom-width: 4px;
}

.warning-section {
  display: flex;
  font-size: 16px;
  background: #ff8c00;
  align-items: center;
  padding-left: 10%;
  padding-right: 10%;
  column-gap: 1rem;
}

.white-warning-section {
  display: flex;
  font-size: 16px;
  background: white;
  align-items: center;
  padding-left: 10%;
  padding-right: 10%;
  column-gap: 1rem;
}

.white-warning-section > i {
  color: black;
}

.red-warning-section {
  display: flex;
  font-size: 16px;
  background-color: #d00;
  align-items: center;
  padding-left: 10%;
  padding-right: 10%;
  column-gap: 1rem;
  margin-top: 1px;
}

.red-warning-section > i {
  color: white;
}

.black-link {
  color: black;
  text-decoration: none;
}

.purple-link {
  color: black;
  text-decoration: none;
}

.purple-link:hover {
  color: purple;
  text-decoration: underline;
}

.white-link {
  color: white;
  text-decoration: none;
  border-bottom: 0px solid white;

  transition: .2s ease; /* Animation */
}

.white-link:hover {
  color: white;
  text-decoration: none;
  border-bottom: 2px solid white;
}

.black-link-large {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

.black-link:hover , .black-link-large:hover {
  text-decoration: underline;
}

.black-link-animated {
  color: black;
  position: relative;
  text-decoration: none;
}

.black-link-animated::before { /* Cool and modern line animation */
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  bottom: -4px; /* Clips the block through the bottom as offset */
  left: 0;
  background-color: black;
  transform: scaleX(0);
  transform-origin: top left;
  transition: transform 0.3s ease;
}

.black-link-animated:hover::before {
  transform: scaleX(1);
}

.white-link-animated {
  color: white;
  position: relative;
  text-decoration: none;
}

.white-link-animated::before { /* Cool and modern line animation */
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  bottom: -4px; /* Clips the block through the bottom as offset */
  left: 0;
  background-color: white;
  transform: scaleX(0);
  transform-origin: top left;
  transition: transform 0.3s ease;
}

.white-link-animated:hover::before {
  transform: scaleX(1);
}

.planner {
  background-color: #d00;
  padding-top: 30px;
  padding-left: 10%;
  padding-right: 10%;
  padding-bottom: 60px;
}

.planner-filters {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
}

.planner-left {
  display: flex;
  column-gap: 2rem;
  row-gap: 1rem;
  flex-wrap: wrap;
}

.planner-item {
  display: flex;
  border: 2px white solid;
  align-items: center;
  column-gap: 1rem;
}

.planner-item > h3 {
  color: white;
  margin-top: 0px;
  margin-bottom: 0px;
}

.planner-item:last-child { /* Target the last div of this group to make a minor adjustment */
  padding-left: 1rem;
}

.planner-item > i {
  color: white;

  padding: 1rem;
}

.input-fields {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.input-field-left {
  display: flex;
  flex: 1 1 0%;
}

.input-field-right {
  display: flex;
  flex: 1 1 0%;
}

form {
  display: flex;
  flex: 1;

}

label {
  display: flex;
  flex-shrink: 0;
  padding: 11px 0 11px 14px;
  color: #1d1f20;
  font-weight: bold;
  font-size: 16px;
  line-height: inherit;
  background-color: white;
  align-items: center;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px; /* Nice rounded edges */
}

input {
  display: flex;
  flex: 1 1 0%;
  padding: 11px 0 11px 14px;
  color: #1d1f20;
  line-height: inherit;
  background-color: white;
  border: none;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px; /* Nice rounded edges */
}

.job-advert { 
  background-image: url(../images/challenges/hermes/advert.jpg);

  min-height: 390px;
  background-size: cover;
  background-position: top center;
  background-color: #d00;
  width: 100%;
  position: relative;
}

.job-advert-text {
  background-color: white;
  position: absolute;
  padding: 25px 30px;
  top: 30%;
  right: 10%;
}

.job-advert-text > h2 { /* Target and adjusts the H2 element in this advert */
  margin-top: 0px;
  margin-bottom: 6px;
  font-size: 22px;
  line-height: 26px;
  font-weight: 100;
  color: #d00;
}

.job-advert-text > p { /* Target paragraph element in the advert */
  margin-top: 12px;
  margin-bottom: 12px;
}

.job-advert-text > div {
  display: flex;
  align-items: center;
  column-gap: 4px;
}

.news-section {
  background-color: #fdeded;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.three-post-layout-rows {
  display: flex;
  column-gap: 5%;
  row-gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  flex: 1;
}

.three-post-layout-columns {
  display: flex;
  flex-direction: column;
  row-gap: 2px;
  flex: 1;
}

.news-article-text {
  padding: 25px 30px;
  background-color: white;
  min-height: 290px;  /* manually set height to match the source material */
}

.news-read-more {
  padding: 1rem 30px;
  background-color: white;
  display: flex;
  align-items: center;
  column-gap: 4px;
}

.image-news-rows {
  display: flex;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 3rem;
  padding-bottom: 3rem;
  background-color: #f3f3f3;
  justify-content: space-between;
  column-gap: 5%;
}

.image-news { 
  width: 100%;
  height: 100%;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  position: relative;
}

.image-news-container {
  position: relative;
  border-radius: 20px 0px;
  border-top-left-radius: 20px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 0px;
}

.image-news-container:hover { /* A real struggle had to learn about gradients over images but still managed */
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
  border-top-left-radius: 20px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 0px;
}


.image-news-title-label {
  position: absolute;
  background-color: white;
  top: 0;
  left: 0;
  padding: 10px 30px;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  
  z-index: 2; /* Allows this to go above the darkened image with the gradient. */
}

.image-news-title-description {
  display: flex;
  align-items: flex-end;
  column-gap: 8px;
  z-index: 2; /* Allows this to go above the darkened image with the gradient. */

  position: absolute;
  bottom: 0;
  color: white;
  margin: 25px 30px;
}

.purple-button-container {
  display: flex;
  padding-left: 10%;
  padding-right: 10%;
  margin-top: 20px;
  margin-bottom: 20px;
}

.purple-button-container-planner {
  display: flex;
}

.purple-button > .fa-arrow-right {
  font-size: 16px;
  color: white;
}

.purple-button {
  background-color: #5c2483;
  padding: 12px 30px;
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  color: white;
  border: none;

  transition: .1s ease; /* Animation */
}

.purple-button:hover {
  background-color: #1d1f20;
}

.red-footer-text {
  font-size: 22px;
  color: #d00;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-sitemap-rows {
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-sitemap-columns {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.footer-container {
  padding-left: 10%;
  padding-right: 10%;
  margin-top: 2rem;
  background: #f3f3f3;
}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 15px;
  padding-bottom: 15px;
}

.footer-text {
  margin: 0px;
}

.media-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.media-footer-bar-items {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  border-right: 1px solid #ccc;
}

.media-footer-bar > ul {
  display: flex;
  flex-wrap: wrap;
}

.footer-logos {
  display: flex;
  column-gap: 3rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  flex-wrap: wrap;
}

.grey-image { 
  filter: grayscale(100%);
  transition: .1s ease-out; /* Animation */
  cursor: pointer;
  max-height: 50px;
}

.grey-image:hover { 
  filter: grayscale(0%);
}

.fa-right-left {
  background-color: #5c2483;
  font-size: 24px;
  padding: 1rem;
  color: white;
  border-radius: 50%;
  margin-left: 20px;
  margin-right: 20px;

  transition: .1s ease; /* Animation */
}

.fa-right-left:hover {
  background-color: #1d1f20;
}

.fa-chevron-right { /* Targets the right chevron icon */
  color: purple;
  font-size: 12px;
  margin-right: 8px; /* Pushes the text links to the rights */
}

.fa-triangle-exclamation { /* Targets the warning icon inside the warning popup */
  font-size: 24px;
}

.fa-arrow-right { /* Targets the right arrow icon */
  font-size: 16px;
  color: purple;
}

.fa-clock {
  border-right: 2px white solid;
}

.fa-calendar-days {
  border-right: 2px white solid;
}
.image-news-title-description > .fa-arrow-right { /* Targets the right arrow icon */
  font-size: 16px;
  color: white;
}


.fa-user { /* Targets the user icon */
  font-size: 24px;
}

/* Added this for the portfolio version of the challenge */
.footer-message {
  position: fixed;
  bottom: 0;
  right: 5%;
  color: white;
  cursor: pointer;
  font-size: 2rem;

  background-color: #1d1f20;
  padding: 6px 12px;
  z-index: 3;
}

.footer-message:hover {
  transition: ease-out 0.5s;
  background-color: #0c0d0e;
}

@media screen and (max-width:900px) { 


}

