/**
Theme Name: CEPT
Theme URI: https://www.virginialyons.com/
Author: Ilie Florea
Author URI: https://github.com/ilie
Description: Custom theme for Cambridge English Placement Test
Version: 1.0
Requires at least: 5.3
Tested up to: 5.8.3
Requires PHP: 5.3
 */

/* ---------------------------------------
   Body and general styles
   --------------------------------------- */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "open-sans-regular";
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #464646;
}

h1 {
  font-family: "open-sans-bold";
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0;
  color: #000649;
}
h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0;
  color: #000c6d;
  text-transform: uppercase;
}

/* ---------------------------------------
   Header
   --------------------------------------- */

.cabecera {
  box-shadow: rgba(17, 17, 26, 0.1) 0px 16px 48px;
  height: 100px;
  background-color: #ffffff;
}

.cabecera > .wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-logo {
  height: 100px;
  width: 100px;
  background-color: #000649;
  text-align: center;
  margin: 0px !important;
}
.main-logo img {
  margin: 10px;
}
.cabecera > .wrapper > .nav-element {
  display: flex;
  align-items: center;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  list-style-type: none;
  gap: 5px;
}
.menu > ul {
  background-color: antiquewhite;
}

.menu li {
  font-family: "open-sans-bold";
  font-size: 0.9rem;
  text-transform: uppercase;
}

.menu li:not(:last-child)::after {
  content: "  |";
}

.menu li a {
  text-decoration: none;
  color: #000649;
}

p a {
  color: #a1090a;
}

/* ---------------------------------------
   Front page
   --------------------------------------- */
.bg_img {
  /*background-image: url("./assets/img/Test-de-nivel.jpg");*/
  /*background-repeat: no-repeat;*/
  background: #000000 url("./assets/img/Test-de-nivel.jpg") no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  min-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  padding: 30px 0px;
}
.contenedor {
  max-width: 1200px;
  margin: 0px auto;
  display: flex;
  flex-direction: column;
}

.encabezado {
  display: flex;
  flex-direction: column;
}
.encabezado .flex-item {
  align-self: center;
}

.titulo_principal {
  font-size: 3.7rem;
  margin-bottom: -15px;
  color: white;
}
.subtitulo,
.descripcion {
  color: rgb(194, 194, 194);
}
.descripcion {
  margin: 40px auto;
}

.cta {
  margin: 30px auto;
}
.importante {
  font-weight: 600;
  text-decoration: underline;
}

.btn-nav,
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #a2090b;
  cursor: pointer;
}
.btn {
  min-height: 4rem;
  min-width: 12rem;
  max-width: 12rem;
  border-radius: 40px;
}
.btn-nav {
  min-height: 2.7rem;
  min-width: 9rem;
  border-radius: 40px;
}

.btn-nav a,
.btn a {
  color: white;
  text-decoration: none;
}
.btn a {
  font-size: 1.8rem;
}
.btn-nav a {
  font-size: 1.2rem;
}
/* ---------------------------------------
   Footer
   --------------------------------------- */
footer {
  background-color: white;
  margin-top: 30px;
}
footer .contenedor {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: wrap;
  padding-top: 40px;
  padding-bottom: 40px;
}
.footer-section {
  /*width: 265px;*/
  font-size: 0.9rem;
}
.footer-section h3 {
  text-transform: uppercase;
  color: #000649;
  font-size: 1.1rem;
}
.footer-section ul li {
  list-style-type: none;
  margin-left: -35px;
}
.footer-section ul li a {
  text-decoration: none;
  color: #000649;
}
address {
  color: #000649;
}

.logo-centro-preparador {
  margin: 15px 0px;
}


.credits {
  margin: 0;
  width: 100%;
  background-color: #f9f9f9;
}

