@font-face {
  font-family:OpenDyslexic3;
  src:url(OpenDyslexic-Regular.woff2) format('woff2'),
  url(OpenDyslexic-Regular.woff) format('woff');
  font-weight:400;
  font-style:normal;
  font-display:swap
}

h1 {
  color: #ce0000;
  font-family: OpenDyslexic3;
  text-align: left;
}

.header-image {
    text-align: center;
}

.float-right-body {
    float: right;
    max-width: 30%;
    margin-left: 4%;
}

.centred-inline-body {
    max-width: 80%;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align:justify;
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    /*font-weight: <weight>;*/
    font-style: normal;
}

.footer {
    margin-top: 40px;
    width: 100%;
    /*! align-content: space-around; */
    /*! justify-content: space-between; */
    display: flex;
}

.footer-item {
  max-width: default;
  display: inline;
  flex-grow: 1;
}


input[type=text], select, textarea {
  width: 100%; 
  padding: 12px; 
  border: 1px solid #ccc; 
  border-radius: 4px; 
  box-sizing: border-box; 
  margin-top: 6px; 
  margin-bottom: 16px; 
  resize: vertical;
}

input[type=submit] {
  background-color: #CE0000;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #B80000;
}


label {
    text-align: default;
    display: block;
}


:root {
    --base-grid: 8px;
    --colour-white: #fff;
    --colour-black: #1a1a1a;
}

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

#infoWrapper {
  margin: 0;
  padding: 0;
  background-position: 100%;
  height: 100%;
  width: 100%;
  justify-content: center;
  display: flex;
}

.links {
  --link-size: calc(var(--base-grid)*15);
  color: var(--colour-white);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  /*  min-height: 50vh;*/
  height: 600px;
  background-image: url("madj_lightglobe.png");
  background-repeat: no-repeat;
/*  background-position: 47% 51%;
  background-size: 27%;*/
}

.links__list {
  position: relative;
  list-style: none;
}

.links__item {
  width: var(--link-size);
  height: var(--link-size);
  position: absolute;
  top: 0;
  left: 0;
  margin-top: calc(var(--link-size)/-2);
  margin-left: calc(var(--link-size)/-2);
  --angle: calc(360deg/var(--item-total));
  --rotation: calc(140deg + var(--angle)*var(--item-count));
  transform: rotate(var(--rotation))
	     translate(calc(var(--link-size) +
			    var(--base-grid)*11))
	     rotate(calc(var(--rotation)*-1));
}

.links__link {
  background-image: radial-gradient( circle farthest-corner at 22.4% 21.7%, rgba(242,25,25,0.62) 0%, rgba(206,0,0,1) 100.2% );
  /*background: linear-gradient(to right, #ff9966, #ff5e62);*/
  /*background-image: linear-gradient(to right, #25aae1, #4481eb, #04befe, #3f86ed);*/
  background-size: 300% 100%;
  box-shadow: 0 4px 15px 0 rgba(215, 0, 0, 0.75);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 0 1em;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  moz-transition: all .4s ease-in-out;
  -o-transition: all .4s ease-in-out;
  -webkit-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
}

.links__icon {
  width: calc(var(--base-grid)*10);
  height: calc(var(--base-grid)*8);
  transition: all .3s ease-in-out;
  fill: var(--colour-black);
}

.links__link:before {
  content: "";
  background-color: transparent;
  width: var(--link-size);
  height: var(--link-size);
  border: 2px dashed #ce0000;
  display: block;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all .3s;
  transform: none;
  opacity: 0;
}

.links__link:hover  {  
  color: #fff;
  text-decoration: none;
  background-position: 50% 0;
  moz-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
  -webkit-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}

.links__link:hover:before {
  transform: scale(1.1);
  opacity: 1;
}



 /* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  p {
    font-size:18px;
  }
  h1 {
      font-size: 16px;
  }
  :root {
      --base-grid: 5px;
  }
  .links {
      /*--link-size: calc(var(--base-grid)*15);*/
      background-position: 103px 137px;
      background-size: 100px;
      width: 350px;
      height: 400px;
      margin-left: 33px;
  }
  .links__item {
      font-size: 7pt;
  }
  .footer {
      flex-direction: column;
  }
}



.error {
    color: red;
    font-weight: bold;
    float: right;
    margin-top: -23px;
}



/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  p {
    font-size:18px;
  }
  h1 {
      font-size: 22px;
  }
  form {
      width:300px;
  }
  .links {
      background-position: 75px 100px;
      background-size: 100px;
      width: 300px; 
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  div {
    max-width: 700px;
  }
  form {
      width:500px;
  }
  .links {
      background-position: 175px 190px;
      background-size: 200px;
      width: 600px; 
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  div {
    max-width: 800px;
  }
  form {
      width:800px;
  }
  .links {
      background-position: 175px 190px;
      background-size: 200px;
      width: 600px; 
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  div {
    max-width: 900px;
  }
  form {
      width:800px;
  }
  .links {
      background-position: 175px 190px;
      background-size: 200px;
      width: 600px; 
  }
} 
