/*
Theme Name: Conversas
Text Domain: Conversas
Version: 1.1
Description: Master theme for Conversas website
Author: Rodrigo
Author URI: https://rodri-go.net
*/

/* global */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0 auto;
  padding: 0;

  font-family: 'acumin-pro', sans-serif;
  letter-spacing:0.02em;
  font-weight: 400;
}

body {
  overflow: hidden;

}

&::-webkit-scrollbar:horizontal {
  height: 0;
  width: 0;
  display: none;
}

&::-webkit-scrollbar-thumb:horizontal {
  display: none;
}

/* global type */

.font-regular {
  font-family: 'acumin-pro', sans-serif;
  font-size:20px;
  letter-spacing:0.02em;
  font-weight: 400;
}

.font-bold {
  font-family: 'Overlock';
  font-size:20px;
  line-height:34px;
  letter-spacing:0.01em;
  font-weight: bold;
}

/* Participate content box */

.conversa_name {
  text-align: center;
}

.conversa_name a {
  color: black !important;
  line-height: 35px;
  padding-bottom: 5px;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.conversa_name a:hover {
  color: black !important;
  cursor: pointer !important;

  text-decoration: underline 1px black !important;
  filter: drop-shadow(0 0 0.15rem #fddc01);
}

#organise_section a, #about_section a {
  color: black !important;
  transition: all 0.2s ease-in-out;
}

#organise_section a:hover {
  text-decoration: underline 1px black !important;
  filter: drop-shadow(0 0 0.15rem #3bf68c);
}

#about_section a:hover {
  text-decoration: underline 1px black !important;
  filter: drop-shadow(0 0 0.15rem #fba4c3);
}

h1 {
  color: black;
}

a:hover {
  cursor: pointer;
}

/* header elements */

.header {
  width: 600px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  gap: 5px;
  margin-top: 20px;
  z-index: 100;
  position: relative;
}

.header > div {
  width: 100%;
}

#conversas-title {
  text-align: center;
  height: 80px;
  display: block;
  position: relative;
  margin-top: 20px;
}

.intro-text {
  font-family: 'acumin-pro', sans-serif;
  font-size:1.1em;
  letter-spacing:0.02em;
  font-weight: 400;
  margin: 0 auto;
  margin-top: 7px;
  padding: 10px 25px 15px 25px;

  text-align: center;
  background-color: white;
  border-radius: 10px;
  filter: drop-shadow(0 0 0.15rem #00000014);
}

#conversas-pic {
  width: 50vw;
  height: auto;
  display: inline-block;
  float: right;
  margin: 35px;
}

.conversas-title-letters {
  width: 40px;
  height: 53px;
  display: inline-block;
  margin-right: 10px;
  margin-top: 15px;
  filter: drop-shadow(0 0 0.15rem #00000034);
}

.conversas-full-pic {
  width:100%;
  height:100%;
}

/* header buttons */

#button-wrapper {
  display: flex;
  gap: 5px;
}

