/* Basic Styles */
html {
    font-family: "Lucida Grande", "Segoe UI", sans-serif;
    color: #111;
    background: #EEE;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    margin: 20px;
    padding: 0;
}

a {
    color: #007BFF;
    text-decoration: none; /* Removes the underline from all links */
}

a:visited {
    color: #444;
    text-decoration: none; /* Ensures underline is removed for visited links as well */
}

a:hover {
    color: #0056b3;
    text-decoration: none; /* Ensures underline is removed for visited links as well */
}

#page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.container {
    display: flex;
    gap: 20px; /* Keeps spacing between elements */
}

.full-width {
    width: 100%;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.roundcorners {
    width: 100%;
    margin: 0 auto 10px;
    padding: 10px;
}

#header,
#mainleft,
#mainright,
#maininfo,
#mainstore,
#mainnews {
    border-radius: 11px;
    margin-bottom: 20px;
    padding: 20px;
    box-sizing: border-box;
}

#header {
    background-color: #fff;
    position: relative;
	width: 100%;
}

#mainleft {
    background-color: #fff;
    flex: 1 1 70%;
    position: relative;
    max-width: 100%;
}

#mainright {
    background-color: #fff;
    max-width: 30%;
    position: relative;
    z-index: 1; /* Ensures content is above background */
}

#maininfo {
    background-color: #fff;
    flex: 1 1 100%;
    position: relative;
    max-width: 100%;
}
		
#mainnews {
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
}

.mainnews_article{
    background-color: #fff;
    flex: 1 1 calc(20% - 10px); 
	margin-bottom: 20px; 
	box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
	padding: 20px; 
	border-radius: 8px; 
	display: flex; 
	flex-direction: column;
    width: 100%;
}

.mainstore{
    background-color: #fff;
    flex: 1 1 calc(20% - 10px); 
	margin-bottom: 20px; 
	box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
	padding: 20px; 
	border-radius: 8px; 
	display: flex; 
	flex-direction: column;
    width: 100%;
}

.article-container {
    background-color: #fff;

    border-radius: 11px;
    margin-bottom: 20px;
    box-sizing: border-box;

    text-align: left;
    padding: 20px;
    max-width: 100%;
    margin: auto;
}
	
.left_box_news {
    background-color: #fff;
    flex: 1 1 calc(20% - 10px);
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .left_box_news,
    .mainstore,
    .mainnews_article {
        flex: 1 1 100%;
    }
}

.left_search_news {
    flex: 1 1 calc(50% - 20px);
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    width: calc(50% - 20px);
    background-color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination a {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 5px;
	background-color: #f0f0f0; /* Background color for inactive links */
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* Other Style */
#cornernews {
    background-color: #eee;
    border: 2px solid #2c8fff;
    border-radius: 1em 4em 1em 1em;
}

#cornernews .news-item {
  background-color: #ff0072;      /* Background color */
  border: 2px solid #ff0072;      
  border-radius: 1em 4em 1em 1em; /* Round corners */
  padding: 20px;                  /* Add padding for content */
  margin-bottom: 20px;            /* Add bottom margin for spacing */
}

#video-container {

    padding: 20px; /* Adds space around videos inside the cornernews container */
}

.cloudtext {
    padding: 10px;
}

.cloudtext p {
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.cloudtext ul {
    list-style: none;
    padding: 0;
}

.cloudtext ul li {
    margin: 5px 0;
}

.cloudtext ul li a {
    text-decoration: none;
    color: #669;
    font-weight: bold;
}

.cloudtext ul li a:hover {
    color: #000;
}

/* Footer Style */
#mainfooter {
    background-color: #fff;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 11px;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    color: #000; /* text color for the footer */
    font-weight: bold;
}

#mainfooter .footer-content {
    margin: 50px auto; /* 50px top margin, auto to center horizontally */
    padding-left: 100px; /* Left padding */
    padding-right: 100px; /* Right padding */
}

/* Structure with Flexbox */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

/* Text and titles */
.footer-section .title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

/* Link list */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

/* Specific styles for links in the footer */
.footer-link,
.footer-link:visited {
    text-decoration: none;
    font-weight: bold;
    color: #007BFF !important; /* text color for links visited*/
}

.footer-link:hover {
    color: #0056b3 !important; /* Text color on hover */
}

/* Avatar */
.avatar img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
}

/* Responsiveness */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
    }
}

/* Google Translate */
#google_translate_element {
    margin-top: 10px;
}

.goog-te-combo {
    border: 1px solid #ccc;
    padding: 5px;
    font-size: 14px;
}

/* Responsività per schermi piccoli */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Cambia la disposizione da orizzontale a verticale */
    }

    #mainleft {
        flex: 1 1 100%; /* Occupa il 100% della larghezza */
        max-width: 100%;
    }

    #mainright {
        flex: 1 1 100%; /* Occupa il 100% della larghezza */
        max-width: 100%;
        margin-top: 20px; /* Aggiungi un margine superiore per separare le sezioni */
    }
}
