/* Custom styles for Empleo Emprende */

h2 {
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
}
h2::after {
  content: '';
  width: 3rem;
  height: 2px;
  background-color: #60a5fa;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.dynamic-content.post--body::first-letter {
  font-size: 3em;
  font-weight: bold;
}
.dynamic-content.post--body pre {
  white-space: break-spaces;
}
.dynamic-content.post--body ul {
  list-style: disc;
  margin-left: 25px;
}
.dynamic-content.post--body ol {
  list-style: auto;
  margin-left: 25px;
}

.btn__container {
  height: 20vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.btn-w, .btn-f {
  width: 200px;
  min-width: 130px;
  background-color: #fff;
  border: 2px solid #35a8e0;
  padding: 1rem 2rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  margin-right: 30px;
  margin-bottom: 5px;
  border-radius: 5px;
}
.btn-w i, .btn-f i {
  color: #25ce65;
  font-size: 20px;
  padding-right: 10px;
  transition: all 0.3s ease-in-out;
}
.btn-w span, .btn-f span {
  font-family: "Roboto", sans-serif;
  align-self: center;
  transform: translateX(0px);
  transition: all 0.1s ease-in-out;
  opacity: 1;
}
.btn-w:hover, .btn-f:hover {
  transform: scale(1.1);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}
.btn-w:hover i, .btn-f:hover i {
  transform: translateX(45px);
  padding-right: 0;
  color: #fff;
}
.btn-w:hover span, .btn-f:hover span {
  transform: translateX(30px);
  opacity: 0;
}
.btn-w:active, .btn-f:active {
  transform: scale(1);
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}
.btn-w:hover, .btn-w:active {
  background: linear-gradient(to right, #25ce65 0%, #25ce65 100%);
  border: 2px solid #25ce65;
}
.btn-f:hover, .btn-f:active {
  background-color: #286ed6;
  border: 2px solid #286ed6;
}

/* Navbar mobile */
.mobile-nav-logo {
  visibility: hidden;
  position: absolute;
  left: 58%;
  transform: translateX(-50%);
  transition: 0.8s transform;
  max-width: 200px;
  height: auto;
  top: 20px;
  padding-top: 5px;
}
@media (max-width: 768px) {
  .small-navbar a:active {
    background-color: #35a8e0;
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
}

.language-dropdown {
  position: relative;
  display: inline-block;
}
.language-dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}
.language-dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}
.language-dropdown-content a:hover {
  background-color: #f1f1f1;
}
.language-dropdown:hover .language-dropdown-content {
  display: block;
}

/* Cookie switch */
.switch {
  position: relative;
  display: inline-block;
  width: 55px;
  height: 27px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
input:disabled:checked + .slider {
  background-color: #d8dcfd;
  cursor: default;
}
input:checked + .slider {
  background-color: #2196f3;
}
input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}
input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

.post-container {
  overflow: hidden;
}
.post-container img {
  border-radius: 6px;
  transition: 0.3s;
}
.post-container img:hover {
  scale: 1.1;
  overflow: hidden;
}

img {
  border-radius: 6px;
}

.small-post img {
  border-radius: 6px;
}

/* Dynamic content on post pages */
.dynamic-content.post--body {
  font-family: 'Roboto Slab', serif;
}
