:root {
    --paleBlue: #ECF3F8;
    --shirtBlue: #b0d4ff;
    --paleGreen: #E2F3EF;
    --paleYellow: #F8F0DC;
    --paleGrey: #f2f2f2;
    --GT-black: #212121;
    --GT-dkGrey: #454545;
    --GT-green: #004A31;
    --GT-khaki: #49562f;
    --GT-brown: #693219;
    --GT-blue: #267BD9;
    --GT-ltBlue: #748fe5;

    --shade: #00000050;
    --bodycopy: .8rem;
    --keyColour: var(--GT-ltBlue);
    --panelColour: var(--paleBlue);
    --background: var(--shirtBlue);
    --panelWidth: 100%;
    --imagePattern: url(./images/twillB.svg);
}

html {
    scroll-behavior: smooth;
    background-color: var(--GT-black);
    width: 100%;
    justify-items: center;
}

* {
    box-sizing: border-box;
    margin: 0;
    border: 0;
    text-decoration: none;
    overflow-x: hidden;
}
  
#modal {
    background-image: var(--imagePattern);
    background-blend-mode: multiply;
    background-repeat: repeat;
    background-size: 6px;
    background-color: var(--background);
    top: 0;
    left: 0;
    position: fixed;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;

    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#modal img {
    position: absolute;
}
@keyframes rotate {
    to {
        transform: rotate(-360deg);
    }
}

#motto {
    animation: rotate 60s linear infinite ;
}

#modal.fade-out {
    opacity: 0;
    visibility: hidden;
  }

body {
    display: grid;
    grid-template-columns: 10vw 1fr 10vw;
    grid-template-rows: auto;
    width: 100dvw;
    max-width: 1200px;
    background-image: var(--imagePattern);
    background-blend-mode: multiply;
    background-repeat: repeat;
    background-size: 6px;
    background-color: var(--background);
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-style: normal;
}
header {
    grid-column: 1/ span 3;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}
#aboutCopy {
    column-count: 2;
    column-gap: 6%;
    column-rule: 1px dotted var(--keyColour);
    margin: 20px 12px;
}
#aboutCopy>p {
    margin-bottom: 8px;
}



.backPanel {
    background-color: var(--panelColour);
    width: var(--panelWidth);
    border-radius: 4px;
    max-width: 580px;
    padding: 6% 3%;
}
#about {
    padding-bottom: 3%;
}
#slideShow {
    grid-column: 1 / span 3;
}

/* Carousel styling */


.carousel {
    position: relative;
    width: 100%;
    height: auto;
    margin: auto;
    max-width: 1024px;
    overflow: hidden;
  }
  .slides {
    display: flex;
    transition: transform 0.4s ease;
    overflow: visible;
  }
  .slides img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    border-radius: 4px;
  }

  .indicators {
    text-align: center;
    margin-top: 10px;
  }
  .indicators button {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 8px;
    border-radius: 50%;
    border: none;
    background-color: white;
    cursor: pointer;
  }
  .indicators button.active {
    background-color: var(--GT-black);
  }
/* End carousel styling */
button {
    height: 33px;
    background-color: var(--keyColour);
    color: white;
}

.centreGrid {
    grid-column: 2;
    justify-items: center;
}

#charter {
    text-align: center;
}
.charterList img {
    padding: 12px 0;
    width: 80%;
    margin: 0 auto;
    cursor: pointer;
}
.charterList img:last-child {
    margin-bottom: 18px;
}

#charterIcon {
    height: 77px;
    margin-bottom: 12px;
}
.clientQuote {
    display: grid;
    grid-template-columns: 100px 1fr;
    font-size: var(--bodycopy);
    align-items: center;
    margin: 44px 18px;
    padding-bottom: 14px;
}
.clientQuote:nth-child(odd){
    grid-template-columns: 1fr 100px;
}
.clientQuote .portrait {
    height: 99px;
    border-radius: 50%;
    transform: translateY(12px);
    border: 1px solid white;
}
#contact {
    text-align: center;
}
#directions {
    font-size: 10px;
    margin: 12px;
    /* margin-top: 12px; */
}
#dragDesktop {
    display: flex;
    font-size: 8px;
    font-weight: 600;
    text-align: right;
    justify-self: end;
    margin-top: 10px;
    color: var(--keyColour);
}
#explainerPanel {
    font-family: Yesteryear, serif;
    color: var(--keyColour);
    font-weight: 100;
    font-size: 3rem;
    line-height: 1.1;
    width: 100%;
    padding: 3% 1%;
    aspect-ratio: 2.8/1;
    margin: 3%;
    overflow-y: hidden;
    align-content: center;
    justify-content: center;
}
#explainerPanel {
    transition: opacity 0.3s ease;
    opacity: 1;
  }
  #explainerPanel.fade-out {
    opacity: 0;
  }
  #explainerPanel.fade-in {
    opacity: 1;
  }
#form-error {
    height: 20px;
    width: 100%;
    color: rgb(160, 0, 0);
    font-weight: 400;
    margin: 8px auto;
}
/* #form-error::after {
    content: 'Error messages';
} */

