/* CSS reset start  */

body {
	min-height: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 0px;
	margin: 0px;
	cursor: default;
	overflow: hidden;
	scroll-behavior: smooth;
	font-family: sans-serif;
}

body * {
	padding: 0px;
	margin: 0px;
	box-sizing: border-box;
}

a,
a:active,
a:link,
a:link:visited {
	/*color: white;*/
	text-decoration: none;

}

.site_wrapper {
	min-height: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	height: 100dvh;
	padding: 0px;
	margin: 0px;
	cursor: default;
	background-color: white;
	user-select: none;
	overflow-y: scroll;
	scroll-behavior: smooth;
	justify-self: center;
	width: 100%;
}

/* CSS reset end  */


/* Cs�szka start */

/* Firefox (k�l�n szintaxis) */
* {
	scrollbar-width: thin;
	/* "auto" vagy "thin" */
	scrollbar-color: rgb(54, 67, 186) rgba(11, 120, 114, 0);
	/* [thumb] [track] */
}

/* Cs�szka end */

/* BASE COLORS */

:root {
	--primary-color: white;
	/*--secondary-color: rgb(239, 240, 242);*/
	--secondary-color: rgb(236, 239, 246);
	--tertiary-color: rgb(15, 26, 48);
	--title-color-main: white;
	--title-color-sub: red;
	--wear-color: rgb(54, 67, 186);
/*
    --primary-color: white;
	--secondary-color: rgb(5, 15, 36);
	--tertiary-color: rgb(15, 26, 48);
	--title-color-main: white;
	--title-color-sub: red;
    */
}

header {}

nav {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	height: 70px;
	background-color: var(--secondary-color);
	color: black;
	gap: 20px;
}

#nav_title_row{
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: start;
	justify-content: space-between;
	width: max-content;
}

nav span {
	color: var(--wear-color);
}

#nav_title {
	padding-left: 5%;
	font-family: sans-serif;
	font-size: 2.5rem;
	font-weight: 700;
	font-style: italic;
}

#nav_text{
	display: none;
	padding-left: 5%;
	font-family: sans-serif;
	font-size: 1.5rem;
	font-weight: 300;
	font-style: italic;
}

#search {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	padding-right: 5%;

}

#search input {
	width: 90%;
}

/*
#search img {
	width: 15px;
	height: auto;
}*/

/* MAIN */
main {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: start;
	justify-content: center;
	background-color: rgb(239, 240, 242);
	gap: 15px;
}

/* FRESH NEWS */

#fresh {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: start;
	background-color: var(--secondary-color);
	width: 100%;
	max-width: 500px;
}

#fresh_wrapper {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	color: black;
	width: 100%;
	max-height: 65%;
	padding-bottom: 20px;
}

#fresh_header {
	color: white;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: left;
	background-color: var(--wear-color);
	padding-left: 5%;
	min-height: 40px;
	gap: 10px;
	width: 95%;

	border-top-left-radius: 10px;
	border-top-right-radius: 10px;

}

#fresh_header img {
	width: 20px;
	height: auto;
}

#fresh_pool {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: baseline;
	justify-content: start;
	background-color: white;
	gap: 5px;
	padding: 10px 0;
	width: 95%;
	padding-left: 2%;
	padding-right: 2%;
	max-height: 90vh;
	overflow-y: scroll;
}

.fresh_news_item {
	display: flex !important;
	flex-direction: row;
	flex-wrap: nowrap;
	/*gap: 13px;*/
	align-items: center;
	justify-content: space-between;
	width: 100%;
	/*border-bottom: 1px solid blue;*/
	padding: 2%;
	gap: 10px;
}

.fresh_news_item:hover {
	background-color: var(--wear-color);
	border-radius: 8px;
	color: white;
	/*padding-right: 5px;*/
}

.fresh_news_line {
	width: 335px;
	height: 1px;
	background-color: rgb(39, 55, 126);

}

.fresh_news_time_category{
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 100px;
}

.fresh_news_time {
	padding: 6px 8px;
	background-color: var(--wear-color);
	border-radius: 8px;
	font-size: 0.75rem;
}

.fresh_news_category {
	display: flex;
	color: black;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	font-size: 0.65rem;
	width: max-content;
}

.fresh_news_title {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: start;
	justify-content: center;
	font-size: 0.75rem;
	width: 70%;
	color: black;
	/*text-wrap: nowrap;*/
}

