@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300&display=swap');

*{
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    align-items: center;

}
@keyframes transitionIn {
    from{
        opacity: 0;
        transform: rotateX(-10deg);
    }
    to{
        opacity: 1;
        transform: rotateX(0);
    }
}
::-webkit-scrollbar{
    width: 1em;
}
::-webkit-scrollbar-track{
    background: hwb(11 32% 10%);
}
::-webkit-scrollbar-thumb{
    background: #275C88
}
body{
    background-color: #284e5f8f;
    z-index: -1;
}
header {
    box-shadow: 0 3px 5px -2px rgba(0,0,0,.5);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: fixed;
    width: 100%;
    z-index: 999;
  }
  .logo {
    cursor: pointer;
    padding: 0 1rem;
    border-radius: 50%;
    margin-left: 5%;
  }
  .toggle {
    cursor: pointer;
    padding: 25px 20px;
    position: relative;
  }
  nav {
    flex: 1 1 100%;
    margin-right: 5%;
  }
  nav ul {
    list-style: none;
  }
  #mobile-icon,
  [id^="submenu"] {
    display: none;
  }
  nav a,
  nav label {
    font-weight: 500;
    font-size: 16px;
    color: #275C88;
    background: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    height: 64px;
    transition: background 0.4s ease-out;
  }
  nav a:hover,
  nav label:hover {
    background: #eee;
  }
  .arrow {
    margin-left: 9px;
    margin-top: 4px;
    color: #EF6F52;
    font-size: 10px;
    cursor: default;
  }
  section:nth-of-type(1) {
    padding-top: 6rem;
  }
.pic1_container{
    position: absolute;
    top: 8.5rem;
}

.pic1_content{
    animation: transitionIn 3s;
    position: absolute;
    width: 100%;
    margin: auto;
    top: 19rem;

}
.pic1_content h3{
    animation: transitionIn 3s;
    text-align: center;
    color: white;
    align-items: center;
    font-family: 'roboto', sans-serif;
    letter-spacing: 1.5px;
    font-size: 3rem;
    line-height: 1.6;
}
.view{
    font-family: 'roboto', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    align-items: center;
    font-size: 30px;
    text-decoration: none;
    padding: 5px 18px;
    background-color: hsl(207, 55%, 34%, 0.85);
    border: none;
    letter-spacing: 0.1rem;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    position: relative;
    top: 5rem;
    right: 0;
    
}
.view:hover{
    background: hsl(11, 83%, 63%, 0.8);
    transition: transform ease 100ms;

}
.historycard
{
    margin: 0 auto;
    grid-column-end: span 4;
    display: flex;
    flex-direction: column;
    background-color: white;
    transition: all 0.3s ease 0s;
    width: 40%;
    height: 67%;
    padding: 15px;
    border-radius: 10px;
    position: absolute;
    top: 85rem;
    left: 50%; 
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 5px 5px rgba(0,0,0,.2);
}

.cardtitle{
    position: relative;
    top: 5rem;
}
.cardtitle h2{
    color: rgb(255, 255, 255);
    z-index:999;
    position: relative;
    font-family: "Roboto", sans-serif;
    font-size: 40px;
}
.card__image-container
{
    width: 97%;
    bottom: 4rem;
    padding-top: 56.25%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    z-index: 1;
}

.card__image-container img
{
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 10px;
    border: 2px solid #275C88
}

.card__content
{
    position: relative;
    bottom: 4rem;
    padding: 20px;
    color: #275C88;
}

.card__title
{
    margin-bottom: 20px;
}

.card__info
{
    display: flex;
    align-self: end;
    align-items: center;
}

