@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans+Extra+Condensed:ital,wght@0,1..1000;1,1..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* Βασικό στυλ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color:rgb(245, 245, 245);
}

/* .cut {
    height: 10px;
} */

a, a:hover  {
    text-decoration: none;
}

.left_part a:hover p, .left_part a:hover h1 {
    color: black;
    text-decoration: none;
    text-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

/* Header - Starts */
header {
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    background-color:rgb(245, 245, 245);
}

.container1 {
    display:grid;
    align-items: center; 
    justify-content: center;
    align-content: center;
    text-align: center;
    grid-template-columns: 1fr 1fr;
    column-gap: 10%;
    margin: auto;
    padding-top: 10px;
    padding-bottom: 20px;
}

.container1 h1 {
    font-size: 350%;
    margin-bottom: 2.5px;
    color: #333;
    text-decoration: none;
}

.container1 p {
    margin-top: 0;
    font-weight: 400;
    font-size: 150%;
    color: #333;
    text-decoration: none;
}

header button {
    border: none;
    padding: 10px 35px;
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    font-size: 125%;
    background-color: #ddd;
    color: rgb(50, 50, 50);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-left: 30px;
    border-radius: 5px;
}

header button:hover {
    background-color: rgb(50, 50, 50);
    color: white;
}

header .button_on {
    background-color: rgb(50, 50, 50);
    color: white;
}

.right_part button {
    font-size: 22.5px;
}

/*  */
.choose {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    column-gap: 2%;
    justify-content: center;
    align-content: center;
    max-width: 1200px;
    margin: 0 auto; /* Κεντράρισμα οριζόντια */
    padding: 20px;
}

.p1, .p2, .p3, .p4, .p5 {
    aspect-ratio: 4/3;
    color: white;
    /* height: 27.5vh; */
    background-position:center;
    background-repeat: no-repeat;
    align-items: center; 
    justify-content: center;
    justify-items: center;
    align-content: center;
    text-align: center;
    background-size: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease; /* Ομαλή μετάβαση */
    font-family: "Sofia Sans Extra Condensed", sans-serif;
    font-size: 115%;
    letter-spacing: 1.5px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
}

.p1:hover, .p2:hover, .p3:hover, .p4:hover, .p5:hover {
    transform: scale(1.1); /* Μεγέθυνση κατά 10% */
}

a:link, a:visited, a:active{ color:inherit; text-decoration: none; }


.p1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/TBR_entry2.1.jpg");
}

.p2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/carte-postale.jpg");
}

.p3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/papadia_ww2.jpg");
}

.p4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/TBR_recon.jpg");
}

.p5 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/BG1.jpg");
}

@media (max-width: 1080px) {
    .choose {
        display: block;
        max-width: 650px;
    }

    .p1, .p2, .p3, .p4, .p5 {
        aspect-ratio: 2/1;
    }

    .p1, .p2, .p3, .p4 {
        margin-bottom: 4%;
    }
}

@media (max-width: 400px) {
    .p1 h1, .p2 h1, .p3 h1, .p4 h1, .p5 h1 {
        transform: scale(0.6);
        transition: 0.3s ease-in-out;
    }
}

/* Ορισμός του φόντου */
.hero-container, .hero-container1, .hero-container2, .hero-container3, .hero-container4 {
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-size: 100% 100%; Πλάτος 100%, Ύψος 75,% */
    background-repeat:no-repeat; /* Για αποφυγή επανάληψης της εικόνας */
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 75vh;
  }

  .hero-container {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/TBR_entry2.1.jpg");
  }

  .hero-container1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/carte-postale.jpg");
  }

  .hero-container2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/italy_sidirodromos_5.jpg");
  }

  .hero-container3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/colorized_377_500_1l4sgz4oup_[kolorize.cc].jpg");
  }

  .hero-container4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/BG1.jpg");
  }

  
  /* Στυλ για το κείμενο */
  .hero-text {
    max-width: 960px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
    color: rgb(245, 245, 245);
    font-family: "Sofia Sans Extra Condensed", sans-serif;
  }
 /* Στοίιχιση Τίτλου */
  .hero-text h1 {
    font-size: 550%;
    letter-spacing: 1.5px;
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 0;
    margin-top: 0;
    line-height: 110%;
  }
  
 /* Στοίχιση παραγράφων */
  .hero-text p {
    text-align: justify;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    margin-bottom: 20px;
    border-bottom: 0;
    padding-bottom: 0;
  }