.header-btn {
  border-radius: 10px;
  font-size: 1.1em;
  display: inline-flex;
  align-items: center;
  padding: 14px 15px;
  gap: 16px;
  flex-grow: 1;
  justify-content: space-between;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  filter: drop-shadow(0 0 0.15rem #00000014);
  border: 2px solid rgba(0,0,0,0.1);
}

.header-btn.active {
  border-radius: 10px 10px 0 0;
  transform: translateY(5px);
}

.header-btn:hover {
  cursor: pointer;
  transform: translateY(5px);
}

/* Round dropdown button */
.dropdown-btn {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(0,0,0,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* Arrow */
.dropdown-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(0,0,0,0.60);
  filter: drop-shadow(0 0 0.15rem #000000);
}

.header-btn.active .dropdown-btn {
  transform: rotate(180deg);
}

.yellow {
  background-color: #fae74c;
}

.yellow:hover {
  filter: drop-shadow(0 0 0.15rem #fae74c);
}

.pink {
  background-color: #fca1dd;
}

.pink:hover {
  filter: drop-shadow(0 0 0.15rem #fca1dd);
}

.green {
  background-color: #78E68F;
}

.green:hover {
  filter: drop-shadow(0 0 0.15rem #78E68F);
}

/* Header content blocks */

.page-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.page-content-inner {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-content.active {
  max-height: 100vh;
  transition: max-height 0.4s ease-in-out;
}

.page-content.active .page-content-inner {
  opacity: 1;
  transform: translateY(0);
}

.page-content.active #organise_section {
  border-radius: 10px 0 10px 10px;
}

.page-content.active #names_section {
  border-radius: 0 10px 10px 10px;
}

#margin-footer {
  width: 100vw;
  height: 10vh;
  color: red;
  bottom:0;
}

.conversas-button {
  display: inline-block;
  position: relative;
  width: 200px;
}

.conversas-button:hover {
  cursor: pointer;
}

#yellow-menu, #green-menu, #pink-menu, #purple-menu {
width: 200px;
position: absolute;
opacity: 1;
transition: all 0.3s ease-in-out;
}

#purple-menu {
filter: drop-shadow(0 0 0.15rem #b783ff);
}

#yellow-menu {
filter: drop-shadow(0 0 0.15rem #fddc01);
}

#green-menu {
filter: drop-shadow(0 0 0.15rem #13e279);
}

#pink-menu {
filter: drop-shadow(0 0 0.15rem #fba4c3);
}

#yellow-menu:hover, #green-menu:hover, #pink-menu:hover, #purple-menu:hover{
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

/* disclaimer on front page */
#conversas-post {
  position: absolute;
  width: 100vw;
  height:auto;
  bottom: 10px;
}

.map::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  background: linear-gradient(
    180deg,
    rgba(242, 242, 242, 0.5) 0%,
    rgba(242, 242, 242, 0.4) 50%,
    rgba(242, 242, 242, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.map {
  width:  100vw;
  height: 105vh;
  z-index: 0;
  position: absolute;
  left: 0;
  top: 0;
  margin: 0 auto;
}

.map-popup {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -100%);
  left: 40vw;
  top: 72vh;
  background: white;
  padding: 10px;
  border-radius: 10px;
  width: 220px;
  pointer-events: auto;

  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.map-popup.hidden {
  display: none;
}

.map-info-text {
  margin: 0;
  width: 100%;
  text-align: center;
}

.section {
  position: relative;
  width: 100%;
  background-color: white;

  border-radius: 10px;
  padding: 1px 25px 5px 25px;
  filter: drop-shadow(0 0 0.15rem #00000014);
}

.no-margin {
  margin-bottom: 0 !important;
}

#about-section a:hover {
  color: black !important;
  cursor: pointer !important;

  text-decoration: underline 1px black !important;
  filter: drop-shadow(0 0 0.15rem #fba4c3);
}

.title {
  text-align: left;
  padding: 0;
  margin-bottom: 20px !important;
  line-height: 50px !important;
}

.square-image {
  height: auto !important;
  background-color: white;
  border: solid 2px black;
  filter: drop-shadow(0 0 0.15rem rgba(0,0,0,0.5));
}

#thumbnail-container {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  transform: translate(15px, 15px);
  transition: opacity 0.2s ease;
  z-index: 9999;
}

#thumbnail-container.visible {
  opacity: 1;
}

#thumbnail-image {
  max-width: 220px;
  height: auto;
  display: block;
}

.wp-image-103 {
  width: 100% !important;
  height: 100% !important;
}

#conversas-post p {
  font-family: 'acumin-pro', sans-serif;
  font-size:20px;
  letter-spacing:0.02em;
  font-weight: 400;
  line-height:25px;
  margin: 0 auto;
  width: 600px;

  margin-bottom: 20px !important;
  text-align: left;
}

#conversas-post p strong {
  font-family: 'Overlock';
  font-size:20px;
  line-height:25px;
  letter-spacing:0.01em;
  font-weight: bold;
}

#conversas-post a {
  color: black;
  text-decoration: underline dotted black;
}

#conversas-post a:hover {
  text-decoration: underline 2px blue;
  cursor: pointer;
}

