
main {
    padding: 20px;
    padding-left: 10%; 
    padding-right: 10%; 
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px; 
}


.year-buttons-container {
    display: flex;
    justify-content: center;
    margin-top: 10px; 
}


.year-button {
    background-color: #4CAF50; 
    color: white;
    padding: 10px 20px;
    margin: 0 10px; 
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.year-button:hover {
    background-color: #45a049; 
}

.year-button.disabled {
    background-color: #808080; 
    cursor: not-allowed;
}


.page-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.stats-section .last-film-box {
    color: #f1f1f1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.last-film-box:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); 
}

.stats-box {
    background-color: #1c1c1c;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
}

.stats-box:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); 
}

.stats-box p {
    font-size: 18px;
    font-weight: bold;
    margin: 20px auto;
    color: #f1f1f1;
}


.year-box {
    width: 45%;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden; 
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #444;
    color: white;
    font-size: 18px;
    padding: 15px;
}

tr {
    transition: background-color 0.3s ease;
}

tr:hover {
    background-color: #d1cdcd;
}


.marvel-film {
    background-color: #f99;
}

.marvel-film:hover {
    background-color: rgb(250, 104, 104);
}

.animation-film {
    background-color: pink; 
}

.animation-film:hover {
    background-color: rgb(253, 123, 145); 
}


.total {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.total-stats-box {
    text-align: center;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.stats-box .total {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    font-weight: bold;
}

.total-stats-box h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.total-stats-box p {
    font-size: 18px;
    color: #cccccc;
}


.total-cinema, .total-economies {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}


.last-film-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 15px;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.year-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.last-film-box img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}


.hover-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  background: white;
  max-height: 6em;
  overflow-y: auto;
  padding: 0.5em 1em;
  box-shadow: inset 0 5px 5px -5px rgba(0, 0, 0, 0.1);
}

.stats-card.hoverable-card {
  position: relative;
  overflow: hidden;
}


#films-same-day-list {
  margin: 0;
  padding-left: 1.2em;
  list-style-type: disc;
  font-size: 0.9em;
}

#films-same-day-list li {
  list-style-position: inside;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}




.podium {
    color: black;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 20px;
    margin-bottom: 20px;
}

.podium-box {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.podium-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.podium-first {
    width: 150px;
    height: 200px;
    background-color: #ffdd57;
    font-weight: bold;
}

.podium-second {
    width: 120px;
    height: 150px;
    background-color: #c0c0c0;
}

.podium-third {
    width: 120px;
    height: 130px;
    background-color: #cd7f32;
}


.page-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
    margin-bottom: 30px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    max-width: 1200px; 
}

.stats-card {
    width: 100%;
    max-width: 250px;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: auto; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center; 
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stats-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #4CAF50;
}

.stats-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.stats-value {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stats-detail {
    font-size: 0.9rem;
    margin-bottom: 5px; 
}

.stats-comparatif {
    font-size: 0.9rem;
    margin-top: 15px; 
}

.stats-comparatif.positive {
    color: #4CAF50; 
}

.stats-comparatif.negative {
    color: #f44336; 
}

.stats-comparatif.equal {
    color: #808080; 
}


.country-card {
    background-size: cover;
    background-position: center;
    color: #f1f1f1;
}

.hoverable-card .hover-content {
    display: none;
    position: absolute;
    bottom: -10px;
    left: 0;
    background: rgba(255, 255, 255, 0.95); 
    padding: 10px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: left; 
    z-index: 10; 
}

.hoverable-card:hover .hover-content {
    display: block;
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.search-bar {
    width: 60%;
    padding: 15px;
    font-size: 16px;
    border-radius: 25px;
    border: 1px solid #ccc;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s;
    margin-right: 15px;
}

.search-bar:focus {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    outline: none;
}

.film-count {
    font-size: 16px;
    font-weight: bold;
}