.cardextra
{
    margin-left: auto;
    padding: 5px 20px;
    background-color: #EF6F52;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #EF6F52;
    color: white;
    padding: 5px 18px;
    cursor: pointer;
}
.cardextra:hover{
    color: #EF6F52;
    background-color: #275C88;
    border: 1px solid #275C88;
    transition: transform 500ms ease;
}
.containers{
    top: 105rem;
    align-items: center;
    position: relative;
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    line-height: 1.5;
    column-gap: 225px;
    
}
.card{
    position: relative;
    color: white;
    background-position: center center;
    background-size: cover;
    padding: 25em 0 0;
    max-width: 50ch;
    border-radius: 0.7em;
    overflow: hidden;
    background-image: url("propic.jpg");
    transition: transform 1000ms ease;
    box-shadow: 0 5px 5px 5px rgba(0,0,0,.2);
    margin-bottom: 15em;
}
.card:hover{
    transform: scale(1);
}
.card:hover .card_content{
    box-shadow: inset 0 0 15px hsl(207, 55%, 34%, 0.85);
    transform: translateY(0);
}
h2{
    letter-spacing: 1px;
    margin-bottom: 25px;
}
.card_content{
    --padding: 1rem;
    padding: var(--padding);
    background: hsl(207, 55%, 34%, 0.85);
    transform: translateY(62%);
    transition: transform 500ms ease;
}
.card_title{
    position: relative;
}
.card_title::after{
    content: "";
    position: absolute;
    height: 3px;
    left: calc(var(--padding)* -1);
    bottom: 0;
    width: 110%;
    background: white;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 1000ms ease;
}
.card:hover .card_title::after{
    transform: scaleX(1);
}
.card_button{
    color: white;
    position: relative;
    left: 20.5rem;
}
.student{
    background-image: url("bristol.jpg");
}.contact_container{
    top: 90rem;
    position: relative;
    width: 76%;
    margin: 130px auto;
    color: #EF6F52;
    box-shadow: 0 5px 5px 5px rgba(0,0,0,.2);
    background-color: white;
}
.contact_container h1{
    margin-bottom: 18px;
    padding-top: 20px;
    padding-left: 1.8em;
    padding-bottom: 0.29em;
}
.contact_box{
    display: flex;
}
.contact_left{
    flex-basis: 60%;
    padding: 40px 60px;
    color: #275C88;
}
.contact_right{
    flex-basis: 40%;
    padding: 40px;
    height: 440px;
    background-color: #275C88;
    color: white;
}
.contact_right h2{
    letter-spacing: 1px;
    font-weight: 550;
    margin-bottom: 100px;
    font-size: 38px;
    font-size: bold;
}
.contact_details{
    position: relative;
    bottom: 70px;
}
tr td{
    padding-top: 30px;
}
tr td:first-child{
    padding-right: 100px;
}
.cf_row{
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}
.cf_row .cf_group{
    flex-basis: 45%;
}
input{
    width: 100%;
    border: none;
    outline: none;
    border-bottom: 1px solid #ccc;
    padding-bottom: 3px;
}
input:focus::placeholder {
    color: transparent;
  }

.message_box{
    margin-top: 3px;
    width: 100%;
    border: 1px solid #ccc;
    outline: none;
    box-sizing: border-box;
    padding: 10px;
}
.message_box:focus::placeholder{
    color: transparent;
}
.sb_btn{
    width: 100%;
    text-decoration: none;
    padding: 5px 18px;
    color: white;
    position: relative;
    background-color: #EF6F52;
    border-radius: 20px;
    border: 1px solid #EF6F52;
    letter-spacing: 0.08rem;
    margin-top: 20px;
    cursor: pointer;
}
.sb_btn:hover{
    color: #EF6F52;
    background-color: white;
    border: 1px solid #EF6F52;
    transition: transform 500ms ease;
}

footer{
    position: relative;
    background: #111;
    width: 100%;
    padding-top: 50px;
    color: #fff;
    top: 90rem;
}
.foot_content{
    width: 75%;
    margin: 0 auto;
    position: relative;
    bottom: 1.7em;
}
.foot_content p{
    display: inline-block;
    position: relative;
    font-family: 'Roboto Mono', monospace;
    top: 0.5em;
}
.foot_content img{
    filter: invert(1);
    position: relative;
    float: right;
    cursor: pointer;
}
.reveal{
    transform: translateY(150px);
    opacity: 0;
    transition: all 1.5s ease;
}
.reveal.active{
    transform: translateY(0px);
    opacity: 1;
}
 /*-------desktop nav --------*/
 @media (min-width: 1120px) {
    header {
      flex-wrap: nowrap;
    }
    nav,
    .logo {
      flex: none;
    }
    .toggle,
    nav label {
      display: none;
    }
    nav ul {
      display: flex;
    }
    nav li {
      position: relative;
    }
    nav ul ul {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.2s ease-out;
    }
    li:hover > ul {
      max-height: 100vh;
      overflow: visible;
    }
    [class^="submenu"] {
      flex-direction: column;
      position: absolute;
    }
    .submenu-1 a, .submenu-2 a{
        background-color: white;
        width: 150px;
    }
  
  }  
  @media (max-width: 1570px){
    .historycard{
        top: 80rem;
    }
    
  }
  @media (max-width: 1370px){
    .pic1_content h3{
        position: relative;
        bottom: 3em;
    }
    .pic1_content a{
    top: -3rem;
    }
    
  }
