/* color schemes
#031926 - maastricht blue
#468189 - teal blue
#77ACA2 - green sheen
#9DBEBB - cambridge blue
#F4E9CD - champagne
https://coolors.co/031926-468189-77aca2-9dbebb-f4e9cd
*/
* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    width: 100%;
    background-color: #77ACA2;
    margin: 0;
    font-family: "Lucida Bright", Georgia, serif;
}

header {
    border: 10px groove #468189;
    text-align: center;
    color: #031926;
    background-image: url('../images/HullSpringsSill_Yr3_JBradshaw_clip2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.5);
    background-blend-mode: lighten;
}

main {
    padding: 2px;
}

footer {
    border: 2px solid black;
    text-align: center;
    font-size: 0.75rem;
    background-color: #77ACA2;
    margin: 0 2px;
}

h1 {
    font-size: 1.5rem;
}

p {
    padding: 0 5px;
}

form {
    padding: 5px 10px 10px;
}

hr {
    color: #468189;
    width: 98%;
    border-style: solid;
}

a {
    color: #031926;
}

a:focus {
    text-decoration: none;
    background-color: #F4E9CD;
    outline: 2px solid #031926;
    font-weight: bold;
    color: #468189;
}

a:hover {
    text-decoration: none;
    color: #F4E9CD;
    background-color: #468189;
}

input:focus {
    box-shadow: 0 0px 4px 4px #F4E9CD;
}

/* 
   Classes
-------------------------------  */
.alertDiv {
    margin-top: 5px;
    background-color: rgba(244, 233, 205, 0.99);
    color: #031926;
    font-weight: bold;
    text-align: center;
    display: none;
    border: 3px solid red;
    border-radius: 15px;
}

.formDiv {
    padding: 5px 10px 10px;
}

.inDiv {
    padding: 0px;
}

.intro {
    border: 4px solid #468189;
    padding: 0 20px 15px;
    background-color: #77ACA2;
}

.questionBlock {
    border: 4px groove #468189;
    margin: 2px;
    padding: 2px;
    background-color: #77ACA2;
}

.question {
    padding-left: 10px;
}

p.questParagraph {
    padding-right: 35px;
}

.help,
.help2,
.helpSS {
    border-top: 2px solid #468189;
    width: 98%;
    margin: 0 auto;
    background-color: #81b1a9;
}

.photoset,
.photoset2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

figure {
    border: thin #031926 solid;
    display: flex;
    flex-flow: column;
    padding: 5px;
    margin: auto;
}

figcaption {
    background-color: #F4E9CD;
    color: #031926;
    font: italic smaller sans-serif;
    padding: 3px;
    text-align: center;
}

.help-img,
.help-img2,
.help-img1 {
    width: 280px;
    height: auto;
}

.resultImage {
    width: 240px;
    height: auto;
    margin-right: 10px;
}

.desc {
    padding: 5px;
    text-align: center;
}

.stop {
    color: red;
    font-size: 1.5rem;
    font-weight: bold;
}

.advice {
    color: red;
    font-style: italic;
    font-weight: bold;
}

.resultPicsDiv {
    padding-top: 10px;
    display: none;
}


.result-img {
    width: 240px;
}

figure.figClassR {
    width: 250px;
}

figcaption.figCapR {
    font-size: 0.9rem;
}

.logo {
    height: 40px;
    margin: 5px 0;
}

.span1 {
    font-size: 0.85rem;
}

/* 
   Table Style
-------------------------------  */
table.DST {
    table-layout: fixed;
    width: 100%;
}

th.DST {
    /*background-color: #669999;*/
    width: 25%;
}

table.DST,
th.DST,
td.DST {
    border: 1px solid black;
    border-collapse: collapse;
}

th.DST,
td.DST {
    padding-left: 4px;
    padding-right: 4px;
    text-align: center;
}

button.backToTab {
    position: absolute;
    left: -10000px;
    bottom: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

button.backToTab:focus {
    left: auto;
    right: 50px;
    bottom: 0;
    width: auto;
    height: auto;
    overflow: auto;
    margin: 0 15px;
    padding: 5px;
    font-size: 1rem;
    text-align: center;
}

/*
   Buttons
-------------------------------  */
#buttonDiv {
    padding: 10px 10px 15px;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    /*    outline: none;*/
    color: #031926;
    background-color: #9DBEBB;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px #F4E9CD;
}

.button:hover {
    background-color: #468189;
    color: #F4E9CD;
}

.button:focus {
    background-color: #468189;
    color: #F4E9CD;
    border: 2px solid #031926;
}

.button:active {
    background-color: #468189;
    box-shadow: 0 3px #666;
    transform: translateY(4px);
}

.btn,
.btn2 {
    background-color: #9DBEBB;
    border-radius: 50%;
    float: right;
    cursor: pointer;
}
.btn {
    margin-top: 5px;
    margin-right: 5px;
}
.btn2 {
    margin-top: 0px;
    margin-right: 0px;
}

.btnleft {
    background-color: #9DBEBB;
    border-radius: 50%;
    float: left;
    margin-top: 5px;
    margin-left: 5px;
    cursor: pointer;
}

.btn3,
.showBtnClass {
    background-color: #9DBEBB;
    border-radius: 35%;
    cursor: pointer;
}

.btnCont {
    margin-top: 5px;
    background-color: #9DBEBB;
    border-radius: 50%;
    cursor: pointer;
}

.btnClose {
    position: relative;
    cursor: pointer;
    background-color: #9DBEBB;
    border-radius: 50%;
    left: 88%;
    bottom: 5px;
}

.btnTabClose {
    position: absolute;
    cursor: pointer;
    background-color: #9DBEBB;
    border-radius: 50%;
    right: 10px;
    bottom: 2px;
    z-index: 10;
}

.btnHide {
    position: relative;
    cursor: pointer;
    border: none;
    outline: none;
    width: 100%;
    background-color: #468189;
}

.btn:hover,
.btn3:hover,
.btnleft:hover,
.showBtnClass:hover,
.btnCont:hover,
.btnClose:hover,
.btnTabClose:hover {
    background-color: #F4E9CD;
}

.btnHide:hover {
    background-color: #F4E9CD;
}

.btn2:hover {
    background-color: #F4E9CD;
    color: red;
}

.btn:focus,
.btn2:focus,
.btn3:focus,
.btnCont:focus,
.showBtnClass:focus,
.btnClose:focus,
.btnHide:focus,
.btnTabClose:focus,
.btnleft:focus {
    border: 2px solid #031926;
    background-color: #F4E9CD;
}

/*
   Ids
-------------------------------  */

#resultDiv {
    position: fixed;
    top: 10%;
    left: 5px;
    right: 5px;
    max-height: 80%;
    display: none;
    border: 8px solid #F4E9CD;
    margin: 4px;
    overflow: auto;
    background-color: rgba(157, 190, 187, 0.97);
    z-index: 5;
}