.fresh_news_source{
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: start;
	justify-content: center;
	font-size: 0.75rem;
	width: 20%;
	color: black;
}

#fresh_button_wrapper{
	color: white;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	background-color: var(--wear-color);
	min-height: 40px;
	width: 95%;

	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

/*  TOV�BBI ORSZ�G H�REK  */




/* TOP& POPULAR */



#top_popular_together{
	position: relative;
	width: 100%;
	max-width: 500px;
	height: 70vh;
	/*max-height: 70vh;*/

	display:flex;
	flex-direction: column;
	align-items:center;
	gap: 15px;
}

/* TOP */

#top {
	position: relative;
	background-color: var(--secondary-color);
	width: 100%;
	max-width: 500px;
	flex:1;
	display: flex;
	flex-direction: column;
	align-items:center;
	min-height:400px;
}

#top_wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: white;
	width: 100%;
	max-height:100%;
	flex:1;
}

#top_header {
	color: white;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	background-color: var(--wear-color);
	padding-left: 5%;
	height: 40px;
	gap: 10px;
	width: 95%;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

#top_header img {
	width: 20px;
	height: auto;
}

#top_timesort {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	padding-right: 5%;
	gap: 5px;
}

#top_timesort div {
	padding: 5px 10px;
	background-color: var(--wear-color);
	border-radius: 8px;
	border: 1px solid var(--wear-color);
	font-size: 0.8rem;
}

#top_timesort div:hover {

	background-color: rgba(54, 67, 186, 0.3);
}

#top_pool {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: baseline;
	justify-content: start;
	background-color: white;
	gap: 8px;
	padding: 10px 0;
	font-size: 0.75rem;
	width: 95%;
	padding-left: 2%;
	padding-right: 2%;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	overflow-y: scroll;
	flex:1;
}

.top_news_item {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 13px;
	width: 100%;
	padding: 2%;
}

.top_news_item:hover {
	background-color: var(--wear-color);

	border-radius: 8px;
}

.top_news_body {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-evenly;
	align-items: center;
	width: 100%;
}

.top_news_body_title {
	width: 80%;
	color: black;
}

.top_news_subbody {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 0.65rem;
	gap: 5px;
	width: 50px;
	color: black;
}

.top_news_subbody div {
		text-align: center;
}

.top_news_number {
	padding: 8px 10px;
	background-color: var(--wear-color);
	border-radius: 8px;

}

.top_news_time {
	display: none;
}

/* POPULAR TOPICS */

#popular_topics {
	background-color: var(--secondary-color);
	width: 100%;
	max-width: 500px;
	display: flex;
	flex-direction: column;
	align-items:center;
}

#popular_topics_header {
	color: white;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	background-color: var(--wear-color);
	padding-left: 5%;
	height: 40px;
	gap: 10px;
	width: 95%;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

#popular_topics_wrapper {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	color: white;
	width: 100%;
}

#popular_topics_pool {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	background-color: white;
	gap: 8px;
	padding: 10px 0;
	font-size: 0.75rem;
	width: 95%;
	padding-left: 5%;
	padding-right: 5%;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

.popular_topics_item {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	padding: 6px 8px;
	color: white;
	background-color: var(--wear-color);
	border-radius: 8px;
	border: 1px solid rgb(118, 186, 91);
	width: max-content;
	
}

.popular_topics_item:hover {
	background-color: rgba(118, 186, 91, 0.7);
}

.popular_topics_title {
	font-size: 1.5rem;
	color: white;
}

#fresh a,
#top a,
#popular_topics a {
    color: white;
}

/* SPORT�GAK */

#separated_news {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	background-color: var(--secondary-color);
}

/* Category */

#sport_category {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	background-color: var(--secondary-color);
	width: 100%;
	padding-bottom: 15px;
}


#sport_category_wrapper {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	color: white;
	width: 100%;
	padding-bottom: 10px;
	padding-top:30px;
	max-width: 1570px;
}

#sport_category_title {
	color: black;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	background-color: white;
    font-weight: 800;
	padding-left: 5%;
	height: 40px;
	gap: 10px;
	width: 95%;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

#sport_category_pool {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	background-color: white;
	gap: 8px;
	padding: 10px 0;
	font-size: 0.75rem;
	width: 95%;
	padding-left: 5%;
	padding-right: 5%;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;

}

