:root {
    /* --main-colour: #3333EE; */
    --main-colour: #2b5f2b;
    /* --main-colour: #FF0000; */
    --secondary-colour: #fffefb;
    /* --secondary-colour: #001aff; */

    --colour-red: #FF0000;
    --colour-blue: #3333EE;
    --colour-green: #2b5f2b;

    --custom-colour: #535353;

    --navbar-button-radius: 25px;
    --navbar-button-height: 80px;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  color: var(--main-colour);
  background-color: var(--secondary-colour);
}

/* *::selection, *::-moz-selection, *::-webkit-selection {
    background: var(--main-colour);
    color: var(--secondary-colour);
} */

::selection {
    background: var(--main-colour);
    color: var(--secondary-colour);
}

.navbar {
    display:flex;
    justify-content:space-evenly;
    /* height: 7vh; */
    padding: 1em;
    padding-top: 0.5em;
    border-bottom: 0.1em solid var(--main-colour);
}

@media only screen and (max-width: 700px) {
    .navbar {
        gap: 10px;
    }
}

@media only screen and (min-width: 700px) {
    .navbar {
        gap: 0px;
    }
}

button {
    touch-action: manipulation
}


/* ================================================== link-outer ================================================== */

.link-outer {
    border: 0.1em solid var(--main-colour);
    background-color: var(--secondary-colour);
    border-radius: var(--navbar-button-radius);
    height:var(--navbar-button-height);
    display: flex;
    justify-content: center;
    align-items:center;
    flex-direction: row;
}

.link-outer.active {
    background-color: var(--main-colour);
}

@media only screen and (max-width: 700px) {
    .link-outer {
        margin: auto;
        width: 80vw;
        flex-direction: column;

        display: none;
    }

    .link-outer.active {
        display: flex;
    }
}

@media only screen and (min-width: 700px) {
    .link-outer {
        margin: 0px;
        width: 20vw;
        flex-direction: row;
    }
}

/* ================================================== link ================================================== */

.link {
    border: 0.1em solid var(--main-colour);
    background-color: var(--secondary-colour);
    color: var(--main-colour);
    
    height: 65px;

    display: flex;
    
    flex-direction: column-reverse;
    justify-content:center;
    align-items:flex-start;
}

/* nice values to initialize with */

@media only screen and (min-width: 700px) {
    .link {
        width: calc(20vw - 10px);
    }
}

@media only screen and (max-width: 700px) {
    .link {
        width: calc(80vw - 10px);
    }
}

@media (hover: hover) {
    .link:hover {
        background-color: var(--main-colour);
        color: var(--secondary-colour);
        cursor: pointer;
    }
}

.link.active {
    background-color: var(--main-colour);
    color: var(--secondary-colour);
    cursor: pointer;
}

/* ================================================== link-text ================================================== */

.link-text {
    text-align:left;
    text-decoration:none;
    font-weight: 700;
    font-size:x-large;
    /* width:100%; */

    /* padding-left: 0.4em; */
    padding-top: 1.2em;
}

/* ================================================== body-text ================================================== */

.body-text {
    text-align: justify;
    text-justify:newspaper;
}

@media screen and (min-width: 700px) {
    .body-text {
        margin-right: 32%;
        margin-left: 32%;
    }
}

@media screen and (max-width: 700px) {
    .body-text {
        margin-right: 10%;
        margin-left: 10%;
    }
    .body-text.wide {
        margin-right: 1%;
        margin-left: 1%;
    }
}

.body-text h1 {
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-weight: bolder;
    font-style: italic;
    font-size: xx-large;
    border-bottom: 0.07em dotted var(--main-colour);
    text-align: left;
}

.body-text h2 {
    font-weight: bolder;
    font-style:italic;
    text-decoration: underline;
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.15em;
    text-align: left;
}

.body-text p, li {
    font-weight: 700;

    list-style-type: square;
}

/* ================================================== clickables ================================================== */

a, a:visited, .link-general, .body-text button {
    font-weight: 600;
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-decoration: underline;
    font-style: italic;
    cursor: pointer;
    color: var(--main-colour);
}

@media (hover: hover) {
    a:hover, .link-general:hover, .body-text button:hover, .body-text button.selected {
        background: var(--main-colour);
        color: var(--secondary-colour);
    }
}

.body-text button.selected {
    background: var(--main-colour);
    color: var(--secondary-colour);
}

.body-text button {
    border: 1px solid var(--main-colour);
    background: var(--secondary-colour);
    text-decoration: none;
}

.body-text input[type="text"] {
    font-weight: 600;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-style: italic;
    color: var(--main-colour);
    border: none;
    border-bottom: 1px solid var(--main-colour);
    background: var(--secondary-colour);
}

.body-text input[type="text"]:focus {
    /* border: none; */
    outline: none;
}

.body-text input[type="text"]::placeholder {
    /* border: none; */
    color: var(--main-colour);
    opacity: 0.7;
}

/* ================================================== connections ================================================== */

