
:root {
  --caption-blue:#172A3A;
  --caption-gold:#ad946b;
  --dark-grey:#acacac;
  --green:#4CAF50;
  --red:#FF5252;
  --black-transparent:rgba(0,0,0, 0.8);

  --transition-time:.4s;
}

* {
  box-sizing: border-box;
  margin:0;
  padding: 0;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #1b3a52;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #12212d;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #0e1a24;
}

html {
  background:var(--caption-blue);
}

body {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  height:100vh;
  display: flex;
  justify-content: center;
  overflow-y: hidden;
  overflow-x: hidden;
}

a {
  color: var(--caption-gold);
}

h1 {
  display: block;
  font-size: 1.5em;
  margin: 0;
  font-weight: bold;
}

.bg {
  background-image:url(../images/globe-bg.png); 
  position: absolute; 
  opacity: 0.3;  
  z-index: -1; 
  width: 100%; 
  height: 100%; 
  background-size: cover;
}

main {
  width: 300px;
  max-width: 90%;
}
@media screen and (max-width: 500px) {
  main {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    padding: 0 30px;
  }
}

img {
  max-width: 100%;
}

.logo {
  width: 220px;
  max-width: 80%;
  margin: 40px auto 20px;
}
@media screen and (max-width: 500px) {
  .logo{
    width: 150px;
    margin: 30px auto 20px;
    max-width: 80%;
  }
}
@media screen and (max-height: 700px) {
  .logo{
    width: 100px;
    margin: 20px auto;
    max-width: 80%;
  }
}

.profiles {
  width:100%;
  position: relative;
  height:450px;
}
@media screen and (max-width: 700px) {
  .profiles {
    height: 500px;
  }
}
@media screen and (max-width: 500px) {
  .profiles {
    height: 550px;
  }
}
@media screen and (max-width: 500px) and (max-height: 700px) {
  .profiles {
    height: 470px;
  }
}
@media screen and (max-width: 370px) and (max-height: 800px) {
  .profiles {
    height: 450px;
  }
}


.profile {
  position: absolute;
  left:0px;
  top:0px;
  width:100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  cursor:pointer;
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.text-center {
  text-align: center;
}

.portrait {
  max-width: 50%;
  border-radius: 50%;
  margin-bottom: 20px;
}

#resultats {
  color:var(--dark-grey);
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

#score {
  display: none;
  color: white;
  font-weight: bold;
  font-size: 3em;
  background: #ad946b;
  text-align: center;
  padding: 5px 20px;
  border-radius: 16px;
  margin: 20px auto;
}

#status {
  color:white;
  font-weight: bold;
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 30px;
}

#message {
  color: #fff;
  text-align: justify;
}

#message a {
  color: var(--caption-gold);
  font-weight: bold;
}

.cta {
    display:none;
    margin: 30px auto;
    border: solid 1px #fff;
    border-radius: 10px;
    padding: 20px;
    color: #fff;
    width:100%
}
h4 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color:#fff;
}
h5 {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 20px;
  color:#fff;
}
.cta p {
  margin: 0 20px;
}
.cta a {
  background: #ad946b;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease-out;
  margin: 20px auto 10px;
  position: relative;
  display: inline-block;
}
.cta a:hover {
  background: #726145;
}
.share {
  display:none;
  margin-bottom: 50px;
}

.profile__image {
  height: 0;
  padding-bottom:150%;
  background-size: cover;
  background-position: center center;
}

.profile__counter {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  opacity: 0.6;
}

.profile__infos {
  padding:12px;
  position:absolute;
  bottom:0px;
  background:linear-gradient(0deg, black, transparent);
  width: 100%;
}

.profile__name {
  color:white;
  font-weight: bold;
  font-size:22px;
}

.profile__age {
  color:white;
  font-weight: normal;
}

.profile__description {
  color:white;
  font-size:13px;
}


.bottombar {
  margin-top:24px;
  display:flex;
  justify-content: center;
  align-items: center;
  gap:24px;
}

.bottombar__button {
  width: 64px;
  height: 64px;
  border-radius:100%;
  background:white; 
  padding:16px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  transition:.4s;
}

.bottombar__button:hover {
  cursor:pointer;
  opacity:0.8;
}

.profile--match {
  transition: var(--transition-time);
  transform:translateX(1500px) translateY(600px) rotate(90deg);
}

.profile--next {
  transition: var(--transition-time);
  transform:translateX(-1500px) translateY(600px) rotate(-90deg);
}

