/* ---------------------------------- */
/* BASIC SETUP */
/* ---------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:ital,wght@0,300;0,700;1,300&display=swap");

:root {
  --green: #6d8c3c;
  --orange: #f5821f;
  --dark-grey: #181818;
  --medium-grey: #333;
  --light-grey: #ddd;
  --box-shadow-1: 10px 10px 5px #aaaaaa;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

*:focus {
  outline: none;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}
@media only screen and (max-width: 1200px) {
  html {
    font-size: 56.25%;
  }
}

body {
  background-color: white;
  color: var(--dark-grey);
  font-family: "Open Sans", sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

/* ---------------------------------- */
/* REUSABLE COMPONENTS */
/* ---------------------------------- */

.section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--light-grey);
  transition: transform 1s, opacity 1s;
}

.section--hidden {
  opacity: 0;
  transform: translateY(8rem);
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 3.8rem;
  font-weight: 200;
  margin-top: 1rem;
  text-transform: uppercase;
}

/* Line between h2 and text */
h2:after {
  display: block;
  height: 2px;
  background-color: var(--green);
  content: " ";
  width: 10rem;
  margin: 0 auto;
  margin-top: 2rem;
}

ul {
  list-style: none;
}

.green {
  color: var(--green);
}

.orange {
  color: var(--orange);
}

.grey {
  color: var(--dark-grey);
}
/* ---------------------------------- */
/* HEADER */
/* ---------------------------------- */
header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../photos/img52.jpg");
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 9rem;
  width: 100%;
  padding: 0 2rem;
  z-index: 100;
}

.nav.sticky {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.7);
}

.nav__logo {
  width: auto;
  max-height: 8rem;
  transition: all 0.4s;
  border: 1px solid var(--dark-grey);
}

.nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  list-style: none;
}

.nav__link:link,
.nav__link:visited {
  color: white;
  text-decoration: none;
  font-size: 1.8rem;
  /* border-bottom: 2px solid transparent; */
  display: inline-block;
  transition: all 0.4s;
  margin: 0 1rem;
}

/* HAMBURGER MENU - OVERLAY */

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
  color: #f1f1f1;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

.nav__hamburger {
  display: none;
  font-size: 3rem;
  cursor: pointer;
  text-align: right;
  color: white;
}

@media only screen and (max-width: 950px) {
  .nav__item {
    padding: 0 0.6rem;
  }
}
@media only screen and (max-width: 910px) {
  .nav__item {
    display: none;
  }

  .nav__hamburger {
    display: block;
  }

  .overlay a {
    font-size: 20px;
  }
  .overlay .nav__curtain--closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

.hero {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.hero__heading {
  letter-spacing: 1rem;
  font-size: 2rem;
}

.hero__heading h1 {
  margin: 2rem 0;
}

.hero__buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin-top: 6rem;
}

@media only screen and (max-width: 600px) {
  .hero__buttons {
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 0;
  }
  .hero__btn {
    margin-top: 1rem;
  }
}

.hero__btn {
  background-color: var(--green);
  border: none;
  padding: 1rem 3rem;
  color: white;
  text-decoration: none;
  font-size: 1.6rem;
  letter-spacing: 1px;
  font-weight: 300;
  transition: all 0.4s;
}

.hero__btn:hover {
  background-color: var(--medium-grey);
}

/* Mobile nav */

.mobile-nav-icon {
  float: right;
  margin-top: 0.3rem;
  cursor: pointer;
  display: none;
}

.mobile-nav-icon i {
  font-size: 3rem;
  color: #fff;
}

/* ---------------------------------- */
/* TO ΦΡΟΝΤΙΣΤΗΡΙΟ */
/* ---------------------------------- */

#whoweare {
  background-color: #f0f0f0;
  color: black;
}

.whoweare__container {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
}

.whoweare__item {
  flex: 0 0 50%;
  line-height: 4rem;
  padding: 3rem;
}

.whoweare__item li {
  display: flex;
  align-items: center;
}

.whoweare__icon {
  width: 3rem;
  color: var(--green);
  font-size: 4rem;
  margin-right: 1rem;
}

/* ---------------------------------- */
/* ΠΡΟΓΡΑΜΜΑΤΑ ΣΠΟΥΔΩΝ */
/* ---------------------------------- */

#programmata {
  background-color: #c3c3c3;
}

.programmata__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40rem, 1fr));
  width: 100%;
}

