.carousel-caption {
    bottom: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
    max-width: 100%; /* Ensure full-width display on smaller screens */
}

.carousel-caption .btn {
    height: 45px; /* Decrease button height for smaller screens */
    font-size: 1rem; /* Reduce font size */
    padding: 4px; /* Reduce padding inside buttons */
    margin: 2px 0; /* Reduce space between buttons */
}

.carousel-button-group a {
    padding: 8px; /* Smaller padding for mobile */
    font-size: 0.85rem; /* Smaller font size for mobile */
}


#explore-button, #new-features-button {
    padding: 10px 40px; /* Increase padding for a wider button */
    border-width: 1px; /* Thicker border */
    min-width: 200px; /* Set a minimum width for wider appearance */
    font-weight: bold; /* Bold text for emphasis */
	font-size: 1.2rem; /* Larger font size */
}




#top-rated-container {
    background-color: transparent; /* Remove background color */
    padding: 0; /* Remove padding */
    border-radius: 0; /* Remove border radius */
    bottom: auto; /* Reset bottom alignment */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Center the element fully */
    max-width: 600px; /* Limit the width for consistency */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

}

#top-rated-list {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    padding: 15px;
    width: 100%;
}

.top-rated-title {
    font-size: 2rem;
    color: #ffffff;
    margin: 0; /* Remove any margin */
    padding-bottom: 10px; /* Add slight space between title and box */
}

#top-rated-title {
    background-color: #ffc107;
    border-color: #ffc107;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #333;
    padding: 10px;
    text-align: center;
    margin: 0; /* Remove any extra margin */
}

#top-rated-rating-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0; /* Ensure no extra spacing */
  justify-content: center; /* Center horizontally */

  text-align: center;     /* Align text inside centered elements */
}

#top-rated-rating-row .side_rating, 
#top-rated-rating-row .right_rating {
    flex: 0 0 15%;
}

#top-rated-rating-row .middle_rating {
    flex: 0 0 60%;
}

#top-rated-rating-row .bar-container {
    width: 100%;
    background-color: #ddd;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;

}

#top-rated-rating-row .bar {
    height: 100%;
    background-color: #ffc107;
}

#top_rated .top_rate_div {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
    color: #ffc107;
}

#top_rated .top_features_div {
    font-size: 1.2rem;
    color: #ffffff; /* Set text color to white */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); /* Shadow for readability */
}

.featurewrapper {
    background-image: url('/images/logos/unesco_site_img.jpg'); /* Adjust path if needed */
    background-size: cover; /* Ensure the image covers the entire div */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    width: 100%; /* Full width */
    padding: 15px; /* Adds some padding around the content */
    border-radius: 5px; /* Optional: Round corners */
    color: #ffffff; /* Ensures content text stands out over the background */
    position: relative;
}

.featurewrapper {
    position: relative;
    z-index: 1;
}


#unesco_feature {
  position: relative;
  width:100%;
  height:auto;
}






.unesco_features_div a {
  color: #fff !important;
  font-size: 0.8vw;
  padding: 0.5vw 0.3vw;
  margin-top: 6px !important;
  background-color: transparent;
  border-color: #fff;
  text-shadow: -1px 0 #000, 0 2px #000, 2px 0 #000, 0 -1px #000;
  font-weight:800;
}
.unesco_features_div a:hover {
  text-shadow: none;
  border-color: #fff !important;
  background-color: #212529;
}


@media (max-width: 768px) {
    #top-rated-container {
        max-width: 90%;
        padding-left: 10px;
        padding-right: 10px;
    }

    #top-rated-rating-row .side_rating, 
    #top-rated-rating-row .right_rating {
        flex: 0 0 20%;
    }

    #top-rated-rating-row .middle_rating {
        flex: 0 0 50%;
    }

    #top_rated .top_rate_div, 
    #top_rated .top_features_div {
        text-align: center;
    }
	.unesco_features_div a {
padding: 2vw 0.5vw;
  font-size: 4vw;}
}



@media (max-width: 576px) {
#top-rated-container {
        max-width:90%;
    }	
	#top-rated-flag{
		display:none;
	}
	
	.top_features_div, .top_rate_div {
    font-size: 4vw !important;

}

#top-rated-rating-row .side_rating, 
    #top-rated-rating-row .right_rating {
        font-size:3vw !important;
    }
}

@media (max-width: 400px) {
	
	#top-rated-rating-row .bar-container {

    height: 8px;


}
	
	.top_features_div, .top_rate_div {
    font-size: 3vw !important;

}
}









