/* WHOLE PAGE ========================== */
:root{
    /*colors*/
    --purple:#462f5e;
    --pale_purple: #dad5df;
    --cream:#f8f6eb;
    --yellow:#e1de91;
    --pale_yellow: #f5f3c7;
    --grey:rgb(68, 67, 67);
    --blue: rgb(19, 30, 61);
    
    /*fonts*/
    --logo: "American Typewriter";
    --title: "Helvetica Neue";
    --normal: Tahoma;
}

body{
    margin:0;
    font-family: Tahoma, Arial, sans-serif;
    background:var(--blue);
    color:var(--yellow);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    line-height:1.5;
    padding:100px;
    background: linear-gradient(rgba(19, 30, 61, 0.8), rgba(19, 30, 61, 0.8)), url("images/graph.jpg") center/cover;
}

main{
    padding-top: 100px;
    display: flex;
    justify-content: center; 
    align-items: center; 
    width: 100%;
}

.container{
    max-width:1000px;
    margin:32px auto;
    padding:0 16px;
}


/* FONTS ========================== */
h1{
    font-family: var(--title), Arial, sans-serif;
    font-size: 40px;

}

h2{
    font-family: var(--title), Arial, sans-serif;
    font-size: 32px;

}

h3{

    font-family: var(--title), Arial, sans-serif;
    font-size: 24px;

}

p{
    font-family: var(--normal), Georgia, serif;
    font-size: 20px;
}

ol{
    font-family: var(--normal), Georgia, serif;
    font-size: 20px;
}
label{
    color: var(--grey);

}

.spacer{
    height: 20px;
    width: 100%; 
}

/* NAV HEADER ========================== */
.topbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    height: 115px;
    background-color: var(--purple); 
    display: flex;
    align-items: center;

}

.flash-container {  /* for flash */ 
    color: red;
    /* margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px; */
}

header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 0;
    font-family: "American Typewriter", Georgia, serif;
    font-size:28px;
    width: 100%;
    padding-left: 10%;
    padding-right: 5%;
}

.logo{
    display:flex;
    justify-self: left;
    align-items:center;
    justify-items: left;
    color: var(--cream);
    font-size: 45px;
    gap:12px;
    font-weight: 600;
    text-decoration: none;
}

.logo:hover{
    opacity:0.8;
}

.aboutus{
    padding-top: 12px;
}
.aboutus:hover{
    opacity: 0.8;
}

nav{
    display: flex;
    gap: 20px;
    font-weight:400;
    font-size: 18px;
    font-family: Tahoma, Arial, sans-serif;
}

nav a{
    display:inline-grid; grid-template-columns: 3;
    color:var(--yellow);
    text-decoration:none;
}

/* FOOTER ========================== */
footer{margin:36px 0 12px;color:var(--cream);font-size:14px;text-align:center}

/* BUTTONS ========================== */
.btn{
    padding-left: 20px; padding-right: 20px;
    padding-top: 10px; padding-bottom: 10px;
    font-weight:400;text-decoration: none;
    justify-content: center;
    align-content: center;
}
.circle{
    width:170px; border-radius:30px;
    white-space: nowrap;
}
.square{
    width: 80px;
}
.long{
    padding-left: 80px; padding-right: 80px; padding-top: 10px; padding-bottom: 10px;
}
.yellowb{
    background:var(--yellow);color: var(--grey);border-width: 1px;border-style: solid; border-color:var(--yellow);
}
.purpleb{
    background-color:var(--purple) !important ;color: var(--cream) !important;border-width: 1px;border-style: solid; border-color:var(--cream); 
}

.blueb{
    background-color:var(--blue) !important ;color: var(--cream) !important;border-width: 1px;border-style: solid; border-color:var(--cream); 
}

.greyb{
    background-color:var(--grey) !important ;color: var(--cream) !important;border-width: 1px;border-style: solid; border-color:var(--cream); 
}

.creamb{
    background-color:var(--cream) !important ;color: var(--grey) !important;border-width: 1px;border-style: solid; border-color:var(--grey); 
}
.btn:hover{
    opacity:0.8
}

.center{
    display: flex;
    justify-content: center;
}

.alert{
    background-color: #F5F2A8;
    border-color: #bb303c;
    border-style: solid;
    border-width: 5px;


}
/* CARDS ========================== */

.card{
    padding:16px;
    border-radius:12px;
    display: block;
    justify-content: center;
    align-items: flex-start;
    background: none;
    width: 80%;
}

.card_100{
    width: 100%;
    padding: 2%
}
.cream_bg{
    background:var(--cream);
}

.yellow_bg{
    background:var(--yellow);
}

.blue_bg{
    background:var(--blue);
}

.purple_bg{
    background:var(--purple);
}


.grey_txt{
    color: var(--grey);
}
.hero{
    display: flex;
    background: none; 
    justify-content: left;
}

.cream-gradient{
    background: linear-gradient(to bottom, rgba(248, 246, 235, 1), rgba(248, 246, 235, .5));
}

.yellow-gradient{
    background: linear-gradient(to bottom, rgba(225, 222, 145, 1), rgba(225, 222, 145, .5));
}