@media only screen and (min-width: 1800px) {
    .connections-container {
        width: 70%;
        margin: auto;
    }

    .connections-help-container {
        width: calc(70% + 3px);
        margin: auto;
    }

    p.connections-category {
        font-size: xx-large;
    }

    p.connections-objects {
        font-size: large;
    }

    
    button.connections-button {
        font-size: large;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1800px) {
    .connections-container {
        width: 100%;
        margin: auto;
    }

    .connections-help-container {
        width: calc(100% + 3px);
        margin: auto;
    }

    p.connections-category {
        font-size: xx-large;
    }

    p.connections-objects {
        font-size: large;
    }

    button.connections-button {
        font-size: large;
    }
}

@media only screen and (min-width: 700px) and (max-width: 1200px) {
    .connections-container {
        width: 100%;
        margin: auto;
    }

    .connections-help-container {
        width: calc(100% + 3px);
        margin: auto;
    }

    p.connections-category {
        font-size: xx-large;
    }

    p.connections-objects {
        font-size: medium;
    }

    button.connections-button {
        font-size: small;
    }
}

@media only screen and (min-width: 400px) and (max-width: 700px) {
    .connections-container {
        width: 100%;
        margin: auto;
    }

    .connections-help-container {
        width: calc(100% + 3px);
        margin: auto;
    }

    p.connections-category {  
        font-size: x-large;
    }

    p.connections-objects {
        font-size: medium;
    }
    
    button.connections-button {
        font-size: 16px;
    }
}

@media only screen and (max-width: 400px) {
    .connections-container {
        width: 100%;
        margin: auto;
    }
    
    .connections-help-container {
        width: calc(100% + 3px);
        margin: auto;
    }

    p.connections-category {  
        font-size: large;
    }

    p.connections-objects {
        font-size: small;
    }
    
    button.connections-button {
        font-size: 15px;
    }
}

button.connections-button {
    font-weight: 600;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    cursor: pointer;
    color: var(--main-colour);
    text-align: center;
    text-wrap: pretty;
    padding-inline: 3px;
}

@media (hover: hover) {
    button.connections-button:hover {
        background-color: var(--secondary-colour);
        border: 1px solid var(--main-colour);
        transform: scale(0.98);
        color: var(--main-colour);
    }

    button.connections-button.selected:hover {
        background-color: var(--main-colour);
        border: 1px solid var(--secondary-colour);
        color: var(--secondary-colour);
    }
}

p.connections-category {
    color: var(--secondary-colour);
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-style: italic;
    padding: 15px;
    margin: 0px;
}

p.connections-objects {
    color: var(--secondary-colour);
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 600;
    padding: 5px 20px;
    text-align: right;
    margin: 0px;
}

p.connections-objects::selection, p.connections-category::selection {
    background: var(--secondary-colour);
    color: var(--main-colour);
}

@keyframes selectColourObject {
    0% { transform: scale(0.8); }
    100% { border-radius: scale(1.0); }
}

.connections-help-button {
    float:right;
    border: 1px solid var(--main-colour);
    width: 21px;
    text-align: center;
    padding-inline: 0px;
    text-decoration: none;
    font-size: 15px;
}

@media screen and (min-width: 1800px) {
    .connections-help-button {
        margin-top: 67px;
    }

    .connections-content-margin {
        margin-left: 15%;
        margin-right: 15%;
    }

    .connections-help-container {
        background:var(--main-colour); 
        aspect-ratio:1/0.995; 
    }
}

@media screen and (min-width: 700px) and (max-width: 1800px) {
    .connections-help-button {
        margin-top: 67px;
    }

    .connections-content-margin {
        margin-left: 1%;
        margin-right: 1%;
    }

    .connections-help-container {
        background:var(--main-colour); 
        aspect-ratio:1/0.992; 
    }
}

@media screen and (max-width: 700px) {
    .connections-help-button {
        margin-top: 67px;
    }

    .connections-content-margin {
        margin-left: 1%;
        margin-right: 1%;
    }

    .connections-help-container {
        background:var(--main-colour); 
        aspect-ratio:1/0.992; 
    }
}

/* ================================================== images ================================================== */

.logo {
    width: 100%;
    /* height: 100%; */

    fill: var(--main-colour);
    position:absolute;
    top:0;
    left:0;
}

.logo2 {
    width: 100%;
    /* height: 100%; */

    fill: var(--secondary-colour);
    position:absolute;
    /* top:0;
    left:0; */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

a.logo-container:hover .logo {
    fill: var(--secondary-colour);
}

a.logo-container:hover .logo2 {
    fill: var(--main-colour);
}

a.logo-container {
    width: fit-content;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
    aspect-ratio: 1;
    background: var(--secondary-colour);
    overflow:visible;
}

a.logo-container:hover {
    background: var(--main-colour);
}

@media (hover: hover) {
    a.logo-container:hover {
        background: none;
    }
}

.icons {
    width: auto;
    height: 10px;
    height:fit-content;
    display:flex;
    justify-content: space-evenly;
    padding: 1em;
    /* border: 0.1em solid var(--main-colour); */
}

.image {
    width: 80%;
    height: 80%;
    display: block;
    margin-left: 10%;
    margin-right: 10%;
    border: 0.11em solid var(--main-colour);
}

.image-small {
    width: 40%;
    height: 40%;
    display: block;
    margin-left: 30%;
    margin-right: 30%;
    border: 0.11em solid var(--main-colour);
}

.image-smaller {
    width: 20%;
    height: 20%;
    display: block;
    margin-left: 40%;
    margin-right: 40%;
    border: 0.11em solid var(--main-colour);
}

.map {
    width: 100%;
    height: 60vh;
    border: 0.2em solid var(--main-colour);
    display: block;
    margin: auto;
}

.map-container {
    display: flex;
    align-items: stretch;
    /* flex-direction: column; */
    padding: 7%;
    height:100%;
    /* border: 0.1em solid var(--main-colour); */
}

.colour-box {
    position:fixed;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: var(--main-colour);
    border: none;
    cursor: pointer;
}

@media (hover: hover) {
    .section-head:hover {
        background-color: var(--main-colour);
        color: var(--secondary-colour);
        cursor:pointer;
    }
}

.content-collapsible {
    overflow: hidden;
    transition: max-height 0.2s;
}