#form-panel {
    display: grid;
    width: 90%;
    margin: auto;
    min-width: 280px;
    justify-self: center;
    padding: 2% 6vw;
}

#form-panel p:last-of-type {
    font-size: .6em;
}
#form-panel input, #form textarea, button {
    border-radius: 3px;
    margin-top: 6px;
    justify-self: center;
}
h2 {
    font-weight: 500;
    font-size: 1.2rem;
    text-align: center;
}

.heading {
    width: 70%;
    display: block;
    margin: 2% auto 0 auto;
}

input {
    height: 33px;
    background-color: white;
}
input::placeholder, textarea::placeholder {
    color: var(--keyColour);
    opacity: .4;
}
input, textarea, button {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    margin: 12px 0;
}
textarea {
    resize: none;
    padding: 8px;
}

label {
    color: var(--keyColour);
}
.leftFacing p {
    text-align: left;
    padding-left: 12px;
}

.rightFacing p   {
    text-align: right;
    padding-right: 12px;
}
#logo {
    width: 100%;
    padding: 0 25%;
    margin-bottom: 4%;
}

#logoPanel {
    /* min-width: 280px; */
    /* width: 100vw; */
    /* max-width: 600px; */
    /* margin: 6.2vw auto; */
    /* aspect-ratio: 1.618/1; */
    /* background-image: radial-gradient( var(--panelColour) 65%, #081725 100%); */
    /* border: var(--GT-black) solid .8vw; */
    /* box-shadow: 4px 6px 16px rgba(29, 29, 29, 0.7); */
    /* border-radius: 50%; */
    padding: 8vw 0 3vw 0;
    place-content: center;
    background-color: var(--panelColour);
    /* background-image: url('./images/paper.webp');
    background-size: cover; */
}

nav {
    display: flex;
    /* overflow-x: hidden; */
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
    margin: 0 auto;
    padding: 0 25%;
}

nav > a {
    color: var(--GT-black);
    padding: 0 2.5%;
}
p {
    font-size: var(--bodycopy);
    line-height: 1.5;
}

#recommend div:first-of-type {
    display: grid;
    justify-items: center;
}
#tape {
    transform: translate(20px, 44px);
    width: 40%;
    margin-bottom: 22px;
    z-index: 0;
    }
section {
    padding: 4% 5% 7% 5%;
    margin: 4vh auto;
}
.stars {
    width: 100%;
}

footer {
    margin: 40px auto 80px auto;
}

#widget {
    margin: 0 auto;
    width: 100%;
}
#widgetImage {
    width: 100%;
    border: 2px white solid;
    border-radius: 50%;
}


@media screen and (max-width: 1200px) {
    #explainerPanel {
        aspect-ratio: 2.7/1;
        margin-top: 2%;
    }
    .heading {
        width: 80%;
        }
}

@media screen and (max-width: 1024px) { 
    #explainerPanel {
    font-size: 2.8rem;
    margin: 2%;
    }

}
@media screen and (max-width: 768px) {
    #explainerPanel {
        font-size: 2.7rem;
        aspect-ratio: 3.3/1;
        }
    nav {
        font-size: 13px;
    }
    section {
        margin: 2.8vh auto;
    }
}
@media screen and (max-width: 600px) {
    #explainerPanel {
        font-size: 2.4rem;
        aspect-ratio: 2.9/1;
    }
    /* #aboutCopy {
        column-count: 2;
        } */
    nav {
        font-size: 12px;
    }
}

@media screen and (max-width: 500px) {
    #logoPanel {
        aspect-ratio: 1.517 /1;
    }
    body {
        grid-template-columns: 1fr;    
        border: none;
        padding: 8px;  
    } 
    #charterIcon {
        height: 12vw;
    }
    h2 {
        font-size: 1rem;
    }

    #explainerPanel {
        font-size: 2.5rem;
        aspect-ratio: 2.9/1;
    }
    #aboutCopy {
        column-count: 1;
        }
    nav {
        display: none;
    }
    #logo {
        padding: 3% 10% 7% 10%;
    }

    .backPanel, #logoPanel {
        border-radius: 22px; 
    }
    #logoPanel {
        aspect-ratio: 1.618/1;
    }
    .charterList > img {
        width: 98%;
    }
    .heading {
        width: 95%;
    }
    #tape {
        width: 48%;
    }
    #slideShow {
        padding: 0;
    }
    footer {
        margin: 22px auto 44px auto;
        padding: 0 22px;
     
    }

}
@media screen and (max-width: 425px) {
    #explainerPanel {
        font-size: 2.2rem;
        width: 100%;
        aspect-ratio: 2.4/1;
        margin-top: 10px;
    }
}
@media screen and (max-width: 375px) {
    #explainerPanel {
        font-size: 1.9rem;
        margin-top: 12px;
    }
    .heading {
          width: 100%;
    }
    section {
        margin: 2vh auto;
    }
    #tape {
        margin-bottom: 20px;
    }

}