*, *::before, *::after { 
    box-sizing: border-box; 
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Segoe, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: rgb(70, 70, 70);
    font-size: 1.1rem;
    line-height: 1.7; 
    margin: 0;
    padding: 0;
}

h1 {
    float: left;
    font-size: 2.8rem;
    line-height: 1.1;
    text-wrap: balance;
    margin: 0; 
    color: white;
    display: flex;
    flex-direction: column;
}

h2, h3, h4, h5 {
    text-wrap: balance;
    color: rgb(53, 100, 126);
    font-weight: 600;
    margin: .5rem 0; 
}
h2 {font-size: 1.8rem;}
h3 {font-size: 1.5rem;}
h4 {font-size: 1.4rem;}
h5 {font-size: 1.3rem;}
a {
    font-weight: 600;
    text-decoration: underline;
    word-wrap: break-word;
}
a img {border: 0;}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
.img_maxh {max-height: 300px;}
p {word-wrap: break-word;}
ul {margin: 0;}
li {list-style: none;}
li a {word-break: break-all;}
a:link {color: rgb(0, 128, 128);}
a:visited {color: rgb(0, 128, 128);}
a:hover {color: rgb(102,51,153);}
a:focus {color: rgb(102,51,153);}
a:active {color: rgb(102,51,153);}
.center {text-align: center;}
p, li, figcaption { text-wrap: pretty;}
.mbs3 {margin-block-start: 3rem;}
.mbe1 {margin-block-end: 1rem;}
/* ------ HEADER ------ */
header {
    float: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100px;
    background-color: rgb(0, 128, 128);
    padding: .5em 0;
}
.logo {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
}
.logo a {
    display: flex;
    width: 40%;
    justify-content: center;
    align-items: center;
}
.logo_img {
    width: 100px;
    height: auto;
}
.title {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    padding: 0 0 0 .3rem;
}

.logo h2 {
    font-size: 1em;
    color: rgb(255, 255, 255);
    font-weight: 400;
    margin: 0;
    padding: 0;
}

nav {
    float: left;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}
nav ul {
    display: flex;
    flex-flow: wrap;
    justify-content: space-around;
    width: 100%;
    margin: 0;
    padding: .3em 0 0;
    align-content: center;
}
nav li { 
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    font-size: 1.4rem;
}
nav a {
    width: 100%;
    text-decoration: none;
    padding: .8rem;
    border-radius: 9px;
}
nav a:link {
    color: rgb(255, 255, 255);
}
nav a:visited {
    color: rgb(255, 255, 255);
}
nav a:hover {
    color: rgb(67, 83, 99);
    background-color: rgb(173, 216, 230);
    transition: all 0.6s ease-in-out;
}
nav a:focus {
    color: rgb(255, 255, 255);
    background-color: rgb(70, 130, 180);
}
nav li .active {
    color: rgb(0, 126, 117);
    background-color: rgb(255, 255, 255);
}