.programmata__item {
  box-shadow: 0 1.5rem 4rem rgba(black, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  flex: 0 0 30%;
  margin: 1rem;
  transition: all 0.3s;
}

.programmata__item:hover {
  transform: scale(1.03);
  box-shadow: 0 3rem 6rem rgba(black, 0.3);
}

.programmata__title {
  padding: 1rem 2rem;
  background-color: var(--green);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  box-shadow: 0 1px 4px #999;
  font-size: 1.8rem;
  color: white;
}

.programmata__content {
  font-size: 1.4rem;
  background-color: #fff;
  padding: 1rem;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  flex: 1;
}

.programmata__lesson {
  display: block;
}

/* ---------------------------------- */
/* ΣΕΠ */
/* ---------------------------------- */

#sep {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("img/bg-sep.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
}

.sep__container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  width: 80%;
  margin: 3rem auto;
}

.sep__item {
  text-align: justify;
  padding: 0 1rem;
  flex: 0 1 42%;
  line-height: 2;
}

/* ---------------------------------- */
/* ΔΗΜΟΤΙΚΟ */
/* ---------------------------------- */

#dimotiko {
  background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), url("../img/primary.jpg");
  height: 100vh;
  background-size: cover;
  background-position: center;
  line-height: 3rem;
}

#dimotiko ul li {
  display: flex;
  align-items: center;
  line-height: 0;
}

.dimotiko__icon {
  color: var(--green);
  font-size: 6rem;
  margin-right: 1rem;
}

/* ---------------------------------- */
/*IMAGE GALLERY */
/* ---------------------------------- */
.gallery__items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.gallery__thumb {
  max-height: 20rem;
  width: auto;
  margin: 1rem;
  border: 1px solid #c6c6c6;
  border-radius: 3px;
}

/* ---------------------------------- */
/* ΕΚΠΑΙΔΕΥΤΙΚΕΣ ΥΠΗΡΕΣΙΕΣ */
/* ---------------------------------- */

#services {
  background-color: #f4f4f4;
}

.services__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.services__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 0 0 45%;
  margin: 2rem;
}

.services__img {
  width: 40px;
  height: auto;
  margin-bottom: 10px;
  float: left;
  vertical-align: middle;
  margin-right: 10px;
}

.services__link:link,
.services__link:visited {
  font-size: 1.6rem;
  color: var(--orange);
  text-decoration: none;
  padding-bottom: 1px;
  margin-right: 20px;
  transition: all 0.4s;
}

.services__link:hover,
.services__link:active {
  color: var(--grey);
}

/* ---------------------------------- */
/* FORM */
/* ---------------------------------- */

#contact {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("img/bg-contact.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

.form__container--form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 50%;
  margin: 0 auto;
}

.contact__form-control {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin: 1.5rem 0;
}

.contact__form--label {
  flex: 0 0 15%;
  margin-right: 1.5rem;
}

.contact__form--input {
  flex: 1;
}

input[type="text"],
input[type="email"],
select,
textarea {
  font-size: inherit;
  font-family: inherit;
  padding: 1rem;
  border-radius: 3px;
  border: none;
}

textarea {
  height: 100px;
}

input[type="submit"] {
  padding: 1.5rem 2.5rem;
  font-size: inherit;
  outline: none;
  border: none;
  background-color: var(--green);
  color: white;
  transition: background-color 0.4s;
}
input[type="submit"]:hover {
  background-color: var(--medium-grey);
}

.form__message {
  padding: 1rem;
  border-radius: 5px;
  color: white;
  width: 50%;
  margin: 3rem auto;
}

.success {
  background-color: #26bf44;
}
.error {
  background-color: #d12e2e;
}

/* ---------------------------------- */
/* FOOTER */
/* ---------------------------------- */

.footer {
  background-color: #111;
  font-weight: 100;
  padding: 2rem;
}

.footer__navbars {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media only screen and (max-width: 900px) {
  .footer {
    padding: 2rem;
    text-align: center;
  }
  .footer__navbars {
    flex-direction: column;
  }
  .footer__copyright {
    margin-top: 0;
  }
}

.footer__nav,
.footer__social-links {
  list-style: none;
}

.footer__nav li a:link,
.footer__nav li a:visited,
.footer__social-links li a:link,
.footer__social-links li a:visited {
  font-size: 1.2rem;
  text-decoration: none;
  color: white;
  transition: color 0.4s;
}

.footer__nav li a:hover,
.footer__nav li a:active {
  color: var(--green);
}

.footer__nav li,
.footer__social-links li {
  display: inline-block;
  margin-right: 2rem;
}

@media only screen and (max-width: 750px) {
  .footer__nav li,
  .footer__social-links li {
    margin-right: 1rem;
  }
}

.footer__nav li:last-child,
.footer__social-links li:last-child {
  margin-right: 0;
}

.footer__social-links li a:link,
.footer__social-links li a:visited {
  font-size: 3rem;
}

.ion-social-facebook {
  transition: color 0.2s;
}

.ion-social-facebook:hover {
  color: #3b5998;
}

.ion-social-googleplus:hover {
  color: #dd4b39;
}

.footer__copyright {
  width: 100%;
  color: white;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
}
