:root {
    --main-grey-color: rgb(44, 44, 44);
    --main-white-color: rgb(255, 255, 255);
}

* {
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    color: var(--main-grey-color);
    /* border: 1px solid red; */
}

html {
  display: inline;
}

h2 {
    font-size: large;
    font-weight: 300;
}

.my_section {

    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.secondary_section {

}

.primary_section {

}

.section_half_n_half {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.half_n_half_left {
  width: 100%;
  display:flex;
  grid-column: 1 / 2;
  align-items: center;
  justify-content: center;
}

.half_n_half_right {
  width: 100%;
  display:flex;
  flex-direction: column;
  grid-column: 2 / 3;
  align-items: center;
  justify-content: center;
}

.contact_form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 5vw;
}

.form_element {
  width: 100%;
  display: flex;
  align-items: flex-start;
  background: transparent;
  border: none;
  border-bottom: solid 1px var(--main-grey-color);
  justify-content: flex-start;
  padding: 1vh 0vh;
}

.form_text_area {
  border: solid 1px var(--main-grey-color);
  height: 15vh;
}

.form_hidden_label {
  display: none;
}

#thank-you-message {
  display: none;
}

#thank-you-message.show {
  display: block;
}

label {
  /* margin-right: 3em; */
  width: 8em;
}

.heading_container {
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: center; 
}

.fill_container {
  /* the container left on the bottom of the main feature, made to fill the frame */
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button {
  display:flex;
  align-items: center;
  justify-content: center;
  background: var(--main-grey-color);
  padding: 10px 20px;
  color: var(--main-white-color);
  border-style: none;
}

.button > a {
  color: var(--main-white-color);
  text-decoration: none;
}

.top_heading {
    padding-top: 5vh;
}

#home {
    display: flex;
    justify-content: flex-start;
}

.header {
    flex-grow: 0;
    width: 100%;
    background: white;
    /* max-width: 1300px; */
    display: grid;
    grid-template-columns: 50% 50%;
    padding: 0vw 1vw;
    max-height: 80px;
}

.logo {
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    height: 15vh;
    padding-left: 2vw;
    max-height: 80px;
}

.logo img {
    height: 10vh;
    max-height: 60px;
}
/* The menu bar from the righ side of the logo */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-column: 2 / 3;
    padding-right: 2vw;
}

/* The cluster containing two menu groups, just like the logo */
.navcluster {
    display: flex;
    justify-content: center;
}

/* The divider between the two menu items in a cluster */
.navdivider {
    width: 1px;
    margin: 0vw 1vw;
    background: grey;
}

/* The actual menu button link*/
.navbutton a {
    color: var(--main-grey-color);
    text-decoration: none;
    font-size: small;
}

.navbutton a:hover {
    color: var(--main-grey-color);
    text-decoration: none;
    font-weight: 500;

}

.navbutton a:active {
    color: gray;
    text-decoration: none;
    font-weight: 500;
}

/* Slideshow container */
.main_feature_container {
  flex-grow: 0;
  position: relative;
  padding-top: 4vh;
}



/* Hide the images by default */
.mySlides {
  display: none;
}

/* to generate media query for re-organizing the slider */
.slides_container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
}

/* make the images scale in their frames */
.slides_container img {
  width: 100%;
  height: 100%;
}


/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.4);
}

/* The dots/bullets/indicators */
.slider_dots {
    position: relative;
    z-index: 100;
    text-align:center;
    top: -5vh;
    
}


.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: rgba(200, 200, 200, 0.5);
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}


/* first video in the lineup */
.video_container {
    position: relative; 
    padding-bottom: 36.25%; 
    padding-top: 30px; 
    height: 0; 
    overflow: hidden;
}
.video_container iframe, .video_container object, .video_container embed {
    position: absolute; 
    top: -60px; 
    left: -24%; 
    width: 148%; 
    height: 170%; 
}

.half_gif {
  position: relative;
  display:flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--main-grey-color);
  color: white;
}

@media (max-width:720px) and (orientation:portrait) {
  h2 {
    font-size: small;
  }
  .logo > img {
    max-width: 300px;
  }

  .slides_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .slide_image_portrait {
    grid-row: 2 / 3;
    max-height: 200px;
    overflow: hidden;
  }

  .slide_image_landscape {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
    max-height: 200px;
    overflow: hidden;
  }

  .secondary_section {
  display: flex;
  flex-direction: column;
  border: 1px solid green;
  height: 50vh;
  width: 100vw;
  }

  .section_half_n_half {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr;
  }

  .half_n_half_left {
    width: 100%;
    display:flex;
    padding: 0vw;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-items: center;
    justify-content: center;
  }
  
  .half_n_half_right {
    width: 100%;
    display:flex;
    padding: 0vw;
    grid-column: 1 / 1;
    grid-row: 2 / 3;
    align-items: center;
    justify-content: center;
  }
  
  .hiding_button {
    display: none;
  }
}