.grey-gradient{
    background: linear-gradient(to bottom, rgba(68, 67, 67, 1), rgba(68, 67, 67, .5));

}
/* CARD HEADER ========================== */
.header{
    display:flex;
    align-content: center;
    padding-left: 20px;
    border-radius: 20px;
}

.card_square{
    border-radius: 0px;
    width: 400px;

}


/* LOGIN ========================== */

.top-grid {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    display:grid; grid-template-columns: repeat(3, 1fr);
    width: 100.3%;
}

.login-option {
    display: block;
    text-align: center;
    font-weight: 600;
    padding: 20px;
    border: none;
}


.login-card {
    position:relative;
    width: 100%;
    max-width: 400px;
    padding: 32px;
    text-align: center;
    flex-direction: column;
    align-items: unset;
}

.login-active{
    border: none;
    background: var(--purple);
    color: var(--cream);
    text-decoration: none;
}

.login-inactive{
    border: none;
    background: var(--yellow);
    color: var(--grey);
    opacity: 0.8;
    text-decoration: none;

}


.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.login-form label {
  text-align: left;
  font-size: 14px;
  margin-bottom: -10px;
}

.login-form input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    font-size: 16px;
}
.sponsor-exam-form {
    gap: 16px;
    margin-top: 20px;
    width: 94%;
    border-radius: 30px;
    padding: 20px;
    padding-left: -20px;
}
.sponsor-exam-form-grid{
    display:grid; grid-template-rows: auto auto auto; grid-template-columns: auto auto;
    gap: 16px
}

.reg-form-grid{
    display:grid; grid-template-rows: auto auto auto auto; grid-template-columns: auto auto;
    gap: 16px
}
.sponsor-exam-form label {
    color: var(--cream);
    text-align: left;
    font-size: 18px;
    margin-bottom: -10px;
}

.sponsor-exam-form input {

    padding: 10px 12px;
    border: 1px solid #ccc;
    font-size: 16px;
    border-radius: 15px;
}

/* CONFIRMATION PAGES ========================== */
.confirmation{
    width: 40%;

}
.confirmationb{
    display:grid; grid-template-rows: 2;
    justify-content: center;
    align-content: center;
    gap: 20px;
}
.yellow-block{
    display: block;
    padding: 5%;
    background-color: var(--yellow);
    border-radius: 20px;
    height: 90%;
    width: 90%;
}

/* CONTRACT TABLE ========================== */
table{
    padding: 20px;
    width:  100%;
    border: 1px solid var(--grey);
    border-collapse: collapse;
}


/* AVAILABILITY TABLE ========================== */


th, td{
    padding: 10px;
}

th{
    font-size: 20px;
    background-color: var(--blue);
    color: var(--yellow);
}

.availability {
    text-align:center;
    font-size: 18px;

}

.contract{
    text-align:left;
    font-size: 18px;   
}

tr:nth-child(odd) {
  background-color: var(--cream);
  color: var(--grey);
}

tr:nth-child(even) {
  background-color: var(--grey);
  color: var(--cream);
}

.exam_reg_header{
    width: 100%;
}

.exam_reg_sponsor{
    padding: 5px;
    color: var(--grey);
    margin: 0;
}

.exam_reg_exam_name{
    padding: 5px;
    color: var(--grey);
    margin: 0;
}

.appointment_deets{
    display: grid;
    grid-template-rows: auto; grid-template-columns: auto auto auto;
    gap: 20px;

}

.city-input {
    width: 50%;       
    padding: 7px;      
    font-size: 16px;   
    border-radius: 8px; 
    border-color:var(-cream)
    
}

.schedule-exam-header{
    display:grid; grid-template-rows: auto auto; grid-template-columns: auto;
    margin:0;
    gap: 0px
}

.rounded{
    border-radius: 20px;
}

.schedule-exam-header h2,
.schedule-exam-header h3 {
    margin: 0;
    padding: 0;
    padding-left: 15px;
}

.availability_search{
    background-color: var(--pale_yellow);
    border-color: var(--purple) !important;
    border-width: 4px !important;
    border-style: solid;
    border-radius: 30px;
}

.exam_reg_grid{ 
    display:grid;grid-template-columns: 1.5fr 3fr 2fr;
    justify-items: left;  
    gap: 16px;
    color: var(--grey) !important;
    font-size: 18px;
}

.exam_reg_grid select {
    width: 80%;
}

.exam_reg_grid button {
    justify-items: center; 
    width: 80%;
    font-size: 16px
}

.exam_reg_grid label{
    color: var(--cream)
}

.payment_grid{ 
    display:grid;grid-template-columns: 1fr 2fr 1fr 2fr ;grid-template-rows: auto auto;
    justify-items: left;  
    gap: 16px;
    font-size: 18px;
}
.payment_grid input{ 
    width: 80%;
    height: 100%
}
.payment_grid label{
    color: var(--cream)
}

.payment_grid nav {
    grid-column: 1 / -1 !important; 
    width: 30%;
    justify-self: center; 
}

input:invalid {
    border: 2px solid red;
}

.time_slot_grid{
    display:grid; grid-template-columns:  auto auto;
    justify-items: left;  
}