@font-face {
  font-family: marcellusSC;
  src: url(font.woff2);
}

@font-face {
  font-family: marcellus;
  src: url(font2.woff2);
}

:root{
--windowheight: 8px;
}

body {padding: 5px;  background-color: transparent;}
h1 {text-align: center; font-family: marcellusSc; font-size: calc(25px + 4vw); color: #cd9f3a; margin: 30px 5px; text-shadow: 2px 4px 4px rgba(30.9, 23.9, 8.7, 0.2);}
p {margin: 20px 2px; font-size: 24px}

ul, ol, li {font-size: 24px;}
.main {text-align: center; font-size: 28px}
.logo {display: block; margin: auto; max-width: 95%}
.adimg {display: block; margin: 5px auto 150px auto; width: 90%; max-width: 800px; border-radius: calc(3*var(--windowheight)); border: 1px; box-shadow: 0 4px 8px 0 rgba(30.9, 23.9, 8.7, 0.2);}
.titlecontainer {width:100%; margin-top: calc(35*var(--windowheight)); height: calc(10vw + (20*var(--windowheight)));}
.cardimagecontainer {width: calc(50*var(--windowheight)); max-width:90%; height: calc(83*var(--windowheight)); margin: 50px auto; white-space: nowrap;} /* white-space: nowrap for to help with image centering so the span and img dont have to be on same line */
.helper { display: inline-block; height: 100%; vertical-align: middle}
.cardimg {vertical-align: middle; border-radius: calc(3*var(--windowheight)); width: 100%; border: 1px; box-shadow: 0 4px 8px 0 rgba(30.9, 23.9, 8.7, 0.2);}
.caption {text-align: center; font-size: 18px; color: gray}
.font_7 {font-size: 23px; text-align: center}
.font_8 {font-family: "Times New Roman", Times, serif; font-size: 19px}

/* Fade-in css*/

.fadetag, .fadetag2 {
opacity: 0;
transform: translate(0, calc(10*var(--windowheight)));
transition: all 1s;
}

.fadetag.visible {
opacity: 1;
transform: translate(0, 0);
}

.fadetag2.halftransparent {
opacity: 0.88;
transform: translate(0, 0);
}

/* Boxes */

.descriptionsbox {
border: 5px solid #cd9f3a;
border-radius: calc(3*var(--windowheight)) ;
background-color: #ffffff;
padding: 30px ;
max-width: 600px;
margin: 50px auto;
box-shadow: 0 4px 8px 0 rgba(30.9, 23.9, 8.7, 0.2);
}

.boxed {
border: 5px solid #57b2cf;
border-radius: 20px ;
background-color: #bcf7e3 ;
padding: 30px ;
max-width: 500px;
margin: 150px auto;
box-shadow: 0 4px 8px 0 rgba(30.9, 23.9, 8.7, 0.2);
}

.boxedbig {
border: 5px solid #57b2cf;
border-radius: 20px ;
background-color: #bcf7e3 ;
padding: 30px ;
max-width: 900px;
margin: 150px auto;
box-shadow: 0 4px 8px 0 rgba(30.9, 23.9, 8.7, 0.2);
}

/* Full-width input fields */
input[type=text], input[type=password] {
  width: 100%;
  padding: 15px;
  margin: 5px 0px 22px 0px;
  display: inline-block;
  border: none;
  background: #f1f1f1;
    box-sizing:border-box;
    -moz-box-sizing:border-box;
}

/* Add a background color when the inputs get focus */
input[type=text]:focus, input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for all buttons */
button {
  background-color: #3f26ca;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  opacity: 0.9;
  border-radius: 25px;
  font-size: 20px
}

button:hover {
  opacity:1;
}

button:disabled {
  opacity:0.2;
}

/* Extra styles for the cancel button */
.cancelbtn {
  padding: 14px 20px;
  background-color: gray;
}

/* Float cancel and signup buttons and add an equal width */
.cancelbtn, .signupbtn {
  float: left;
  width: 50%;
}

/* Add padding to lightbox elements */
.lightbox {
  padding: 16px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color:  rgba(240, 248, 255, 0.9);
  padding-top: 50px;
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  border-radius: calc(3*var(--windowheight))
}

/* Style the horizontal ruler */
hr {
  border: 1px solid #f1f1f1;
  margin-bottom: 25px;
}
 
/* The Close Button (x) */
.close {
  position: absolute;
  right: 35px;
  top: 15px;
  font-size: 40px;
  font-weight: bold;
  color: #f1f1f1;
}

.close:hover,
.close:focus {
  color: #f44336;
  cursor: pointer;
}

/* Clear floats */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}


@media screen and (orientation: landscape) and (max-height: 500px) {
  .cardimagecontainer {
     width: 90%;
     height: calc(122*var(--windowheight));
     overflow: auto;
     text-align: center;
  }
  
  .cardimg {
     width: 95%;
     border-radius: 6vw;
  }
}

/* Change styles for cancel button and signup button on extra small screens */
@media screen and (max-width: 300px) {
  .cancelbtn, .signupbtn {
     width: 100%;
  }
}