@media (max-width: 360px) {
#top-rated-container {
        max-width: 100%;
        padding-left: 3px;
        padding-right: 3px;
    }	
	
	#explore-button, #new-features-button{
		font-weight:normal; font-size:3vw; min-width:50%;
	}
	.carousel-caption .row .carousel-button-group a{
		font-weight:normal; font-size:3vw;
	}
	
	.container.w-75 .carousel-caption .row .carousel-button-group a{
		font-weight:normal; font-size:3vw;
	}
	
	
}

@media (max-width: 300px) {
#top-rated-rating-row, .top_features_div, .top_rate_div{

display:none;	
	


}
}


@media (max-width: 768px) { /* Apply additional styles for small screens */
    .carousel-caption {
        padding: 10px; /* Reduce padding on smaller screens */
    }
    
    .carousel-caption .btn {
        height: 33px; /* Decrease button height further on very small screens */
        font-size: 0.8rem; /* Adjust font size for readability */
    }
    
    .carousel-caption h2 {
        font-size: 1.2rem; /* Adjust font size for smaller screens */
    }
    
    .carousel-caption p {
        font-size: 0.9rem; /* Adjust paragraph font size */
    }
}


		
		 .news-list-item {
            justify-content: flex-start; /* Align content to the left */
            text-align: left; /* Ensure text alignment is left */
            padding-left: 15px; /* Add some padding for visual clarity */
			
		
        }
		
		 .news-list-item_ar {
            justify-content: flex-end; /* Align content to the left */
            text-align: right; /* Ensure text alignment is left */
            padding-right: 15px; /* Add some padding for visual clarity */
			
		
        }
		
		.map-item{
		border:0;
		 display: flex; /* Enable flexbox */
  align-items: center; /* Center child elements vertically */
  justify-content: center; /* Optional: Center horizontally as well */
  height: 100%; /* Ensure it uses the full height of the parent */
  position: relative; /* Ensure positioning context for its children */
		}

.item_parent {
    display: flex; /* Enable flexbox for alignment */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Vertically center items */
    height: 100%; /* Use full height of parent container */
    padding: 20px; /* Adjust padding if needed */
    background: #f5f5f5; /* Ensure background consistency (optional) */
    border: 1px solid #ddd; /* Optional for styling */
    box-sizing: border-box; /* Ensures padding doesn't overflow */
}





#category_parent,
#flags_parent {
   
    width: 100%; /* Ensure it spans the full width */
}


		

	
	.categories_flags_list{
		display: flex;
		 align-items: center;
	}
	
		
.news_item{
color:#212529;
text-decoration:none;
font-size: 18px;
text-shadow:2px 2px 4px rgba(0, 0, 0, 0.3);
}

.news-list-item:hover {

  background-color: #ccc !important;
  cursor:pointer;
}	

.news-list-item_ar:hover {

  background-color: #ccc !important;
  cursor:pointer;
}	
		
		
		
		
		#chartdiv_parent {
  -webkit-justify-content: space-around;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

#chartdiv {
  -webkit-justify-content: space-around;
  display: flex;
  justify-content: center;
  align-items: center; /* Vertical alignment for child elements */
  width: 99.9%;
  height: 430px;
}

#search_holder {
  position: absolute;
  width: 240px;
  left: 21px;
  top: 15px;
}

#livesearch {
  max-height: 200px;
  overflow: auto;
  background-color: #fff;
  line-height: 2;
  padding-left: 5px;
  font-size: 14px;

}

#livesearch a {
  color: black !important; /* Force the font color to black */
  text-decoration: none !important; /* Remove underline */
  font-weight: normal; /* Default font weight */
}

#livesearch a:hover {
  color: black !important; /* Ensure hover font color stays black */
  text-decoration: none !important; /* No underline on hover */
  font-weight: bold; /* Bold font weight on hover */
}

#search {
  box-shadow: 0 0 0 1px #808080;
}

.search_loader_holder {
  position: relative;
}

#search_loader {
  display: none;
  position: absolute;
  top: 8px;
  right: 5px;
}


#canada_map_holder {
  position: absolute;
  width: 240px; 
  height: 40%; /* Height is 15% of the parent container */
  left: 21px; 
  bottom: 21px; 
  border: 1px solid #6c757d; /* Keep the border */
  border-radius: 5px; /* Optional: Rounded corners */
  background-color:#d6d8db;

}






#map_object {
  width: 100%;
  height: 100%;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

#canada_map_object {
  width: 100%;
  height: 99%;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);


}