@media (max-width: 1300px){
    .logo img{
      width: 400px;
    }
    .pic1_content h3{
        font-size: 40px;
    }
    .historycard{
        top: 65rem;
    }
    .containers{
        top: 82rem;
    }
    .contact_container{
        top: 68rem;
    }
    footer{
        top: 68rem;
    }
  }

  /*------- mobile nav --------*/
  @media (max-width: 1120px) {
    nav ul {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-out;
    }
    #mobile-icon:checked ~ nav > ul {
      max-height: 100vh;
    }
    .nav-items ul {
      padding-left: 1rem;
    }
    [id^="submenu"]:checked ~ [class^="submenu"] {
      max-height: 100vh;
      overflow: visible;
    }
  
    .hamburger-icon {
      width: 18px;
      height: 3px;
      background-color: #EF6F52;
      display: block;
      position: relative;
    }
    .hamburger-icon:before,
    .hamburger-icon:after {
      content: "";
      display: block;
      width: 100%;
      height: 100%;
      position: absolute;
      background-color: #275C88;
      transition: all 0.2s;
    }
    .hamburger-icon:before {
      top: 5px;
    }
    .hamburger-icon:after {
      top: -5px;
    }
    #mobile-icon:checked ~ .toggle {
      border-radius: 50em;
      transition: all 0.2s ease-out;
    }
  
    /* mobile nav change hamburger to x on click */
    #mobile-icon:checked ~ .toggle .hamburger-icon {
      background-color: transparent;
    }
    #mobile-icon:checked ~ .toggle .hamburger-icon:before {
      top: 0;
      transform: rotate(45deg);
    }
    #mobile-icon:checked ~ .toggle .hamburger-icon:after {
      top: 0;
      transform: rotate(-45deg);
    }
    .hide-mobile {
      display: none;
    }
    .pic1_container{
        position: relative;
        top: 7rem;
    }
    .pic1_content h3{
        font-size: 32.5px;
    }
    .pic1_content a{
        font-size: 24px;
    }
    .historycard{
        top: 60rem;
    }
    .containers{
        top: 50rem;
    }
    .contact_container{
        top: 40rem;
    }
    footer{
        top: 40rem;
    }
  }
@media screen and (max-width:960px){

    .historycard
    {
        top: 55rem;
        width: 50%;
    }
    .pic1_content h3{
        bottom: 10rem;
        font-size: 29px;
    }
    .containers{
        position: relative;
        top: 50rem;
        display: flex;
        flex-direction: column;
    }
    .student{
        position: relative;
        bottom: 10rem;
    }
    .pic1_content a{
        top: -5rem;
    }
    .contact_container{
        position: relative;
        top: 25rem;
        width: 90%;
    }
    footer{
        top: 25rem;
    }

}
@media screen and (max-width:833px){
    .historycard{
        top: 52rem;
    }
    .pic1_content h3{
        top: -12rem;
        font-size: 25px;
    }
    .pic1_content a{
        position: relative;
        top: -10rem;
        font-size: 20px;
    }
    .wrap{
        bottom: 40rem;
    }
    .contact_box{
        font-size: 10px;
        display: flex;
        flex-direction: column;
        position: relative;
        bottom: 2rem;
    }
    .contact_right{
        padding: 10px;
        width: 100%;
    }    
    .cardtitle h2{
        bottom: 2rem;
        font-size: 28px;
    }
}
@media screen and (max-width:690px){
    .historycard{
        top: 45rem;
        font-size: 16px;
    }
    .pic1_content h3{
    font-size: 20px;
    }
    .view{
        font-size: 15px;
    }
    .historycard
    {
        width: 70%;
    }
}
@media screen and (max-width:566px){
    .pic1_content h3{
        top: -16rem;
        font-size: 18px;
    }
    .pic1_content a{
        top: -13rem;
    }
    .historycard{
        top: 43rem;
    }
    .containers{
        top: 44rem;
    }
    .card{
        width: 80%;
    }
    .contact_container{
        top: 20rem;
    }
    footer{
        top: 18rem;
    }
    .card_button{
        top: 8px;
        position: relative;
        left: 40%;
    }


}
@media (max-width: 520px){
    .logo img{
      width: 250px;
    }
    .pic1_container{
        top: 5rem;
    }
    .pic1_content h3{
        font-size: 15px;
    }
    .historycard{
        top: 36rem;
        height: 480px;
    }
    .card__content{
        font-size: 14px;
    }
    .foot_content img{
        position: relative;
        bottom: 0.25rem;
        left: 20px;
        display: block;
    }
  }
  @media (max-width: 445px){
    .card__image-container{
        margin-top: 10px;
    }
    .historycard{
        top: 34rem;
        width: 90%;
    }
    .card__content{
        font-size: 12px;
    }
    .containers{
        top: 40rem;
    }
    .card{
        width: 100%;
        max-height: 565px;
    }
    .card_button{
        color: #EF6F52;
        top: -1rem;
        position: relative;
    }
    .contact_container{
        top: 15rem;
    }
    .pic1_content a{
        top: -15rem;
        font-size: 12px;
    }
  }