/*Basics*/
* {
  margin: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  touch-action: none;
}


input {
  display: none;
}

/*Circle and hearts*/
.circle {
  background: #EF476F;
  border-radius: 50%;
  left: calc(50% - 10px);
  top: 270px;
  transition: all .5s cubic-bezier(0.22, 0.53, 0.37, 1.41);
}

.hearts, .hearts:before, .hearts:after, .circle {
  display: block;
  width: 20px;
  height: 20px;
  position: absolute;
}

.hearts {
  transform: rotate(-45deg);
}

.hearts:before, .hearts:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.hearts:before {
  left: 12px;
}

.hearts:after {
  top: -12px;
}

#heart {
  background: #D33F49;
  z-index: 2;
  pointer-events: none;
}

#heartholder {
  top: 270px;
  left: calc(50% - 10px);
  cursor: none;
  z-index: 1;
  background: #f697e1;
  transition: all .2s ease-in;
}

/*Transform heart into key*/
#heartholder:hover {
  background: #ad6a9e;
}

#heartholder:hover ~ #heart{
  width: 7px;
  height: 27px;
  background: #ffcf0d;
}


#heartholder:hover ~ #heart:after {
  left: -7px;
  top: -19px;
  width: 12px;
  height: 12px;
  background: transparent;
  border: 5px #ffcf0d solid;
}

#heartholder:hover ~ #heart:before {
  border-radius: 0;
  top: 12px;
  left: 0;
  border-color: #ffcf0d;
  border-width: 4px;
  border-top-style: solid;
  border-bottom-style: solid;
  background: transparent;
  height: 9px;
}

/*Make the circle appear*/
#heartInput:checked ~ .circle {
  width: 400px;
  height: 400px;
  left: calc(50% - 200px);
  top: 50px;
}

/*Message to the loved one*/
.message, label.lang {
  font-family: 'Cabin', sans-serif;
}

.message {
  position: absolute;
  width: 300px;
  color: white;
  font-size: 18px;
  text-align: center;
  margin: 0 auto;
  line-height: 1.5;
  top: 150px;
  left: calc(50% - 150px);
  opacity: 0;
}

.message p:first-child {
  margin-bottom: 70px;
}

.love {
  font-family: 'Lobster', cursive;
  font-size: 30px;
}

/*Change language*/

label.lang {
  margin-right: 15px;
  display: block;
  float: right;
  color: #aaa;
  padding: 15px 5px;
  position: relative;
  z-index: 5;
  cursor: pointer;
}

input[type="radio"]:checked + label, label.lang:hover { 
  font-weight: bold; 
  text-decoration: underline;
  color: #383838;
} 

#checkENG:checked ~ .message.eng {
  opacity: 1;
}

#checkFR:checked ~ .message.fr {
  opacity: 1;
}

.next-btn {
  min-width: 48px;
  min-height: 48px;
  font-size: 16px;
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  background: #EF476F;
  color: white;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.next-btn:hover {
  background: #ff5fa2;
  transform: translateX(-50%) scale(1.05);
}