#resultDivInner {
    padding: 0 20px 20px;
    color: #031926;
    font-size: 1.25rem;
    border: 1px solid #031926;
    margin-top: 32px;
}

#resultDivInnerB {
    display: none;
}

#otherConsiderationsDiv {
    font-size: 0.9rem;
}


#help-div-defendedQ,
#help-div-canalQ,
#help-div-hmaQ,
#help-div-specialQ,
#help-div-bankQ,
#help-div-gradeQ,
#help-div-lengthQ,
#help-div-marshQ,
#help-div-marshQ2,
#help-div-beachQ,
#help-div-groinQ,
#help-div-fetchQ,
#help-div-bathyQ {
    display: none;
}

#qB13,
#qSp6,
#qBnkHght,
#qBRest,
#qHMA3,
#qMrshWidth,
#qGroinExist {
    display: none;
}


#resetDiv {
    position: fixed;
    bottom: 10px;
    left: 10px;
}

#moreTxt {
    display: none;
}

#moreHelpDiv {
    display: none;
}

#hide-help-button {
    display: none;
}

#logodiv {
    /*    display: flex;*/
    display: none;
    flex-direction: column;
    align-items: center;
    /*    justify-content: space-between;*/
    margin: 10px;
}

#picDiv1,
#picDiv2 {
    display: none;
}

/* Icons
----------------------------- */
.fa-question-circle,
.fa-times-circle,
.fa-chevron-up,
.fa-print {
    background-color: transparent;
    color: #031926;
    font-size: 1.25rem;
}

.fa-times-circle:hover,
.fa-print:hover {
    color: #468189;
}

/* Tooltip
----------------------------- */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #468189;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: -2px;
    right: 130%;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #468189;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.tooltip:focus .tooltiptext {
    visibility: visible;
    background-color: #F4E9CD;
    color: #000;
}

/* Right Tooltip with Left Arrow
--------------------------------- */
.tooltip .tooltiptextR {
    visibility: hidden;
    width: 80px;
    background-color: #468189;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: -2px;
    left: 130%;
}

.tooltip .tooltiptextR::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #468189 transparent transparent;
}

.tooltip:hover .tooltiptextR {
    visibility: visible;
}
.tooltip:focus .tooltiptextR {
    visibility: visible;
    background-color: #F4E9CD;
    color: #000;
}


/* *********************************
     MEDIA QUERIES
************************************ */
@media only screen and (min-width: 375px) {
    .result-img {
        width: 280px;
    }

    figure.figClassR {
        width: 290px;
    }
}

@media only screen and (min-width: 600px) {
    html {
        font-size: 16px;
    }

    .photoset,
    .photoset2 {
        flex-direction: row;
        margin: 5px 0;
    }

    .help-img1 {
        width: 300px;
    }

    .desc {
        width: 50%;
    }

    #logodiv {
        flex-direction: row;
        justify-content: space-around;
        margin: 10px;
    }

    .logo {
        height: 50px;
    }

    .result-img {
        width: 400px;
    }

    figure.figClassR {
        width: 410px;
    }
}

@media only screen and (min-width: 800px) {
    h1 {
        font-size: 2rem;
    }

    .help-img,
    .resultImage {
        width: 400px;
    }

    .help-img2 {
        width: 300px;
    }

    .help-img1 {
        width: 500px;
    }

    .questDiv {
        display: flex;
    }

    .question {
        width: 60%;
        padding-right: 20px;
        border-right: 2px solid #468189;
    }

    .formDiv {
        width: 40%;
    }

    .btn,
    .btn2 {
        margin-top: 5px;
        margin-right: 5px;
    }

    .help2 {
        display: flex;
        flex-flow: wrap;
    }

    .photoset2 {
        padding-right: 10px;
    }

    .btnClose {
        left: 96%;
    }
}


@media only screen and (min-width: 1200px) {

    .help-img {
        width: 300px;
    }

    .help {
        display: flex;
        flex-flow: wrap;
    }

    .photoset2 {
        width: 33%;
        padding-right: 10px;
    }

    .button {
        padding: 10px 15px;
        font-size: 1.25rem;
        box-shadow: 0 7px #F4E9CD;
    }
}

@media only screen and (min-width: 1600px) {

    .help-img,
    .help-img2 {
        width: 400px;
    }

    .logo {
        height: 70px;
    }
}
