html {
    font-size: 20px;
    width: 100%;
    height: 100%;
    font-family: "Times New Roman", Times, serif;
    background-color: #f8f8f8;

}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the body covers the full viewport height */
}


.logo {
    width: 200px;
    height: auto;
    margin-left: 3rem;
    margin-top: 2rem;
    opacity: 0;
    transform: scale(0.8);
    animation: logoFadeIn 1.5s ease-out forwards;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.topnav {
  background-color: #77d2f8;
  margin-top: 2rem;
  margin-left: 16.5rem;
  margin-right: 16.5rem;
  display: flex;
  justify-content: flex-start; /* Τα links πάνε αριστερά */
  align-items: center;         
  padding: 5px;
  border-radius: 8px;          
}

.topnav a {
  text-align: center;
  display: inline-block;
  color: #000000;
  padding: 10px 10px;
  text-decoration: none;
  font-size: 25px;
  font-weight: bold;
  font-family: 'Times New Roman', Times, serif;
  margin-left: 1rem;
  margin-right: 2rem;
  transition: background 0.3s ease;
}

.topnav a:hover {
  background-color: #fff;
  border-radius: 4px;
}


.topnav a:hover {
  background-color: #fff;
  border-radius: 4px;
}


span {
    color: rgb(218, 213, 213);
}

h1 {
    display: inline-block;
    width: fit-content;       /* Περιορίζει το πλάτος στο κείμενο */
    background-color: #d0d2d3;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 20px;
    margin-left: 10rem;
    margin-top: 2rem;
    border: 1px solid #000;
}



.contact-form {
    width: 40%;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
    margin-bottom: 15px;
}


input, textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #1e90ff;
    box-shadow: 0 0 5px rgba(30, 144, 255, 0.3);
    outline: none;
}

/* Textarea Styling */
textarea {
    resize: none;
    height: 120px;
}


button {
    width: 100%;
    padding: 12px 15px;
    background-color: #5cc2eb;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #b1b2b2;
    transform: scale(1.05);
}

button:active {
    transform: scale(1);
}

/* Footer Text */
.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #aaa;
}
form#contact img {
    display: block; /* Αλλάζει το στοιχείο σε block για εύκολη κεντροποίηση */
    margin: 0 auto; /* Κεντροποιεί οριζόντια */
    margin-bottom: 10px; /* Προσθέτει κενό χώρο από κάτω */
}
@media only screen and (max-width: 768px) and (orientation: portrait) {
    html {
    font-size: 16px;
    width: 100%;
    height: auto;
        }

    body {
        flex-direction: column;
        min-height: 100vh;
        background-color: #f9f9f9;
    }

    .logo {
        width: 150px;
        margin: 1rem auto;
        display: block;
    }

    .topnav {
        margin: 1rem auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 8px;
        border-radius: 6px;
        max-width: 80%;
    }

    .topnav a {
        font-size: 20px;
        padding: 8px 12px;
        margin: 0.3rem;
    }
    h1 {
        font-size: 18px;
        margin-left: 2rem;
        text-align: center;
        display: block;
    }

    .contact-form {
        width: 90%;
        margin: 1rem auto;
        padding: 15px;
        font-size: 14px;
    }

    input, textarea {
        font-size: 14px;
        padding: 8px 10px;
    }

    textarea {
        height: 100px;
    }

    button {
        font-size: 14px;
        padding: 10px;
    }

    form#contact img {
        width: 120px;
        margin-bottom: 8px;
    }

    .copyright {
        font-size: 11px;
        margin: 15px 0;
    }
}

@media only screen and (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
    html {
        font-size: 17px;
        width: 100%;
        height: auto;
    }

    body {
        flex-direction: column;
        min-height: 100vh;
        background-color: #f9f9f9;
        padding: 0;
        margin: 0;
    }

    .logo {
        width: 150px;
        margin: 0.5rem auto;
        display: block;
    }

    .topnav {
        margin: 0.5rem auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 10px;
        border-radius: 6px;
        max-width: 80%;
    }

    .topnav a {
        font-size: 18px;
        padding: 6px 10px;
        margin: 0.3rem;
    }

    h1 {
        font-size: 19px;
        margin-left: 5rem;
        text-align: center;
        display: block;
        width: fit-content;
        padding: 5px 8px;
    }

    .contact-form {
        width: 75%;
        margin: 1rem auto;
        padding: 20px;
        font-size: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    input, textarea {
        font-size: 15px;
        padding: 8px 10px;
        margin-bottom: 10px;
    }

    textarea {
        height: 110px;
    }

    button {
        font-size: 15px;
        padding: 12px;
    }

    form#contact img {
        width: 110px;
        margin: 0 auto 10px auto;
        display: block;
    }

    .copyright {
        font-size: 12px;
        margin: 15px 0;
        text-align: center;
    }
}
@media only screen and (min-width: 1600px) and (max-width: 1920px) {
    .logo {
        width: 250px;
        margin-left: 3rem;
        margin-top: 3rem;
    }
    .topnav {
      margin-top: 2rem;
      margin-left: 22rem;
      margin-right: 22rem;
      justify-content:center;         
    }
    .topnav a {
        font-size: 27px;
        margin: 0 2rem;
        text-align: center;
    }
    h1 {
        font-size: 30px;
        margin-left: 4rem;
        margin-top: 2rem;
    }

    .contact-form {
        width: 40%;
        margin: 3rem auto;
        padding: 30px;
        font-size: 18px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    input, textarea {
        font-size: 18px;
        padding: 12px 15px;
        margin-bottom: 15px;
    }

    textarea {
        height: 150px;
    }

    button {
        font-size: 18px;
        padding: 14px 18px;
    }

    form#contact img {
        width: 150px;
        margin: 0 auto 12px auto;
        display: block;
    }

    .copyright {
        font-size: 14px;
        margin: 20px 0;
        text-align: center;
    }
}
