/*
Theme Name: obc-theme
Theme URI:
Author: Corentin Chataignon
Author URI:
Description:
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: obc-theme
Tags:
*/


body {
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
}

.navbar {
  border-radius: 100px;
  margin-top: 48px;

  padding-left: 32px;
  padding-right: 4px;

  .link > a {
    text-decoration: none;
  }

  .menu {
    > li.current-menu-item {
      color: var(--wp--preset--color--secondary);
    }
  }

  .mobile-menu {
    display: none;
  }

  .mobile-logo {
    display: none;
  }
}

.content {
  margin-bottom: 48px !important;
}

footer.wp-block-template-part {
  margin-block-start: 0 !important;
}

.footer {
  margin-top: 48px;
  border-top: 16px solid;
  border-image: var(--wp--preset--gradient--dark-to-light) 1;


  .links {
    padding-top: 16px;
    color: var(--wp--preset--color--gray)
  }

  .separator {
    border-top: 1px solid;
  }

  .bottom {
    padding: 0 16px 16px 16px;
  }

  a {
    text-decoration: none;
    color: inherit;

    &:visited, &:hover, &:active {
      color: inherit;
    }
  }

}

.timetable {
  .day {
    height: 100%;
  }
}

.gymnasiums {
  max-width: 1100px;

  img {
    border-radius: 12px;
  }

}

.advantage {
  background-color: var(--wp--preset--color--mauve);
  padding: 16px;
  border-radius: 8px;
}


.register-button {
  padding: 6px 4px;
  border-radius: 100px;
  width: fit-content;

  .arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 8px;
  }
}

.pagination {
  .arrow {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    background: #F9F8FC;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 8px;
    margin: 0;
    text-decoration: none;
  }

  .arrow > span {
    margin: 0;
  }
}


.news {
  padding: 16px;
  border-radius: 24px;
}

.interclub {
  padding: 32px;
  border-radius: 32px;
}

.carousel {
  & img {
    border-radius: 24px;

  }

  &.ic {
    & img {
      width: 600px;
      height: 400px;
    }
  }
}

.hero-photo {
  & img {
    border-radius: 24px;
  }
}

.office-card {
  padding: 16px;
  background-color: #FFFFFF;
  border-radius: 24px;

  & img {
    width: 200px;
    height: 200px;
    margin-left: auto;
    border-radius: 8px;
  }
}

.licence {
  background-color: #FFFFFF;
  padding: 16px;
  border-radius: 24px;

  li {
    margin-bottom: 16px;
  }
}

.tuto {
  background-color: color-mix(in oklab, var(--wp--preset--color--light-gray) 50%, transparent);
  padding: 16px;
  border-radius: 24px;
}

.prices {
  background-color: color-mix(in oklab, var(--wp--preset--color--light-gray) 50%, transparent);
  padding: 16px;
  border-radius: 24px;

  .wp-block-column {
    justify-items: center;
  }

  .circle {
    background-color: var(--wp--preset--color--mauve);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    padding: 16px;
    justify-content: center;
    align-items: center;
  }
}

.wp-block-contact-form-7-contact-form-selector {
  width: 50%;
  min-width: 350px;
}

.wpcf7 {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: color-mix(in oklab, #000 25%, transparent);
  border-radius: 16px;

  span {
    display: flex;
  }

  label {
    font-family: var(--wp--preset--font-family--lemon-milk);
    font-size: var(--wp--preset--font-size--small);
    color: white;
    display: block;
  }

  input, textarea {
    border-radius: 16px;
    padding: 8px;
    width: 100%;
    margin-top: 8px;
    background-color: var(--wp--preset--color--primary);
    border-color: color-mix(in oklab, #fff 30%, transparent);
    color: #fff
  }

  input:active, textarea:active {
    color: #fff
  }

  .wpcf7-submit {
    padding: 8px;
    background-color: #fff;
    color: var(--wp--preset--color--primary);
    font-family: var(--wp--preset--font-family--lemon-milk);
    font-size: var(--wp--preset--font-size--medium);

  }
}

@media (width < 768px) {
  .navbar {
    border-radius: 0;
    margin-top: 0;
    padding-left: 8px;

    .logo {
      display: none;
    }

    .menu {
      display: none;
    }

    .mobile-menu {
      display: flex;
    }

    .mobile-logo {
      display: flex;
      flex-grow: 1;
    }

    .left-menu {
      display: none;
    }

    .right-menu {
      display: none;
    }
  }

  .carousel {
    display: none;
  }

  .hero-photo {
    display: none;
  }

  .hide-on-mobile {
    display: none;
  }

  .footer {
    border: 0;

    .links {
      display: none;
    }
  }
}


/* https://olliewp.com/fixing-the-sticky-header-bug-in-the-wordpress-site-editor/ */
header:has(>.is-position-sticky) {
  position: sticky;
  top: calc(0px + var(--wp-admin--admin-bar--height, 0px));
  z-index: 100;
}