.profile--back {
  transition:var(--transition-time);
}

.profile--matching::after, .profile--nexting::after {
  content:"J'investis";
  font-weight: bold;
  font-size:25px;
  padding:8px 12px;
  border:solid 2px var(--green);
  color:var(--green);
  background:var(--black-transparent);
  position:absolute;
  top:24px;
  right:12px;
  border-radius: 4px;
  transform:rotate(24deg);
} 

.profile--nexting::after {
  content:'Next';
  border:solid 2px var(--red);
  color:var(--red);
}

.mentions {
  color:white;
  font-size: small;
  text-align: center;
  margin: 20px auto;
}
.mentions img {
  margin: 0px auto;
  max-width: 100px;
}

/* popup */

.popup {
  background-color: var(--caption-blue);
  color: #fff;
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
  width: 450px;
  padding: 30px 40px;
  position: absolute;
  transform: translate(-50%,-50%);
  left: 50%;
  top: 50%;
  border-radius: 8px;
  font-family: "Poppins",sans-serif;
  display: none;
  text-align: center;
}

@media screen and (max-width: 500px) {
  .popup {
    width: 100%;
    position: fixed;
    top: 0px;
    left: 0;
    bottom: 0px;
    right: 0;
    transform: none;
    z-index: 9;
    overflow-y: scroll; /* has to be scroll, not auto */
    -webkit-overflow-scrolling: touch;
    margin: 0 auto;
    padding: 40px 30px 100px;
  }
}

@media screen and (max-height: 700px) {
  .popup {
    position: fixed;
    top: 0px;
    left: 0;
    bottom: 0px;
    right: 0;
    transform: none;
    z-index: 9;
    overflow-y: scroll; /* has to be scroll, not auto */
    -webkit-overflow-scrolling: touch;
    margin: 0 auto;
    padding: 40px 30px 100px;
  }
}

.popup button {
  display: none;
  margin:  0 0 20px auto;
  background-color: transparent;
  font-size: 30px;
  color: #c5c5c5;
  border: none;
  outline: none;
  cursor: pointer;
}
.popup p{
  font-size: 14px;
  text-align: justify;
  margin: 20px 0;
  line-height: 25px;
}
.popup a {
  display: inline-block;
  width: auto;
  position: relative;
  margin: 10px auto;
  text-align: center;
  background-color: var(--caption-gold);
  color: #ffffff;
  border:1px solid var(--caption-gold);
  text-decoration: none;
  padding: 5px 20px;
  border-radius: 30px;
  transition: all 0.2s ease-out;
}
.popup a:hover {
  background-color: var(--caption-blue);
  border-color: var(--caption-gold);
}

/* accordeon */

#accordeonCont {
  display: none;
  margin-top: 30px;
  color: var(--caption-blue);
  box-shadow: 0px 0px 60px rgba(0,0,0,0.3);
}

.accordion {
  background-color: var(--caption-blue);
  color: #fff;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  border-bottom: solid 1px rgba(0,0,0,0.4);
  text-align: left;
  outline: none;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  transition: 0.4s;
}

.active, .accordion:hover {
  background-color: #111d26;
}

.accordion:after {
  content: '\002B';
  color: #fff;
  font-weight: bold;
  right: 20px;
  position: absolute;
}

.accordion {
  display: flex;
  align-items: center;
  position: relative;
}

.accordion__image {
  width: 80px;
  height: 80px;
  margin-right: 20px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.accordion__text .name {
  margin-bottom: 10px;
}

.accordion__text .answer {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.9em;
  border-radius: 40px;
}
.accordion__text .answer.wrong {
  background-color: #ffe1e6;
  color: #dc1f3f;
}

.accordion__text .answer.wright {
  background-color: #f2ffe1;
  color: #59a741;
}

.active:after {
  content: "\2212";
  color: var(--caption-gold);
}

.panel {
  padding: 0 18px;
  background-color: #172733;
  color: #fff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.panel .panel-title {
  display: block;
  font-size: 1.4em;
  font-weight: bold;
  margin:20px 0;
}

.panel p {
  margin:20px 0;
}

.panel p.pitch {
  margin:20px 0;
  font-size: 0.9em;
  font-style: italic;
}

.video-responsive { 
  overflow:hidden; 
  padding-bottom:56.25%; 
  position:relative; 
  height:0;
}

.video-responsive iframe {
  left:0; 
  top:0; 
  height:100%;
  width:100%;
  position:absolute;
}