#sport_category_row1 {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-evenly;
	width: 100%;
    row-gap: 5px;
	gap: 5px;
}

#sport_category_row1 div {
	padding: 8px 10px;
    color: white;
	background-color: var(--wear-color);
	border-radius: 8px;
	/*border: 1px solid rgb(36, 45, 65);*/
}

#sport_category_row1 div:hover {
	background-color: rgba(82, 174, 48,0.7);
}

#sport_category_row2 {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-evenly;
	width: 100%;
}

#sport_category_row2 div {
	padding: 8px 10px;
	background-color: rgb(7, 17, 38);
	border-radius: 8px;
	border: 1px solid rgb(36, 45, 65);
}

#sport_category_row2 div:hover {
	background-color: red;
}

#categoryselector {
	width: 150px;
}

/* Category */


#country_category {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	background-color: var(--secondary-color);
	width: 100%;
}

#country_category_wrapper {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	color: white;
	width: 100%;
	padding-top: 20px;
	max-width: 1570px;
}

#country_category_title {
	color: black;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	background-color: white;
	padding-left: 5%;
	height: 40px;
	gap: 10px;
	width: 95%;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
    font-weight: 800;
}

#country_pool {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	background-color: var(--wear-color);
	gap: 8px;
	padding: 10px 0;
	font-size: 0.75rem;
	width: 95%;
	padding-left: 5%;
	padding-right: 5%;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	padding: 30px 0;
}

#country_pool a {
    color: black;
}

.country_card {
	display: flex;
	flex-direction: column;
	background-color: white;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	width: 300px;
	padding: 5px;
	border-radius: 8px;
	color: red;
	font-size: 0.75rem;
	gap: 8px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.country_card_header {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	align-self: baseline;
	padding-left: 5%;
	padding-top: 8px;
    gap: 15px;
}

.country_card_flag img{
    height: 14px;
    width: auto;
}

.country_card_title {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	color: black;
	text-align: left;
    font-weight: 600;
}

.country_news_pool {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.country_card_news_item {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 96%;
	height: 56px;
	padding:2%;
    color: black;
}

.country_card_news_item:hover {
	background-color: var(--wear-color);
	border-radius: 8px;
	color: white;
}

.country_card_news_item:hover .country_card_news_time {

	color: white;
}

.country_card_news_time {
	color: rgb(196, 49, 53);

}

/* FOOTER  */
footer {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	background-color: var(--secondary-color);
	width: 100%;
	height: max-content;
	gap: 20px;
}

#footer_links{
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-items: center;
	gap: 20px;
	font-weight: 800;
	font-size: 1rem;

	padding-top: 30px;
}

#footer_links a {
		color: black;
}

/* backtomain */

#backtomain{
		display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: baseline;
	justify-items: center;
	width: 80%;
	padding: 20px 0;
	color: black;
}

#backtomain a{

	color: black;
}

#footer_copyrights{
	padding-bottom: 30px;
}

/* more news wrapper */
#more_news_wrapper{
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-items: center;
	background-color: var(--secondary-color);
}

/* banners  */

section.banner {
	padding-bottom: 30px;
}
.banner img {
    display: block;
    width: 100%;
    height: auto;
}

picture.banner {
    display: block;
    width: 100%;
    height: auto;
    flex-shrink: 0;
    text-align: center;
}

picture.banner img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

@media only screen and (min-width: 1010px) {

	#top_popular_together, #top, #fresh, #popular_topics {
		max-width: 700px;
	}

	.top_news_body_title{
		width: 90%;
	}

	.fresh_news_title{
		width: 90%;
	}

	#popular_topics {
		/*max-width: 1000px;*/

	}

	#popular_topics_wrapper {
		width: 97.5%;
	}

	#separated_news {
		width: 100%;
		/*max-width: 1000px;*/
	}

	#top_wrapper {
		width: 97.5%;
	}

	#fresh_wrapper {
		width: 97.5%;
	}

	#fresh {
        height: auto;
    }

    #fresh_wrapper {
        height: 63vh;
        max-height: none;
    }


	#fresh_pool {
		max-height: 1000px;
	}

	#top_pool {
		max-height: 1000px;
	}

	#footer_links{
		flex-direction: row;
	}

}
