/* CSS Document */

/*
Theme Name: Student Conference
Author: Taya Sourikov
Description: template for a student conference website
Text Domain: scps-textdomain
Domain Path: /languages
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@200..800&display=swap');
:root {
  --text-color: #222222;
  --secondary-color: #0d3b87;
  --secondary-background: #243e61;
}
body{
  margin: 0;
  padding: 0;
  direction: rtl;
  font-family: "Assistant";
  font-weight: 400;
  font-size: 17px;
  color: var(--text-color);
}
#cookie-notice {
  box-shadow: 0 2px 13px rgba(80, 80, 80, 0.5);
}

#cookie-notice .cn-button:not(.cn-button-custom) {
  margin: 0 10px 0 0 !important;
}

#cookie-notice .cn-button:hover,
#cookie-notice .cn-button:focus {
  background: #444444 !important;
  color: #ffffff !important;
}
.container{
  max-width: 960px;
  width: 92%;
  margin: 0 auto;
}
header{
  position: sticky;
  top: 0;
  z-index: 9;
  background: #243e61;
  padding: 15px 0;
  box-shadow: 0 0 6px rgba(0,17,67,1);
}
header .container{
  display: flex;
  justify-content:space-between;
  align-items:center;
}
#header_title{
  color: #fffef6;
  font-size: 1.8em;
  text-decoration: none;
  line-height: 1.7em;
}
#header_title:hover,
#header_title:focus{
  color: #fff1cc;
}
#header_registration{
  display: inline-block;
  background: #fff1cc;
  color: var(--secondary-background);
  border-radius: 2px;
  font-weight: 600;
  font-size: 1.1em;
  text-decoration: none;
  line-height: 2.7em;
  padding: 0 1em;
}
#header_registration:hover,
#header_registration:focus{
  opacity: 0.8;
}
footer{
  margin-top: 3em;
  padding-top: 2em;
  padding-bottom: 2em;
  border-top: solid 1px #f2f2f2;
}
footer .container{
  display: flex;
  justify-content:space-between;
  align-items:center;
}
#footer_logo{
  width: 300px;
  max-width: 300px;
  height: auto;
}

#head{
  position: relative;
}
#main_image{
  position: relative;
  height: 70vh;
  width: 100%;
  overflow: hidden;
}
#main_image img{
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position:top;
  scale: 140%;
  transform: translateY(10%);
  animation: zoom-in-zoom-out 70s ease infinite;
}
#main_text{
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  background: var(--secondary-background);
  padding: 1.5em 0 1.3em;
  color: #ffffff;
  text-align: center;
}
@media only screen and (min-width: 961px){
  #main_text{
    position: absolute;
    z-index: 2;
    background: rgba(36, 62, 97, 0.9);
    right: calc(50% - 480px);
    bottom: -4em;
  }
  #main{
    padding-top: 5em;
  }
}
#main_text .super-title{
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
  font-size: 2.1em;
  line-height: 1.6em;
  font-weight: bold;
  letter-spacing: 0.05em;
}
#main_text h1{
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
  margin-top: 0;
  margin-bottom: 0.3em;
  font-size: 4.7em;
  letter-spacing: 0.03em!important;
  line-height: 1em;
}
#main_text .sub-title{
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  font-size: 1.58em;
  line-height: 1.5em;
  letter-spacing: 0.04em;
}

#main .text-wrapper{
  font-size: 1.4em;
}
@keyframes zoom-in-zoom-out {
  0% {
    scale: 100%;
    transform: translateY(0);
  }   
  50% {
    scale: 140%;
    transform: translateY(10%);
  }
  100% {
    scale: 100%;
    transform: translateY(0);
  }
}
h2.section-title{
  text-align: center;
  font-size: 2.35em;
  font-weight: 400;
  margin-bottom: 1.5em;
}
#schedule, #speakers, #registration{
  margin-top: 6em;
}
.schedule-wrapper{
  border-bottom: 1px solid #555555;
}
.timeslot{
  display: grid;
  grid-template-columns: 1fr 3fr 8fr;
  grid-column-gap: 2em;
  border-top: 1px solid #555555;
  padding: 0.9em 0 1.1em;
  line-height: 1.4em;
}
.timeslot .title{
  font-weight: 600;
  margin: 0;
  font-size: 1.12em;
  line-height: 1.3em;
}
.timeslot .description p{
  margin-top: 3px;
  margin-left: 2em;
}
.timeslot .description p:last-child{
  margin-bottom: 0;
}
.timeslot .description strong,
.timeslot .description b{
  font-weight: 600;
}
.lecture-title{
  font-weight: 600;
  margin: 0;
  font-size: 1.12em;
  line-height: 1.45em;
}
.lecture-title span:nth-child(1){
  color: var(--secondary-color);
  display: block;
}
.lecture-title span:nth-child(2){
  font-size: 0.85em; 
  font-weight: bold;
  display: block;
}
.has-accordion .lecture-title{
  padding-top: 0.65em;
  position: relative;
  padding-left: 1.7em;
  cursor: pointer;
}
.has-accordion .lecture-title:focus,
.has-accordion .lecture-title:hover{
  color: var(--text-color);
}
.lecture-wrapper.has-accordion {
  border-top: solid 1px #dddddd;    
}
.has-accordion .lecture-title::after{
  content: "\203A";
  display: inline-block;
  position: absolute;
  left: 0.2em;
  top: 0.2em;
  font-size: 2em;
  line-height: 0.8em;
  color: #999;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}
.has-accordion .lecture-title.closed-title::after{
  left: 0;
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  transform: rotate(-90deg);
}
.has-accordion .closed-title + .lecture-description{
  display: none;
}
#speakers .speakers-wrapper{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 2em;
}
.speaker{
  cursor: pointer;
}
.speaker-image-wrapper img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.speaker-thumb h3{
  margin: 0;
  line-height: 2.3em;
  text-align: center;
  font-weight: 400;
  font-size: 1em;
  background: var(--secondary-background);
  color: #ffffff;
}
.speaker-desc{
  display: none;
}

.email-error {
  color: rgba(170, 48, 50, 1.00);
  display: none;
}
#registration form input[type=text],
#registration form input[type=email],
#registration form input[type=tel]{
  width: calc(100% - 1.4em);
  display: block;
  font:normal 1.05em 'Assistant', Arial, Helvetica, sans-serif;
  padding: 1em 0.7em 0.25em;
  border: solid 1px #cccccc;
  background: #ffffff;
  height: auto;
}
#registration form select{
  width: calc(100% - .4em);
  display: block;
  font:normal 1.05em 'Assistant', Arial, Helvetica, sans-serif;
  padding: 0.25em 0.7em;
  background: #ffffff;
  border: solid 1px #cccccc;
  margin-bottom: 2em;
}
#registration form div.field_wrapper{
  position: relative;
}
#registration form label.floating{
  position: absolute;
  top: 1.2em;
  right: 0.85em;
  font-size: 0.8em;
  line-height: 0.8em;
  transition:0.2s ease all; 
  -moz-transition:0.2s ease all; 
  -webkit-transition:0.2s ease all;
  z-index: 100;
}

#registration form input:focus + label.floating,
#registration form input:valid + label.floating,
#registration form input[type=email]:not(:placeholder-shown) + label.floating{
  font-size: 0.7em;
  top: 0.25em;
  color: #9b5280;
}

#registration form label .required_label{
  font-size: 0.9em;
  color: #9b5280;
}
#registration h3 {
  font-weight: 400;
  font-size: 1.2em;
  margin-top: .7em;
}
.fields-wrapper{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1.5em 2.5em;
}
.types-wrapper{
  margin: 2em 0;
  display: flex;
  gap: 2em;
}
.types-wrapper label{
  display: inline-block;
  margin: 0 0.35em;
  font-size: 1.05em;
  position: relative;
  bottom: 1px;
}
label[for="subscribe"]{
  display: inline-block;
  margin-right: 0.5em;
  font-size: 1em;
}
#registration input[type=submit] {
  display: block;
  color: #ffffff;
  background: var(--secondary-background);
  font-family: 'Assistant', Arial, Helvetica, sans-serif;
  border: none;
  line-height: 2.3em;
  padding: 0 1.75em;
  margin: 2em auto 1.35em auto;
  font-size: 1.2em;
}

#registration_response {
  text-align: center;
  font-size: 1.1em;
}
.loader{
  width:1.85em; 
  height:1.85em; 
  display:inline-block; 
  background:url(images/ajax-loader.gif) no-repeat;
}

@media only screen and (max-width: 767px){
  .fields-wrapper{
    grid-template-columns: 1fr;
  }
  .second_panel{
    margin-top: 25px;
  }
  .types-wrapper{
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75em;
  }
  .types-wrapper::before,
  .types-wrapper::after{
    display: none;
  }
  #registration form select{
    margin-bottom: 0;
  }
}
@media only screen and (max-width: 340px){
  .types-wrapper label{
    margin: 0 5px;
  }
  .types-wrapper .spacer{
    width: 7px;
  }
}
#popup_wrapper{
  position: fixed;
  width: 100%;
  top: 3em;
  right: 0;
  display: none;
  z-index: 99999;
}
.popup-inner{
  width: 92%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 99;
}
#popup_wrapper::before{
  content: "";
  display: block;
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.65);
  z-index: 10;
}
.close_popup {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0;
  display: block;
  color: #ffffff;
  background: none;
  border: solid 1px #ffffff;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.close_popup:hover,  
.close_popup:focus{
  border: solid 1px var(--text-color);
}

.close_popup::after{  
  content: "×";
  display: inline-block;
  width: 44px;
  height: 44px;
  line-height: 44px;
  color: #000;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace;
  opacity: 0.65;
}
.popup-speaker{
  min-height: 300px;
  background: #ffffff;
  padding: 3em 3em 4em 4em;
}
@media (max-width: 767px){
  #header_title{
    font-size: 1.4em;
  }
  #header_registration{
    line-height: 2em;
    font-size: 1em;
  }
  #main_image{
    height: 45vh;
  }
  #main_text{
    padding: 1.3em 0;
  }
  #main_text .super-title{
    font-size: 1.4em;
  }
  #main_text h1{
    font-size: 2.64em;
    margin: 0.1em 0 0.4em;
  }
  #main_text .sub-title{
    font-size: 1.1em;
  }
  #main .text-wrapper{
    font-size: 1.1em;
    line-height: 1.5em;
  }
  .timeslot{
    grid-template-columns: 1fr;
    grid-row-gap: 0.5em;
  }
  #speakers .speakers-wrapper{
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1.5em;
  }
  footer{
    padding-top: 3em;
  }
  footer .container{
    display: flex;
    flex-flow: column-reverse;
    gap: 2em;
    text-align: center;
  }
}