.credits .contenedor {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

.credits > .contenedor .right a {
  text-decoration: none;
  color: #464646;
}
.credits > .contenedor .right a:not(:last-child)::after {
  content: "  |";
}
/* ---------------------------------------
   Helpers
   --------------------------------------- */
.grow {
  transition: all 0.2s ease-in-out;
}
.grow:hover {
  transform: scale(1.1);
}
.red-shadow {
  box-shadow: 0px 5px 20px 5px rgba(187, 4, 4, 0.452);
}
.center {
  align-self: center;
}
.bg_grey {
  background-color: #fafafa;
  padding: 40px 0px;
}

/* ---------------------------------------
   WooCommerce
   --------------------------------------- */
.woocommerce-info::before {
  color: #000649;
}

#place_order,
.button,
.checkout-button {
  background-color: #a2090b;
}

.woocommerce-checkout p.woocommerce-invalid-required-field span.error {
  color: #ff2a00;
  display: block;
  font-weight: bold;
}

/* Checkout */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  padding: 0.61rem;
  background-color: white;
  color: #43454b;
  outline: 0;
  border: 0;
  -webkit-appearance: none;
  border-radius: 2px;
  box-sizing: border-box;
  font-size: 1rem;
  border: solid 2px #e4e4e4;
  border-radius: 7px;
}

.woocommerce form #billing_country_field {
  display: none;
}

/** -- WooCommerce 2 column checkout -- **/

@media (min-width: 1117px) {
  #customer_details {
    width: 36%;
    float: left;
    margin-right: 30px;
  }

  #order_review_heading {
    width: 40%;
    float: left;
  }
  #order_review {
    width: 57.5%;
    float: left;
    padding-right: 30px;
  }
  .woocommerce table.shop_table td {
    width: 50%;
  }
  .woocommerce .col2-set .col-1,
  .woocommerce-page .col2-set .col-1,
  .woocommerce .col2-set .col-2,
  .woocommerce-page .col2-set .col-2 {
    width: 100%;
  }
}

/* Review Order */
.woocommerce-checkout-review-order{
 font-size: .9rem;
}

/* Payments */
.woocommerce-checkout #payment {
  background-color: white;
  font-size: 1rem;
}

.woocommerce-checkout #payment div.payment_box::before {
  border: none;
}
/* ---------------------------------------
   Stripe
   --------------------------------------- */
/* Ajustamos campos de fecha de caducidad y CVC*/
#wc-stripe-cc-form .form-row-first,
#wc-stripe-cc-form .form-row-last {
  width: 44%;
}

/* Cambiamos el color de fondo*/
.woocommerce-checkout #payment div.payment_box {
  background-color: #f9f9f9;
}

/* ---------------------------------------
   Móviles
   --------------------------------------- */
@media (max-width: 1450px) {
  .contenedor {
    padding: 0px 40px;
  }
}
@media (max-width: 1174px) {
  #wc-stripe-cc-form .form-row-first,
  #wc-stripe-cc-form .form-row-last {
    width: 40%;
  }
}
/* Dispositivos móviles */

@media (max-width: 900px) {
  .hide-on-mobile {
    display: none;
  }
}

/* Pantalla más pequeñas */
@media (max-width: 621px){
  #wc-stripe-cc-form .form-row-first label,
  #wc-stripe-cc-form .form-row-last label {
    font-size: .9rem;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 1.2rem;
  }
  h1 {
    font-size: 36px;
    line-height: 2.8rem;
  }
  h2 {
    line-height: 1.8rem;
  }
  p {
    line-height: 1.5rem;
  }
  .titulo_principal {
    font-size: 3.7rem;
    margin-bottom: 25px;
    color: white;
  }
  .contenedor {
    padding: 20px 10px;
  }

  .bg_img {
    background: #000000;
  }

  .footer-section {
    width: 100%;
    justify-content: center;
    font-size: 1.2rem;
  }
  #wc-stripe-cc-form .form-row-first,
  #wc-stripe-cc-form .form-row-last {
    width: 88%;
  }
  #wc-stripe-cc-form .form-row-first label,
  #wc-stripe-cc-form .form-row-last label {
    font-size: 1rem;
  }
}
