/**
 * file: css/css.css
 * purpose: styling
 **/

/* Define variables in the :root */
*{
   --contrast: lime;
   --backgr: #000;
   margin: 0px;
   padding: 0px;
   
 }

/* Use your variables on elements */
 main {
   color: var(--contrast);
   background-color: var(--backgr);
 }
 
 body {
  font-family: "basic-sans", sans-serif;
  background-color: #F0F2EF
 }

h2 {
  font-size: 36px;
  padding-left: 56px;
  padding-right: 56px;
}
h3{
  font-size: 32px;
  margin-left: 16px;
}
header {
  background-color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  height: 65px; 
  line-height: 65px;
}

.articles {
  margin-left: 80px;
  margin-right: 80px;
}


article {
  height: 475px;
  width: 391px;
  background-color: #FFFFFF;
  border-radius: 30px;
  margin: 22px;
  float: left;
  perspective: 1000px;
 
}

hr {
  margin-left: 16px;
  margin-right: 16px;
  margin-top: -0px;
}
.backline {
  position: relative;
  top: 15px;
}

.eventtitle {
  border: white 1px solid;

}

.eventdate {
  border: white 1px solid;
  text-align: right;
  margin-right: 16px;
  font-size: 24px;
}
.eventdateback {
  text-align: right;
  margin-right: 16px;
  font-size: 24px;
  color: #FFFFFF;
  position: relative;
  bottom: 62px;
  border: rgb(255, 255, 255) 0px solid;
  margin-left: 250px; 
}

.eventnameanddate {
  border: white 1px solid;
  display: flex;
  justify-content: space-between;
}

.people {
  font-size: 32px;
}
.peopleback {
  position: relative;
  right: 15px;
  font-size: 32px;
  bottom: 10px;
}
.bottomback {
  display: flex;
  justify-content: space-between;
  position: relative;
  top: 30px;
}

.peopleimage {
  position: relative;
  bottom: -7px;
}
.peopleimageback {
  position: relative;
  top: 7px;
}

.cost {
  font-size: 20px;
 position: relative;
  bottom: -12px;
}
.costback {
  position: relative;
  left: 15px;
  font-size: 20px;
}



.costandpeople {
  border: rgb(255, 255, 255) 1px solid;
  display: flex;
  justify-content: space-between;
  position: relative;
  bottom: -5px;
  padding-left: 16px;
  padding-right: 16px;
}

#learnmore {
  font-size: 24px;
  color: #D55E2D;
  position: relative;
  bottom: -8px;
  background-color: #ffffff;
  border: 0px solid black;
  cursor: pointer;
}

#join {font-size: 24px;
  color: #ffffff;
  background-color: #D55E2D;
  width: 125px;
  height: 45px;
  line-height: 45px;
  border-radius: 5px;
  text-align: center;
  position: relative;
  border: 0px solid black;
  cursor: pointer;}

#join2 {font-size: 24px;
  color: #ffffff;
  background-color: #D55E2D;
  width: 125px;
  height: 45px;
  line-height: 45px;
  border-radius: 5px;
  text-align: center;
  position: relative;
  border: 0px solid black;}

#join3 {font-size: 24px;
  color: #ffffff;
  background-color: #D55E2D;
  width: 125px;
  height: 45px;
  line-height: 45px;
  border-radius: 5px;
  text-align: center;
  position: relative;
  border: 0px solid black;
  cursor: pointer;
}

#join4 {
  font-size: 24px;
  color: #ffffff;
  background-color: #D55E2D;
  width: 125px;
  height: 45px;
  line-height: 45px;
  border-radius: 5px;
  text-align: center;
  position: relative;
  border: 0px solid black;
  cursor: pointer;
}



.emptycheckmark {
  position: relative;
  bottom: -7px;
}

.fullcheckmark {
  position: relative;
  bottom: -7px;
}

.learnmoreandjoin {
  /*border: rgb(255, 255, 255) 1px solid;*/
  display: flex;
  justify-content: space-between;
  position: relative;
  bottom: -45px;
  padding-left: 16px;
  padding-right: 16px;
}

.arrow {
  position: relative;
  bottom: -7px;
  right: 15px;
}

.otherarrow {
  transform: rotate(180deg);
  position: relative;
  bottom: -7px;
  left: 15px;
}


button#cardback {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  bottom: -20px;
  left: 10px;
}
  

.months {
  /* border: rgb(0, 0, 0) 1px solid; */
  line-height: 45px;
  height: 45px;
  width: 172px;
  text-align: center;
  margin-left: 100px;
  
  
  
}
.createevent {
  
  border: #D55E2D 1px solid;
  height: 45px;
  width: 223px;
  margin-right: 120px;
  text-align: center;
  stroke: #D55E2D;
  border-radius: 5px;
  

}
.monthsandevents {
  /* border: rgb(255, 255, 255) 1px solid; */
  line-height: 45px;
  height: 45px;
  text-align: left;
  margin-bottom: 20px;
  margin-top: 90px;
  font-size: 24px;
  color: #D55E2D;
  display: flex;
  justify-content: space-between;
  

}
.plus {
  position: relative;
  bottom: -7px;
}

.eventtitleback {
  color: white;
  position: relative;
  bottom: 19px;
  left: 30px;
  
}
.title {
  font-size: 20px;
  position: relative;
  bottom: 20px;
  left: 20px;
}
.description {
  font-size: 20px;
  position: relative;
  left: 20px;
  bottom: 15px;
  margin-right: 25px;
  
}
/* CSS for the flip animation */
.flip-box {
  perspective: 1000px;
  position: relative;
  width: 100%;
  height: 100%;
}

.flip-box-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  transform-style: preserve-3d;
  transform: rotateY(0deg); /* Initial state is not flipped */
}

.flip-box-front {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  
}

.flipped {
  transform: rotateY(180deg);
  
}

.flip-box-back {
  transform: rotateY(180deg);
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  background-color: #D55E2D;
  background: linear-gradient(to top, transparent 380px,  #D55E2D 0%); 
  border-radius: 5%; 
}
