/* -------------------- Fonts -------------------- */

.red-hat-text-light {
  font-family: "Red Hat Light", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.red-hat-text-regular {
  font-family: "Red Hat Regular", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* -------------------- Common tags -------------------- */

body{
	background: #f1f1f1;
	margin: 0;
	padding: 0;
	border: 0;
	font-family: "Red Hat Light", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

a{
	color: #333;
	text-decoration: none;
}

svg, img {
	width: 190px;
	height: 117px;
	margin: 0;
	padding: 0;
}

.banner{
	 width: 100%; 
	 padding: 0;
	 background: #fff;
	 text-align: center;
}

.banner img{
	width: 70%;
	height: auto;
}

/* -------------------- Main Page -------------------- */

.main-header{
	color: #333;
}

.main-header, .main-content, .main-footer{
	max-width: 55vh;
	margin: 0 auto;
	text-align: center;
	padding-top: 50px;
}

.flag-table{
	width: 100%;
}

.flag-cell{
	padding-top: 25px;
	opacity: 0.9;
	transition: opacity 0.2s ease-in-out; /* Smooth transition */
}

.flag-cell:hover{
	opacity: 1;
	transition: opacity 0.2s ease-in-out; /* Smooth transition */
}

.flag-cell p{
	margin: 0;
	padding: 0;
}

.main-footer{
	color: #999;
	font-size: 0.75em;
	margin-bottom: 50px;
}

/* -------------------- Contents Page -------------------- */

.details-table{
	font-size: 10pt;
	padding: 15px;
	border-radius: 7px;
	background: #fff;
	width: 100%;
	table-layout: auto; /* Default, allows flexible column sizes */
}

th{
	text-align: left;
}

td{
	padding: 7px !important;
    vertical-align: top; /* Align the content to the top */ 
}

.tr_details{
	color: #555;
}

.tr_details:hover{
	color: #DDAB5F !important;
	background: #fafafa;
	padding: 7px !important;
	cursor: pointer;
}

.counter{
	color: #aaa;
}

.year{
	padding-right: 30px;
}

.title{
	width: 100%;
}


.contents-body{
	max-width: 85vh;
	margin: 0 auto;
}

.hidden{
	display: none;
}

.filter-input {
    margin-left: 20px;
    padding: 5px 10px;
    font-size: .85rem;
    width: 200px;
    height: 25px;
    border-radius: 7px;
    border: 1px solid #ddd;
    color: #555;
}

.title-and-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* -------------------- Mobile Responsiveness -------------------- */

@media screen and (max-width: 768px) {
    .flag-table{
        display: block; /* Makes the table behave like a block container */
        width: 85%;
		margin: 0 auto;
		padding: 0;
    }

    tbody, tr{
    	width: 100%;
    	display: block;
    	margin: 0 auto;
    	padding: 0;
    }

    .flag-cell {
        display: block; /* Stacks each cell vertically */
        width: 100%;    /* Full width for each cell */
        margin-bottom: 10px; /* Space between rows */
    }

    .flag-cell p{
    	margin-bottom: 30px;
    }

    .flag-cell:last-child {
        margin-bottom: 0; /* Remove margin for the last cell */
        border-bottom: none; /* No border for the last cell */
    }

    .flag-image {
        max-width: 80%; /* Ensure flag images fit within their containers */
        height: auto; /* Maintain aspect ratio */
    }

    svg, img {
		width: 100%;
		height: 100%;
	}

	td{
		padding: 0 !important;
	    vertical-align: top; /* Align the content to the top */ 
	}

	.tr_details{
		margin-bottom: 20px;
	}

	.hidden{
		display: block;
	    margin: 0 auto 5px;
	    color: #999;
	}

	.counter{
		display: none;
	}

	.year, .date, thead{
		display: none;
	}

	.contents-body{
		width: 90%;
		margin: 0 auto;
	}

	.tr_details:hover{
		color: #DDAB5F !important;
		background: transparent;
		padding: 0px !important;
		cursor: pointer;
	}
	.title-and-filter {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start; /* Align to the left */
    }

    .filter-input {
        width: 95%; /* Full-width on mobile */
        margin: 0 auto 20px;
    }
}