@media screen and (max-width: 1798px) {
  #canada_map_holder {
    width: 180px; 
  height: 30%; /* Height is 15% of the parent container */
  }
 
}

@media screen and (max-width: 1598px) {
  #canada_map_holder {
    width: 120px; 
  height: 20%; /* Height is 15% of the parent container */
  }
 .flag_undertext {
	 font-size:10px !important;
 }
 .stat-number {
        font-size: 4rem !important;
}
}

@media screen and (max-width: 1420px) {
 .news_item{
font-size: 14px;

 

}
.stat-number {
        font-size: 3.5rem !important;
}
}

@media screen and (max-width: 1300px) {
  #map_object {
    height: 90%;
  }
  .news_item{
font-size: 13px;
}
.flag_undertext {
	 font-size:9px !important;
 } 
 

}

@media screen and (max-width: 1050px) {
  #map_object {
    height: 75%;
  }

.stat-number {
        font-size: 3rem !important;
}
}

@media screen and (max-width: 991px) {
  #map_object {
    height: 48%;
  }
  .news_item{
font-size: 13px;
}
.flag_undertext {
	 font-size:2vw !important;
 }
 .definition{
		 font-size:1.8vw !important;
}

.unesco_features_div a {
  color: #fff !important;
  font-size: 2.5vw !important;
  padding: 3vw 0.8vw;
}



}


@media screen and (max-width: 768px) {
  #map_object {
    height: 89%;
  }
  .news_item{
font-size: 16px;
}

.definition{
		 font-size:2vw !important;
}

.unesco_features_div a {
  color: #fff !important;
  font-size: 2.5vw !important;
  padding: 3vw 0.8vw;
}

.table th,
    .table td {
      
        font-size: 1rem !important;
    }

}




@media screen and (max-width: 576px) {
  #map_object {
    height: 70%;
  }
  .flag_undertext {
	 font-size:3vw !important;
 }
 .definition{
		 font-size:3.5vw !important;
}
.unesco_features_div a{
		 font-size:3vw !important;
}

#calendar-month-year{
	font-size:20px !important;
}
.table th,
    .table td {
      
        font-size: 0.8rem !important;
    }

}


@media screen and (max-width: 500px) {

.table th,
    .table td {
      
        font-size: 10px !important;
    }

}


@media screen and (max-width: 450px) {
  #map_object {
    height: 60%;
  }
  .stat-number {
        font-size: 2.2rem !important;
    }

    .stats_item {
        font-size: 1.2rem !important;
    
    }

 .table th,
    .table td {
      
        font-size: 9px !important;
    } 
}

@media screen and (max-width: 400px) {
  #map_object {
    height: 50%;
  }

.unesco_features_div a{
		 font-size:3.3vw !important;
}
#calendar-month-year{
	font-size:16px !important;
}
.carousel_buttons_battles {
    position: absolute;
    bottom: 40px !important;
}
.battles_next,
.battles_previous {
   
    width: 40px; /* Define square size */
    height: 40px !important;
    
  
   
}
.btl_n, .btl_p{
font-size:12px;	
}
.battle_text{
font-size:14px !important;	
}
 .table th,
    .table td {
      
        font-size: 8px !important;
    }

}

@media screen and (max-width: 350px) {
  #map_object {
    height: 40%;
  }
 

}


@media screen and (max-width: 300px) {
  #map_object {
    height: 35%;
  }
  .stat-number {
        font-size:1.5rem !important;
    }
}

@media screen and (max-width: 240px) {
  #map_object {
    height: 20%;
  }
}



#category_parent,  #battle_parent, #events_parent, #calender_parent, #calendar_parent, #event_parent, #stats_parent{border-radius: 5px;}
#flags_parent {border-radius: 5px;}




.flag_undertext {
    text-decoration: none; /* Ensures no underline for text inside links */
    margin: 0; /* Optional: Adds better spacing if needed */
	
	text-shadow: 
        -0.5px -0.5px 0 #fff, /* Top-left shadow */
         0.5px -0.5px 0 #fff, /* Top-right shadow */
        -0.5px  0.5px 0 #fff, /* Bottom-left shadow */
         0.5px  0.5px 0 #fff; /* Bottom-right shadow */
	font-weight:800;
	font-size:13px;
}


.category_img:hover{
border: 2px solid black; 	
}

.flag_img:hover{
filter: grayscale(80%);
}


#top-rated-content{
cursor:pointer;	
}

