/*
1A3C34 - green

57585E - grey

A14A2F - brown

8A9A7C - battleshipgrey
*/


@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

#articles{
  gap: 10px;
}

/* Val - Headings for visual hierarchy */
h1 {
  font-size: 2rem; /* Large site title */
  margin-bottom: auto;
}


/* Reset and layout */
html {
  height: 100%;
 
}

/* Edited by Val to support readability */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1rem; /* Equivalent to 16px */
  line-height: 1.6; /* Improves paragraph spacing */
  color: #fdfdfd; /* High contrast on dark backgrounds */
  background-color: #003300; /* Calm dark green */
  margin: 0;
  padding: 0;
  font-family: 'Roboto', 'Open Sans';
}

header {
  margin-bottom: 0;
  padding-bottom: 0;
  margin: 0 ;
}

/* Main content grows to fill space */
/* Main content also keeps what is within it, centered and stopped from touching sides.
I advise keeping things like article and hero banner out of main for mobile view. 
We can adjust their margin on higher breakpoints */


/* Hero Section Styles */
.hero-section {
  position: relative;
  height: 26.5vh;
  display: flex;
  align-items: center;
  
  overflow: hidden;
}

/* Slideshow Container */
.slideshow-container {
  position: absolute;
  width: 100vw;
  height: 80%;
  z-index: 1;
  top: 0;
}

/* Navigation Arrows */
.slide-prev, .slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  z-index: 4;
  text-decoration: none;
  transition: background 0.3s ease;
}

.slide-prev {
  left: 20px;
  border-radius: 0 3px 3px 0;
}

.slide-next {
  right: 20px;
  border-radius: 3px 0 0 3px;
}

.slide-prev:hover, .slide-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Individual Slides */
.slide {
  display: none;
  position: absolute;
  width: 100%;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  object-fit: cover;
  display: block;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* World History Image Specific Styles */
.world-history-image {
  object-position: center center;
}

/* Content Overlay */
.hero-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 2;
}

.slide {
  display: none;
}

.fade-slide {
  animation: fade 1s;
}

/* Dots Indicators */
.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 4;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Footer styling */
footer {
  background-color: #1A3C34;
  color: white;
  text-align: center;
  padding: 0;

}

/* Optional: Header styling */
header {
  background-color: #1A3C34;
  color: white;
  padding: 1rem;
  text-align: center;
}

.i-size {
    font-size: 3rem;
}

/* Here is an id to target social networks on the footer */
#social-networks {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-evenly; 
    align-items: center; 
    gap: 1rem;
    padding-top: 15px;
    padding-bottom: 10px;
}

html body {
  background-color: rgb(182, 182, 182) !important;
}

/* Adding a nice solid white color, and really thin and subtle box shadow for depth.
quite like how you see the split between posts on facebook mobile */
.home{
  height: auto;
}
/* for the white background for cards - we also have box shadow and border bottom
to split up the articles whilst keeping them visually distinct */

.white-bg {
  background-color: white;
  box-shadow: 0 2px 1px 1px rgba(0, 0, 0, 0.1);
  flex: 1;
  padding: 1rem;
  font-size: 11px;
  border-bottom: #1A3C34 solid 10px;
  box-shadow: 0 5px rgba(0, 0, 0, 0.3);
  margin-top: 0;
}
/*---------------------------------------------------------------------------------*/

#dropdown-toggle {
  display: none;
}

.text-area {
  width: 100%;
  color: whitesmoke;
  background-color: darkslategray;
}

/* For The Trending Claims */
  #trending-claims-column {
    display: none;
    height: 100%; 
    text-align: center; 
    width: 100%;
    color: whitesmoke;
    background-color: darkslategray;
    border: solid 2px #A14A2F;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }
  .trending-false-card{
    display: none; /* Hidden by default */
    margin-top: 25px;
    border: solid 2px #A14A2F;
    text-align: center;
    color: whitesmoke;
    background-color: rgb(33, 54, 54);
  }
  #trending-claims-column, h2 {
    color: #8A9A7C;
  }


/* The media queries */
@media (min-width: 320px) {
  .container {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100vw; /* Full viewport width */
    box-sizing: border-box;
  }

  body {
    padding: 0;
  }

  #guidanceModal {
      font-size: 14px;
    }
}

/* Val: Big smartphones (400px and up) */
@media screen and (min-width: 400px) {
    #hero {
        min-height: 300px;
    }
    .container.fact {
        margin-top: 2rem; 
   }
}

/* Val: Medium devices (tablets, 768px and up) */
@media screen and (min-width: 768px) {
    #hero {
        min-height: 450px;
    }
    /* Dylan: For the fact cards*/
    .white-bg{
      margin-top: 0;
      box-shadow: 0 4px 8px 8px rgba(0, 0, 0, 0.2);
      border-bottom: #1A3C34 solid 18px;
    }

    #guidanceModal {
      font-size: 20px;
    }
}

/* Dylan changed values to 1024px*/
/* Val: Large devices (laptops, 1024px and up) */
@media screen and (min-width: 1024px) {

  /* Val: The trending claims column disapears on smaller screens */
  #trending-claims-column {
    display: block;
    width: 100%;
    align-items: center;
    min-height: 100vh;
  }
  .trending-false-card {
    display: block;
    width: 350px;
    margin: 0 auto;
  }
  
    #hero {
        min-height: 450px;
    }
    .container.fact {
        margin-top: 1rem; 
   }
   .white-bg{
      margin-top: 0;
    }
    .home{
      text-align: center;
    }
}

@media screen and (min-width: 1440px){

    #hero {
      min-height: 450px;
      margin-bottom: -40px;
    }

    .slideshow-container{
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0 auto;
    }

    .slide img{
      max-height: 450px;
    }
    .slide{
      object-position: center;
      max-width: 1300px;
      background-color: #0c1b17;
    }

   .white-bg{
      margin-top: 0;
    }
    .home{
      text-align: center;
      width: 1300px;
      margin: 0 auto;
    }
}


@media screen and (min-width: 1600px) {
    
    .container.fact {
        margin-top: 1rem; 
   }
   .slide{
      background-color: #0c1b17;
      margin-right: 12px;
    }

   .white-bg{
      margin-top: 0;
    }
    .home{
      text-align: center;
      width: 1300px;
      margin: 0 auto;
    }
}