html{
	scroll-behavior: smooth;
}

body{
	display: flex;
	flex-direction: column;
	padding: 0;
	margin: 0;
}

#header{
	display: flex;
	flex-direction: row;
	height: 50px;
		padding-top: 3px;
	padding-bottom: 3px;
	width: 100%;
	justify-content: center;
}
#header a{
	display: flex;
	flex-direction: row;
	justify-content: center;
}
#header img{
	height: 100%;
}

div{
	min-height: 20px;
	display: inherit;
}

#feed-header{
	width: 100vw;
	display: flex;
	flex-direction: row;
	justify-content: center;
	font-family: "Roboto", "Helvetica", "Arial", sans-serif;
	font-weight: bold;
	color: red;
	font-size: 0.8rem;
	text-align: center;
	padding: 5px;
  border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}


#main-body{
	flex-direction: row;
	justify-content: space-between;
	padding: 5vw;
}

#main-body-story{
	flex: 3;
	display: flex;
	flex-direction: column;
	border-right: 1px solid #ddd;
	padding-right: 2vw;
}
#main-body-faq{
	flex: 2;
	padding-left: 2vw;
	display: flex;
	flex-direction: column;
}


#faq-list-container{
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: flex-start;
  font-family: "freight-text-pro", "Times", serif;
}

#faq-list-container h1{
	text-align: center;
}


#faq-item{
	display: flex;
	flex-direction: column;
	font-size: 1.1rem;
}

#faq-item b{
	font-size: 1.4rem;
}


.main-story-text{
	font-size: 0.8rem;
	color: black;
  font-family: "freight-text-pro", "Times", serif;
  display: block;
}

@media (max-width: 786px) {
	#main-body{
	flex-direction: column;
	justify-content: space-evenly;
	padding: 4vw;
	margin-top: 2vh;
	}

	#main-body-story{
	   border-bottom: 1px solid #ddd;
	   border-right: none;
	   padding: 0;
	   padding-bottom: 1vh;
	   align-self: center;
	}

	#main-body-faq{
	padding: 0;
	padding-top: 1vh;
	}
}


#footer{
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
  font-family: "freight-text-pro", "Times", serif;
  font-size: 1rem;
  padding: 30px;
}


/* Article styles*/

#stream{
	display: flex;
	flex-direction: row;
	justify-content: center;
}
#newsFeed{
	display: flex;
	flex-direction: column-reverse;
	width: min(600px, 90%);
	padding-left: auto;
	padding-right: auto;
}

#opinionsFeed{
	display: flex;
	flex-direction: column-reverse;
	width: min(600px, 90%);
	padding-left: auto;
	padding-right: auto;
}
.article {
  flex-direction: column;
  border-bottom: 1px solid #ddd;
  padding: 30px;
  padding-bottom: 50px;
}

.article-opinion {
  flex-direction: column;
  border-bottom: 1px solid #ddd;
  padding: 30px;
  padding-bottom: 50px;
  background-color: #eee;
}

.title {
    font-size: 2rem;
    line-height: 2rem;
    font-family: "freight-text-pro", "Times", serif;
    color: #020100;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.title-top {
	margin-bottom: 1rem;
}


.title-opinion {
    font-size: 2rem;
    line-height: 2rem;
    font-family: "freight-text-pro", "Times", serif;
    color: #020100;
    margin-bottom: 0.6rem;
    font-weight: 700;
    text-align: center;
}

.faq-title {
	font-size: 1.6rem;
	line-height: 1.6rem;
	border-bottom: 1px solid #ddd;
	padding-bottom: 15px;
	font-family: "Roboto","Arial",sans-serif;
	font-weight: bold;
}

.summary {
    font-size: 1.3rem;
    line-height: ;
    font-family: "freight-text-pro", "Times", serif;
    color: #020100;
    margin-bottom: 1rem;
    font-weight: 500;
    font-style: italic;
    color: #333;
}

.image {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.meta-info {
    font-size: 0.82352941rem;
    line-height: 1.17647059rem;
    color: #444;
    font-family: "freight-text-pro", "Times", serif;
}

.meta-info-opinion {
    font-size: 0.5;
    line-height: 1.4;
    color: #333;
    font-family: "Roboto", "Arial", sans-serif;
}

/* Sticky header */
#sticky-header {
  padding: 0px;
  text-align: center;
  max-width: 100vw;
  background-color: white;
  transition: top 0.3s ease-in-out;
  position: sticky;
  top: -100px; /* Initial position (above the viewport) */
  z-index: 1000;
}

.sticky {
  top: 0;
}
#navbar {
  background-color: white;
  padding: 5px; /* Adjust the padding to ensure enough space */
  border-bottom: 1px solid darkgrey;
   border-top: 1px solid darkgrey;
  display: flex;
  width: 100%;
  overflow: auto;
  justify-content: center;
}


.loading-message-container{
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 15px;
}


@media (max-width: 786px) {
	#navbar{
  	justify-content: inherit;
}
}

ul{
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: space-around; /* Adjust spacing */
  margin: 0 !important;
  padding: 0;
   white-space: nowrap; /* Prevent line breaks */
}

li {
  margin: 0 5px;
  padding: 0;
}

#navbar a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: 0.8rem;
	font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  border: none;
}