/* ------ MAIN ------ */
main {
    min-height:  calc( 100vh - 260px);
    display: flex;
    flex-direction: column;
    width: 100%;
    float: left;
}
.row {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---- hosting panels-cards ---- */
.managed_options {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex-flow: wrap;
    width: 100%;
    margin: 1rem 0;
    padding: 0;
    justify-content: space-around;
}
.option_card {
    display: flex;
    flex-direction: column;
    float: left;
    width: 90%;
    margin: .5rem 0;
    padding: .5rem;
    justify-content: space-between;
    align-items: center;
}
.option_title {
    display: flex;
    width: 100%;
    height: auto;
    text-align: center;
}
.option_title h3 {
    width: 100%;
    font-size: 1.3em;
    font-weight: 400;
    padding: 0.3em;
    margin: 0;
}
.option_img {
    display: flex;
    width: 100%;
    height: auto;
    justify-content: center;
}
.option_card p {
    margin: 0 .5em;
    text-align: center;
}
/* ---- other panels ----*/

.heading_full {
    width: 87%;
    padding: .5rem 0;
}
.panel,
.panel_sm,
.panel_med,
.panel_equal,
.panel_lrg,
.panel_xlrg,
.panel_full,
.heading_full,
.panel_sitemap {
    float: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 0;
    padding: .5rem 1rem;
}

.panel p,
.panel_sm p,
.panel_med p,
.panel_equal p,
.panel_lrg p,
.panel_xlrg p,
.panel_full p {
    margin: .375em 0;
}
.panel_text {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
.panel_img {
    height: auto;
    width: auto;
    max-width: 500px;
}

/* ---- CTA panels ----*/

.bg_col_grey {background-color: rgb(55, 61, 73);}
.cta {
    color: rgb(255,255,255);
    background-color: rgb(0, 128, 128);
    box-shadow: 8px 6px 13px rgba(0,0,0,0.2);
    margin: 1rem 0;
    align-self: center;
    height: fit-content;
    border-radius: 19px;
}
.cta_img {
    height: auto;
    max-width: 300px;
}

.cta h3 {
    color: rgb(255,255,255);
    font-size: 1.2em;
    font-weight: 400;
    margin-block: 0;
}
.cta a {
    color: rgb(255,255,255);
    padding: .5rem 1rem;
    margin: 0 0 1rem;
    border: solid 2px rgb(255, 255, 255);
    background-color: rgb(0, 128, 128);
    box-shadow: 8px 6px 13px rgba(0,0,0,0.2);
    transition-duration: 1s;
}
.cta a:hover {
    color: rgb(0, 128, 128);
    background-color: rgb(255,255,255);
    box-shadow: 0px 1px 6px rgba(0,0,0,0.2);
}
.support {
    display: flex;
    flex-direction: row;
}
/* ----- Positioning ----- */
.f-direct_row {flex-direction: row;}
.justify-center {justify-content: center;}
.justify-around {justify-content: space-around;}
.justify-between {justify-content: space-evenly;}
.align-center {align-items: center;}
.panel-top {margin: 1rem auto auto;}
.panel-left {margin: 0 0 0 1rem;}
.hi_light {
    font-size: 1.2rem;
    color: rgb(1, 121, 113);
    padding: 1rem;
    border: solid 1px;
    text-align: center;
    margin-block: 1rem;
    box-shadow: 0px 1px 5px rgba(0,0,0,0.2) inset;
    border-radius: 19px;
    a {font-size: 1.2rem;}
    h2, h3 {margin-block: 0;}
}
hr {
    margin: 0 auto;
    border: 0;
    height: 0;
    width: 80%;
    border-bottom: 1px solid rgba(0, 128, 128, 0.6);
}
/* ----- Form Fields ----- */

form {
  float: left;
  max-width: 600px; 
  min-width: 100%;
  margin: 0;
  padding: 10px 20px;
  background: rgb(248, 248, 255);
  border: 2px solid rgb(101, 151, 174);
}

input,
textarea,
select {
  cursor: pointer;
  background: rgb(255,255,255);
  font-family: inherit;
  font-size: 16px;
  height: auto;
  outline: 0;
  padding: 15px;
  color: rgb(105, 108, 113);
  border: 1px solid rgb(0, 128, 128);
  box-shadow: 2px 2px 3px rgba(0,0,0,0.06) inset;
  margin: 0 0 8px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
}
input[type="checkbox"] {margin: 0 4px 8px 0;}
select {
  padding: 6px;
  height: 32px;
  border-radius: 2px;
}

button {
  float: right;
  cursor: pointer;
  padding: 1em;
  color: rgb(0, 128, 128);
  background-color:  white;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
  font-style: normal;
  border-radius: 5px;
  border: 1px solid rgb(0, 128, 128);
  box-shadow: 0 -2px 0 rgb(0, 128, 128) inset;
  margin-bottom: 10px;
}

label {
    font-size: 1.1em;
    font-weight: 600;
    color: rgb(67, 83, 99);
    display: block;
}

.error {
    color: rgb(220, 20, 60);
    font-size: 1.2em;
}

button:hover {
    color: rgb(255, 255, 255);
    background-color: rgb(0, 128, 128);
}

/* ------ Sitemap ------ */
.panel_sitemap {
    width: auto;
    align-self: center;
}
.sitemap li {
    list-style-image: url(/img/jorvikhosting_sitemap_blue.svg);
    list-style-position: inside;
    padding: 1rem 1rem 0 1rem;
}
.sitemap li ul li{
    list-style-image: url(/img/jorvikhosting_sitemap_red.svg);
}
/*.sitemap li {*/
/*    padding: 1rem;*/
/*}*/
.sitemap li a {
    padding: 1rem;
    word-break: normal;
}

/* ------ Footer ------ */

footer {
    float: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    color: rgb(255, 255, 255);
    margin: 0;
    background-color:rgb(53, 100, 126);
    padding: .5rem 0 0 0;
}

footer p,
foot_label {
    color: rgb(255, 255, 255);
    text-align: left;
    margin: 0;
    padding: .3rem;
}
.foot_label {color: rgb(255, 255, 255, 255);}
.foot a,
.jas_bar p a {
    color: rgb(255, 255, 255);
    text-decoration: underline;
    position: relative;
}
.foot a:before,
.jas_bar p a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: rgb(255, 255, 255);
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

.foot a:hover:before,
.jas_bar p a:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);    
  background-color: rgb(255, 255, 255);
}
.no_hover a:hover {text-decoration: none;}
.foot {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 0 .5rem .5rem;
}
.address,
.social_link,
.foot_nav {
    float: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.address {
    justify-content: space-between;
    text-align: center;
    order: 2;
}
.social_link {order: 0;}
.foot_nav {order: 1;}
.jas_bar {
    float: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 0 .5rem;
    background-color: rgb(65, 112, 129);
    justify-content: center;
    align-items: center;
}
.jas_bar img {
    height: auto;
	width: 100%;
	max-width: 133px;
}
/* ------ SYSTEMS STATUS PAGE ------ */
/* ------ HEADER ------ */
.logo_systems_status {justify-content: space-around;}
.title_systems_status {width: auto;}
.h1span {
    color: rgb(255, 252, 186);
    font-size: 1.6rem;
}
/* ------ MAIN ------ */

.row_systems_status {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-self: center;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    margin-top: 1rem;
}
.panel_systems_status {width: 100%;}
.status_services {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    border: 1px solid rgb(103, 186, 175);
    background-color: rgb(240, 255, 240);
    padding: .5rem;
    margin: 1rem;
}
.img_managed {margin-block: 1.5rem;padding: 0;}
.support_message {max-width: 50ch;}
/*------------------ Media Queries -----------------------*/
@media only screen and (min-width: 28em) {  /* 448px */
    .logo {
        flex-direction: row;
    }
}
@media only screen and (min-width: 33.75em) {  /* 540px */
    h1 {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .h1span {
        padding-left: .5rem;
    }
    .option_card{
        width: 45%;
    }
    .foot {
        flex-direction: row;
        flex-flow: wrap;
    }
    .social_link {
        order: 1;
        width: 55%;
        align-self: center;
        align-items: flex-start;
        padding-left: 1rem;
    }
    .address {
        order: -1;
        width: 100%;
    }
    .foot_nav {
        order: 2;
        width: 45%;
        align-self: center;
        align-items: flex-end;
        padding-right: 1rem;
    }
    .address p {
        text-align: center;
    }
}
@media only screen and (min-width: 48em) {

    header {
        flex-direction: row;
    }
    .logo {
        width: 60%;
    }
    nav {
        width: 40%;
    }    
    .logo_systems_status {
        padding-left: 1rem;
    }
    .title_systems_status {
        padding-left: 1rem;
    }
    .row {
        flex-direction: row;
        padding: .25rem 0;
        flex-wrap: wrap;
    }
    .panel_sm {
        width: 30%;
    }
    .panel_med {
        width: 40%;
    }
    .panel {
        width: 50%;
    }
    .panel_lrg {
        width: 60%;
    }
    .panel_xlrg {
        width: 70%;
    }
    .panel_full {
        width: 85%;
    }
    .heading_full {
        width: 87%;
        padding: .25rem 0;
    }    
    .panel_sitemap {
        flex-direction: row;
    }
    .option_card{
        width: 30%;
    }
    .contact,
    .foot_nav {
        width: 25%;
    }
    .foot_nav {
        order: 1;
    }
    .row_systems_status {
        width: 80%;
    }
}

@media only screen and (min-width: 50.5em) {
    
    .move .panel_sm, .managed .panel_med {
        width: 20%;
    }
    .foot {
        flex-flow: nowrap;
    }
    .social_link {
        width: 30%;
        order: 0;
    }
    .address {
        width: 40%;
        order: 0;
        text-align: center;
    }
    .foot_nav {
        width: 30%;
        order: 1;
    }
}
@media only screen and (min-width: 64.5em) {

    header {
        flex-direction: row;
    }
    .logo {
        width: 45%;
    }
    nav {
        width: 55%;
    }    
    .logo_systems_status {
        width: 60%;
        justify-content: flex-start;
        padding-left: 1rem;
    }
    .title_systems_status {
        padding-left: 2rem;
    }
    .nav_systems_status {
        width: 40%;
    }
    .panel_systems_status {
        width: 60%;
    }
}