.definition{
text-shadow: 
        -0.5px -0.5px 0 #000, /* Top-left shadow */
         0.5px -0.5px 0 #000, /* Top-right shadow */
        -0.5px  0.5px 0 #000, /* Bottom-left shadow */
         0.5px  0.5px 0 #000; /* Bottom-right shadow */
		 font-size:0.9vw;
}

.battle_name{color:#fff;text-shadow:-1px 0 #000,0 2px #000,1px 0 #000,0 -1px #000}
.battle_text{font-size:18px}







.carousel_buttons_battles {
    position: absolute;
    bottom: 80px; /* Push buttons to the bottom */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
	z-index:99 !important;
}

.battles_next,
.battles_previous {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px; /* Define square size */
    height: 50px;
    background-color: #000; /* Black background */
    color: #fff; /* White icon color */
    border-radius: 5px; /* Add some rounded corners */
    border: 2px solid #000; /* Ensure the border stands out */
    margin: 0 10px; /* Add margin between buttons */
    transition: transform 0.3s, background-color 0.3s; /* Smooth hover effect */
	padding-top:2px;
}

.battles_previous:hover,
.battles_next:hover {
    background-color: #444; /* Change background on hover */
    transform: scale(1.1); /* Slight scaling effect */
}

.battle_date{font-size:36px;font-weight:500;color:#333;text-shadow:-1px 0 #000,0 2px #000,1px 0 #000,0 -1px #000}




.event-name{
font-size:22px;
font-weight:800;
}
.event-details{
font-size:15px;	
}








/* Calendar Container */
.calendar-container, .stats-container {
    padding: 1rem;
    background-color: #fff;
border:0;
    height: auto; 

}

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-table th {
    background-color: #f8f9fa; 
    font-weight: bold; /* Bold text */
    text-align: center; /* Center align text */

}


.calendar-header button {
    border: none;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calendar-header button:hover {
    background-color: #e2e6ea;
}

/* Calendar Table */
.calendar-table {
    width: 100%;
}

.table {
    table-layout: fixed;
    width: 100%;
    border: 1px solid #dee2e6;
    margin: 0;
}

.table th,
.table td {
    vertical-align: middle;
    height: 80px; /* Adjust cell height */
    font-size: 1.3rem;
    border: 1px solid #dee2e6;
    padding: 0;
}

.table td:hover {
    background-color: #f8f9fa;

}

/* Highlight Current Date */
.current-date {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .month-title {
        font-size: 1.2rem;
    }

    .table th,
    .table td {
        height: 60px;
     
    }
}

#calendar-month-year{
font-size: 24px;
text-shadow:2px 2px 4px rgba(0, 0, 0, 0.3);	
	
}

.main_background{
width:100%; overflow:hidden; height:582px; background-image:url('/images/logos/background_main.jpg'); background-repeat:no-repeat; background-size:cover;	
}



 .stat-number {
        font-size: 5rem;
        font-weight: bold;
color:#333;text-shadow:-1px 0 #000,0 2px #000,1px 0 #000,0 -1px #000;
        display: block;
    }

    .stats_item {
        font-size: 1.5rem;
        color: #6c757d;
    }

    .stats_id {
        border: none;
    }

    @media (max-width: 768px) {
        #stats_id {
        
            text-align: center;
            margin-bottom: 15px;
        }
    }
	
	#special_for_stats{
	background: 
            url('/images/logos/2.jpg') top left no-repeat, 
            url('/images/logos/1.jpg') top right no-repeat, 
            url('/images/logos/4.jpg') bottom left no-repeat, 
            url('/images/logos/3.jpg') bottom right no-repeat;
           background-size: 50% 50%;
	}
	
	#stats_parent,.stats-container {
    background-color: rgba(255, 255, 255, 0.4); /* Light transparent background */
}
#stats_parent .table {
    background-color: rgba(255, 255, 255, 0.4); /* Light transparent background */
    border-collapse: collapse; /* Ensure borders don't overlap */
}

#stats_parent .table th,
#stats_parent .table td {
    background-color: rgba(255, 255, 255, 0.4); /* Transparent cells */
    border: 1px solid #ddd; /* Optional: Add borders for better visibility */
}

.carousel-control-prev, .carousel-control-next{
z-index:99 !important;	
}




.countries_categories {
    background-image: url('/images/logos/countries_categories.jpg'); /* Replace with your image path */
    background-size: cover; /* Makes the image cover the entire area */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Ensures the image does not repeat */
    padding: 15px; /* Adjust padding for better spacing */
}


.main_page{
margin-top:-48px !important;	
}