/* Main content */
main {
    padding: 20px;
    /* background: #f0f4f8; */
    background-image: url(images/trachina_blur.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /* border-radius: 15px; */
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.container h1 {
    font-size: 2em;
    color: #333;
}

.container p {
    justify-content: center;
    font-size: 1em;
    color: #666;
    line-height: 1.6em;
    text-align: justify;
}

.left, .right {
    padding: 30px;
}

.right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container a {
    color: blue;
}

.container a:hover {
    text-decoration: underline;
    color: red;
}

.container a:active {
    color:red;
}

.my-button {
    font-size: 1.2em;
    background-color: black;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 15px;
}

.my-button:hover {
    background-color: white;
    color: black;
    border: 1px solid black;
}

/* Footer */
footer {
    background-color:rgb(245, 245, 245);
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    color:#333;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-icons a {
    color: #333;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: black;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

/* Κεντρικό κοντέινερ */
.container2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
}

/* Στυλ πίνακα */
table {
    width: 100%;
    /* border-collapse: collapse; */
    margin: 0;
    font-family: 'Arial', sans-serif;
    border: black 10px;
}

th, td {
    padding: 12px 16px;
    text-align: center;
    font-size: 16px;
    color: #333;
}

/* Στυλ επικεφαλίδων */
th {
    background-color: #f4f4f4;
    color: #555;
    font-weight: bold;
    text-transform: uppercase;
}

/* Στυλ γραμμών πίνακα */
/* tr:nth-child(even) {
    background-color: #f9f9f9;
} */

tbody tr:hover {
    background-color: #e0f7fa;
    cursor: pointer;
}

/* Στυλ για την εικόνα και την περιγραφή */
.container2 img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    justify-content: center;
    align-items: center;
    align-content: center;
    justify-items: center;
}

.container2 img:hover {
    transform: scale(1.05);
}

.description-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

#description {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 5px;
}

/* Responsive design */
@media (max-width: 1325px) {
    .container1 {
        display: block;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .container {
        display: flex; 
        flex-direction: column;
        margin: 30px;
    }

    .container iframe {
        aspect-ratio: 1/1;
    }

    header button {
        margin: 10px 0;
    }

    .right_part button {
        font-size: 20px;
    }
}

@media (max-width: 750px) {
    .hero-text {
        width:85%;
    }
    
    main {
        padding: 10px;
    }

    .container {
        margin: 0px;
        margin-bottom: 10px;
    }

    .container .right {
        padding: 0px;
        line-height: 0px;
    }

@media (max-width: 500px) {
    nav {
        /* display: flex; 
        flex-direction: column;
        text-align: center; */
        display: block;
    }
    
    .hero-text {
        max-height: 700px;
        width: 100%;
        padding: 20px;
    }

    .hero-text h1 {
        font-size: 330%;
    }

    .hero-text p {
        font-size: 15.6px;
    }
    .container p {
        font-size: 75%
    }

    .container h1 {
        font-size: 150%;
    }

    .hero-container {
        height: 450px;
    }

    .left {
        padding: 10px 20px;
    }

    .my-button {
        font-size: 0.9em;
        background-color: black;
        color: white;
        padding: 8px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
        margin-top: 5px;
        margin-bottom: 5px;
        border: 1px solid black;
    }
	
	.right_part button {
        padding: 10px 20px;
    }
}}