.wpgmza-infowindow p, .wpgmza-infowindow a {
  font-size:15px !important;
  color: black !important;
  line-height: 20px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.wpgmza-infowindow {
  text-align: center !important;
  overflow: hidden !important;
}

.wpgmza-infowindow img {
  margin-top: 7px !important;
  border: 2px solid black !important;
}

.gm-style-iw, .gm-style-iw-c {
  border-radius: 0px !important;
  border: 2px solid black !important;
}

#mobile-close-btn {
  display: none;
  opacity: 1;
  pointer-events: none;

  position: fixed;
  z-index: 100;
  width: 50px;
  height: 50px;
  top: 10px;
  right: 10px;

  background-color: white;
  border-radius: 50%;
  border-style: solid;
  border-width: 2px;
  border-color: black;
  transition: all 0.3s ease-in-out;

  color: black;
  text-align: center;
}

#mobile-close-btn p {
  margin-top: 2px;
  font-size: 40px;
}

#mobile-close-btn a {
  color: black;
  text-decoration: none;
}

#mobile-close-btn:hover {
  cursor: pointer;
  background-color: black;
  border-color: white;
  transition: all 0.3s ease-in-out;
  color: white;
}

#mobile-close-btn a:hover {
  color: white !important;
}

.disclaimer {
  width: 600px;
  margin: 0 auto !important;
  text-align: center !important;
  border-radius: 10px;
  font-size: 0.9em !important;
  color: white;
  text-shadow: 1px 1px 1px #000000a1;
  padding: 5px 10px 8px 10px;
  line-height: normal !important;
  background-color: rgba(0, 0, 0, 0.33);
  backdrop-filter: blur(6px);
  filter: drop-shadow(0 0 0.15rem #00000014);
}

/* Mobile Viewport display */

@media screen and (max-width: 499px){
  #conversas-title {
    width:98%;
    margin-left: 1%;
    height: 50px;
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .conversas-title-letters {
    width: 6%;
    height: 40px;
    margin-top: 0px;
  }

  .intro-text {
    font-size: 0.95em;
    line-height: 22px;
    width: 100%;
  }

  .header {
    width: 98vw;
    margin-right: 1vw;
  }

  #button-wrapper {
    width: 100%;
  }

  .dropdown-btn {
    display: none;
  }

  .header-btn {
    font-size: 1em;
  }

  .page-content.active {
    font-size: 0.95em;
  }

  .map {
    position: absolute;
    width:  100vw;
    height: 100vh;
    left: 0;
    top: 0;
    margin: 0 auto;

    border: solid 2px black;
    border-radius: 0%;
    padding: 0px;
    filter: drop-shadow(0 0 0.15rem rgba(0,0,0,0.5));
  }

  .disclaimer {
    width: 90%;
  }

  #wpgmza_map_1 {
    top:0;
    margin: 0 auto;
    height: 100vh !important;
    width: 100vw !important;
    border-radius: 0% !important;
    top:0 !important;
    left: 0 !important;
    margin: 0 auto !important;
  }

  .m {
    margin-left: 0 !important;
  }
  
  #conversas-post {
    position: fixed;
    width: 100vw !important;
    left: 0 !important;
    top: 0 !important;
    margin-bottom: 0 !important;
  }

  .conversas-button {
    margin-bottom: 10px;
    display: block;
    margin-left: 50vw;
    left: -100px;
  }

  #map-button-mobile {
    margin-bottom: 8px !important;
  }

  #about-button {
    margin-left: 50vw;
  }

  #names-section, #about-section, #organise-section {
    width: 95vw !important;
    left: 0 !important;
    top: 0 !important;
    margin-left: 2.5vw !important;
    margin-top: 5vh !important;
    height: 90vh !important;
    overflow: scroll;
  } 

  #names, #about-section p, #organise-section p {
    text-align: center;
    line-height: 22px !important;
  }

  #organise-section p {
    margin-bottom: 20px !important;
    word-break: normal;
  }

  #organise-section a {
    word-break: break-all;
  }

  #mobile-close-btn {
    display: block;
    pointer-events: all;
  }

  #thumbnail-container {
    opacity: 0;
    z-index: -100;
    pointer-events: none;
  }

  #names {
    text-align: center !important;
  }
  
  #conversas-post {
    display: none;
  }

}