.logo {
    margin-left: 3rem;
    margin-top: 3rem;
    width: 250px;
    height: auto;

    /* animation */
    opacity: 0;
    transform: scale(0.8);
    animation: logoIntro 1.5s ease-out forwards;
}

@keyframes logoIntro {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.image {
  display: block;
  width: 300px;       /* σταθερό πλάτος, μπορείς να το αλλάξεις */
  height: auto;
  margin-top: 0%;
  margin-left: 3rem;
  border-radius: 10px;
  border: 2px solid rgb(121, 119, 119);
}

.title {
    margin-left: 3rem;
    margin-top: 4rem;
    font-size: 2rem;
    font-family: 'Times New Roman', Times, serif;
    background-color: lightblue;
    padding: 1rem;
    width: fit-content;
    border-radius: 5px;
    transform: skewY(5deg);
    border:black solid 0.5px;

    /* animation */
    animation: slideIn 1s ease-out forwards;
    
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


hr {
  background-color: black;
  height: 0.1rem;
  margin-left: 3rem;
  margin-right: 3rem;
  border: none;

  animation: growLine 1s ease-out forwards;
}

@keyframes growLine {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: calc(100% - 6rem); /* αφήνει τα margins */
    opacity: 1;
  }
}

.topics {
    margin-top: 4rem;
    margin-left: 3rem;
    font-size: 35px;
}
.topics1 {
    margin-top: 7rem;
    margin-left: 3rem;
    font-size: 35px;
}

.main_card {
    margin-top: 2rem;
    display: flex;
    gap: 4.5rem; /* Απόσταση ανάμεσα στις κάρτες */
    flex-wrap: wrap; /* Να πάνε σε νέα γραμμή αν δεν χωράνε */
    justify-content: left; /* Κέντρο στην οριζόντια διάταξη */
    margin-left: 3rem;
}

.card {
    width: 300px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* μικρή ανύψωση στο hover */
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card h3 {
    margin-left: 5px;
    margin-right: 5px;
    font-size: 1.2rem;
    color: #333;
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block; /* κάνει όλο το link να πιάνει το χώρο της κάρτας */
}

.tooltip {
  position: fixed;          /* easy to place near cursor */
  max-width: 260px;
  background: #fff;
  border: 1px solid #d0d7de;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  font-size: 0.92rem;
  line-height: 1.35;
  color: #111;
  z-index: 1000;
  pointer-events: none;     /* don’t steal the hover */
}

.has-tooltip {
    font-size: 1rem;              /* λίγο μικρότερο μέγεθος */
    color: #666;
    padding: 0 0.57rem 0.57rem;     /* λιγότερο padding */
    text-align: left;
    text-justify: inter-word;
    word-spacing: 0px;            /* πιο «κολλημένες» οι λέξεις */
    letter-spacing: -0.65px;       /* μειώνει το κενό ανάμεσα στα γράμματα */
    line-height: 1.2;             /* μικρότερο ύψος γραμμής */
}

.p {
  display:flex;
  align-items:flex-start; 
  gap: 1.5rem;
  margin-top: 3rem;
  font-size: 1.5rem;
  line-height: 1.6;
}

.dropbutn {
  background-color: lightgreen;
  padding: 10px;
  color: #111;
  border-radius: 5px;
}

.toolbar {
  display: flex;
  align-items: center;
}

.dropdn {
  position: relative;  /* πολύ σημαντικό για να “δέσει” το absolute */
  margin-left: 3rem;
  margin-right: auto;
}

.dropdn-content {
  font-size: 14px;
  display: none;
  position: absolute;
  top: 100%;        
  left: 0;
  background-color: #ffffff;  
  width: max-content;   /* 👉 προσαρμόζεται στο μεγαλύτερο κείμενο */
  white-space: nowrap;  /* 👉 όλα σε μια ευθεία, δεν τυλίγονται */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 9999;    
  font-weight: bold;
}



.dropdn-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdn-content a:hover {
  background-color: #e5e7e5;  /* πιο έντονο πράσινο στο hover */
}

.dropdn:hover .dropdn-content {
  display: block;
}

