nav {
  display: flex;          
  justify-content: center;
  background-color: #007373;  
  padding: 11px 0;         
}

nav ul {
  list-style-type: none;
  margin: 0;       
  padding: 0;  
}

nav a {
  color: #ffffff;   
  font-size: larger; 
  text-decoration: none;
  padding: 10px 20px;    
  display: inline-block; 
  margin: 0 5px;        
  background-color: #0a9396; 
  border-radius: 50px;    
  transition: background-color 0.3s;
  font-weight: bold;
}

nav a:hover {
  background-color: #94d2bd; 
}

footer {
  text-align: center;   
  background-color: #007373; 
  color: #333;            
  bottom: 0;
  width: 100%;
  margin-top: 40px;
  padding: 11px;
  font-size: 1rem;
  width: 100%;
  position: relative;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color:#333;
  margin: 0;                    
  padding: 0;                    
  background-color: #caf0f8;
}

/*EIKONA*/ 
body.index section img {   
  min-width: 1349px;
  max-height: 330px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: auto;
}

body.index main section {
  text-align: center; 
  padding: 20px; 
}

body.index section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

body.index section p {
  font-size: 1.3rem;
  line-height: 1.6; 
  color: #555;
  margin-bottom: 40px;
  padding-left: 100px;
  padding-right: 100px;
}

body.history main {
  padding-left: 100px;
  padding-right: 100px;
}

/*STYLE GIA TITLO*/
h1 {
  font-size: 3rem;
  color: #333;
  text-transform: uppercase;
  text-align: center;
}

/*STYLE GIA SECTIONS*/
body.history main section {
  margin-bottom: 80px;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 1px;
  padding-bottom: 10px;
  background-color: #ffffff;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.history main section h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
  border-bottom: 5px solid #007373; 
  padding-bottom: 5px;
}

body.history main section ul li {
  margin-bottom: 10px;
  padding: 10px;
  font-size: 1.3rem;
}

/*STYLE GIA EIKONES*/
body.history main section img {
  display: block;
  margin: 20px auto;
  max-width: 400px;
  max-height: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.history main section p {
 font-size: 1.3rem;
}

body.history main section a {
  color: #055049;
  text-decoration: none;
  font-weight: bold;
}

body.history main section a:hover {
  text-decoration: underline;
  color: #333;
}

body.rules main section {
  margin: 40px auto;
  max-width: 900px;
  padding-right: 40px;
  padding-left: 40px;
  padding-top: 1px;
  padding-bottom: 10px;
  background-color: #ffffff; 
  border-radius: 20px; 
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); 
}

body.rules main section h2 {
  font-size: 2rem;
  color: #333;
  font-weight: bold;
  margin-bottom: 20px;
}

body.rules main section ul {
  list-style-type: none;
  padding: 0;
}

body.rules main section ul li {
  margin-bottom: 15px;
  padding: 12px;
  background-color: #caf0f886; 
  border-left: 5px solid #007373; 
  border-radius: 10px;
  font-size: 1.3rem;
}

body.rules main section a {
  color: #005f73;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  position: relative;
}

/*STYLE GIA ΤΑ VIDEO*/
iframe {
  display: block;
  margin: 50px auto;
  max-width: 100%;
  width: 800px;
  height: 450px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

iframe:hover {
  transform: scale(1.05);
}

body.records tbody tr {
    background-color: #f2f2f2; 
}

.styled-table {
  width: 80%;
  margin: 0 auto;
  border-collapse: collapse;
  border: 3px solid #007373;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  margin-bottom: 20px; 
}

.styled-table th, .styled-table td {
  padding: 12px 15px; 
  text-align: left; 
  border-left: 3px solid #007373;
  border-top: 3px solid #007373;
}

.styled-table th {
  background-color: #007373; 
  color: #ffffff; 
  font-weight: bold;
}

.styled-table td {
  background-color: #ffffff; 
  border: 3px solid #007373; 
}

.styled-table tr:hover td {
  background-color: #cecece;
}

.athletes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.athletes-container .athlete:nth-child(7) .athlete-image {
  object-position: right center; 
}

.athlete {
  position: relative;  
  text-align: center;
  width: 220px;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
}

.athlete-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 0.3s ease; 
}

.athlete-image-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  padding: 15px 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;  
  transition: opacity 0.3s ease, visibility 0.3s ease; 
  max-width: 80%;
  width: auto;
}

.athlete-image:hover {
  opacity: 0.3;
}

.athlete-image:hover + .athlete-image-info {
  opacity: 1;
  visibility: visible;
}

h3 {
  font-size: 16px;
  margin-top: 10px;
  font-family: Arial, sans-serif;
  z-index: 1;
}

body.funfacts {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.funfacts footer {
  position: relative;
  margin-top: auto;
}

body.funfacts main {
  font-size: 1.3rem;
  line-height: 1.6; 
  color: #555;
  padding-left: 100px;
  padding-right: 100px;
}

body.funfacts p {
  padding-left: 100px;
  padding-right: 100px;
}

body.funfacts iframe {
  width: 500px; 
  height: 280px; 
  margin: 30px auto; 
}

body.funfacts img {
  width: 80%;
  max-width: 500px; 
  height: auto; 
  border-radius: 15px; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;  
}

body.funfacts img:hover {
  transform: scale(1.05);
}

.carousel {
  position: relative;
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  text-align: center;
  position: relative;
}

.carousel-slide img, .carousel-slide video {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
}

.carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 5px;
  font-size: 50px;
  z-index: 10;
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

body.contact table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  text-align: left;
  border: 1px solid #010239;
  border-radius: 8px #010239;
  overflow: hidden;
}

body.contact tbody tr {
  background-color: #f2f2f2; 
}

body.contact form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

body.contact form label {
  margin-top: 10px;
}

body.contact form input, form textarea, form button {
  margin-top: 5px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

body.contact form button {
  margin-top: 20px;
  background: #0d8187;
  color: white;
  border: none;
  cursor: pointer;
}

body.contact form button:hover {
  background: #12a6aeac;
}

body.contact main section {
  text-align: center; 
  padding: 20px; 
}

body.contact main  {
  font-size: 1.3rem;
  line-height: 1.6; 
  color: #555;
  margin-bottom: 40px;
  padding-left: 100px;
  padding-right: 100px;
}

body.contact ul {
  list-style-type: none; 
  padding: 0;
  margin: 0;
}

body.contact main section a {
  color: #333;
  font-weight: bold;
  text-decoration: none;
}

body.contact main section a:hover {
  color: #055049;
  text-decoration: underline;
}

body.quiz main {
  padding-left: 200px;
  padding-right: 200px;
  margin-bottom: 50px;
  min-height: 300px;
}
