body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #002140;
    color: #cccccc;
    margin: 0;
    padding: 0;
	text-align:center;
}

/* Site's name displayed at the top of the page, serving also as a link to Home Page */
.home-link-cont{
	margin-top:5px;
	margin-bottom:-1px
}

.home-link{
	color:white;
	text-decoration:none;
	font-size:2.5em;
	font-weight:bold;
}

/* Main container */
.all_cont {
    width: 90%;
    max-width: 920px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #003e40;
    padding: 30px 20px;
    border: 1px solid #86bbbd;
}

/* Menu bar - actually displayed as a footer, on the bottom */
.menu-cont {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0;
}

.menu-link {
    color: #86bbbd;
    text-decoration: none;
    font-size: 1em;
    padding: 10px 16px;
    background-color: #002140;
    border: 1px solid #86bbbd;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.menu-link:hover {
    background-color: #86bbbd;
    border-color: #002140;
    color: #002140;
}

/* Main title - each pages main title */
.header1 {
    font-size: 2.2em;
    margin: 30px 0 10px;
    text-align: center;
    color: #ffffff;
}

/* Section header */
.header2 {
    font-size: 1.5em;
    margin: 30px 0 20px;
    text-align: center;
    color: #ffffff;
}


/* Description box */
.text-box {
    background-color: #00292a;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.movie-info-link {
    color: #86bbbd;
    text-decoration: underline;
    font-weight: bold;
}

.movie-info-link:hover {
    text-decoration: none;
}

/* FAQ */
.faq {
  margin: 2em 0;
  font-family: Arial, sans-serif;
}

.faq-item {
  background: #043638;   /* dark teal, close to your screenshot */
  border: 1px solid #055052;
  border-radius: 8px;
  padding: 1em 1.2em;
  margin-bottom: 1em;
  transition: background 0.2s ease-in-out;
}

.faq-item:hover {
  background: #064d4f;
}

.faq-question {
  font-weight: bold;
  color: #e0f5f4;   /* light aqua for contrast */
  margin-bottom: 0.5em;
}

.faq-answer {
  color: #b5dada;   /* softer light teal for readability */
  line-height: 1.5;
}


/* Genre table - do not change the structure, only the visuals*/
table.cols3 {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.reco-td {
    height: 400px;
    position: relative;
    cursor: pointer;
	background-position: center;
    background-size: cover;
    border: 4px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
}

.reco-td:hover {
    transform: scale(1.02);
    z-index: 1;
}

.reco-title {
    width: 100%;
    height: 100%;
	overflow-wrap:anywhere;
	word-break:break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.4em;
    font-weight: bold;
    color: #fff;
    transition: background-color 0.3s;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.reco-title:hover {
    color: #ffffff;
    text-shadow: 
        0 0 5px #000,
        0 0 10px #000,
        0 0 15px #000,
        1px 1px 2px #000;
    font-size: 1.5em;
    background-color: rgba(0, 0, 0, 0.3);
}

.td-a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Elements that display list of movies, also do not change the mechanics here */

.reco-container1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top:1em;
  margin-bottom:1em;
}

.reco-td1 {
  flex: 0 0 32%;
  max-width: 32%;
  height: 400px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.td-a1 {
  text-decoration: none;
  color: inherit;
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 0 5px black;
}

.td-a1:hover {
  background: rgba(0, 0, 0, 0.4);
  text-shadow: 0 0 5px white;
}

.reco-desc1 {
  position: relative;
  z-index: 1;
  padding: 5px;
  font-size: 14px;
  margin-top: 5px;
  background: rgba(0, 0, 0, 0.6);
}

/* Responsive for mobile: 2 per row */
@media (max-width: 768px) {
  .reco-td1 {
    flex: 0 0 48%;
    max-width: 48%;
  }
}

/* List of links to other categories */
.keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 20px;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 100%;
}

.keywords-link {
	display: inline-block;
    margin: 0;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    padding: 10px 16px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #86bbbd;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.keywords-link:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: #002140;
    color: #ffffff;
	font-weight:bold;
}

/* Footer */
.footer-cont {
    text-align: center;
    padding: 10px;
    margin-top: 40px;
    font-size: 0.85em;
    color: #888;
}

/* Movie poster styling */
.movie-poster {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Movie description styling */
.movie-desc {
    margin-top: 20px;
    padding: 20px;
    font-size: 1em;
    line-height: 1.6;
}
