/* Κεντράρισμα σελίδας */
body {
    display: flex;
    justify-content: center;   /* οριζόντια στο κέντρο */
    align-items: center;       /* κάθετα στο κέντρο */
    min-height: 100vh;         /* γεμίζει όλο το ύψος της οθόνης */
    margin: 0;
    background: #f4f6f9;       /* απαλό background */
    font-family: "Poppins", sans-serif;
    color: #2c3e50;
}

.logo{
  width: 200px;
  margin: 8px 0 12px 0;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp .6s ease-out .05s forwards;
}

.login, .register {
  background-color: rgb(178, 178, 177);
  padding: 10px;
  font-size: 18px;
  border: solid black 1px;
  color: #111;
  text-decoration: none;
  border-radius: 5px;
  width: fit-content;
}
.login {
  position: absolute;
  right: 9rem;
  top: 3rem;
}

.dropbutn {
    background-color: #20ADD3;
    color: rgb(0, 0, 0);
    padding: 20px;
    font-size: 20px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bolder;
    border: 2px solid #000000;
    text-align: center;
    margin-top:10px;
    
}

.dropdn {
    position:absolute;
    display: inline-block;
    top: 3%;
    right:3%;
}

.dropdn-content {
    font-size: 14px;
    display: none;
    position: absolute;
    background-color: #c8f1f4;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    font-weight: bold; 

}

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

.dropdn-content a:hover {
    background-color: #BE96EB;
}

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

.dropdn:hover .dropbutn {
    background-color: #BE96EB;
}

.h3 {
  position: absolute;
  right: 2.4rem;
  top: 5rem;
  font-size: 20px;
  border-radius: 3px;
  width: fit-content;

}
.register {
  position: absolute;
  right: 3rem;
  top: 3rem;
}

.login:hover, .register:hover {
  background-color: #dfdede;
}

/* Κάρτα μαθήματος */
.lesson-info {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Τίτλος */
.course-title {
    font-size: 1.9rem;    /* λίγο μεγαλύτερο */
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
    margin-left: 0.5rem;   /* κεντραρισμένος τίτλος */
}

/* Εικόνα */
.course-img {
    width: 50%;              /* πιο μικρή, όχι full width */
    height: auto;
    border-radius: 12px;
    margin-left:auto;
    margin-right: auto;
    margin-bottom: 2rem;
    margin-top: 2rem;  /* στο κέντρο με περιθώριο κάτω */
    object-fit: cover;
    display: block;
    
}

/* Form group */
.form-group {
    background: #f9fafc;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    font-size: 1.05rem;   /* μεγαλύτερα γράμματα */
    line-height: 1.5;
}

/* Box κάτω για τιμή + κουμπί */
.bottom-box {
    margin-top: auto;
    display: flex;
    justify-content: space-between;  /* τιμή αριστερά, κουμπί δεξιά */
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Τιμή */
.price {
    font-size: 1.3rem;  /* λίγο πιο μεγάλη */
    font-weight: bold;
    color: #27ae60;
}

/* Κουμπί */
.buy-btn {
    padding: 14px 24px;
    font-size: 1.1rem;   /* μεγαλύτερο */
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
}
.buy-btn:hover {
    background: linear-gradient(135deg, #219150, #27ae60);
    transform: translateY(-2px);
}
