/* stylesheet risktool.css */

:root {
    --primary:#E20000;
    --secondary:#005a8f;
    --gray:#dedede;
    --color-body:#000;
    --color-bckg:#fff;
    --color-negative:#fff;
    --color-bckg-negative:#000;
    --border:1px solid #000;
    --border-dec-b:2px dotted #000;
    --border-dec-w:2px dotted #fff;
    --border-radius:0.25rem;
    --font-size: 1rem;
    --font-size-lg:1.1rem;
    --font-size-sm:0.9rem;

}

html, body {
    margin:0;
    padding:0;
    outline:0;
    color:var(--color-body);
    background-color:var(--bckg-color)
}

body {
    display: flex;
    justify-content:center;
    align-items:center
}

@media (max-width: 575px) {
    #frame {
        width:auto;
        padding:0.938rem;
    }  

    div.build-types {
        display:flex;
        flex-direction:column;
        width:100%;

    }

    .build-types div.build-block{
        height:10.250rem;
        width: 100%;
    }

   

    .build-types button {
        width:85%
    }

    .risk-type {
        width:6rem;
    }


    .build-types img {
        left:70%
    }

    .btn-ages button {
        width:16.875rem
    }
    
}

@media (min-width:576px) and (max-width:767px){
    #frame {
        width: 33.750rem;
    }

    .build-types {
        display:flex;
        flex-wrap:wrap;
        justify-content:space-between;
        width:90%
    }

    .build-types button {
        width:12.500rem;
        padding:0px 20px 0px 10px
    }

    .build-types img {
        left:75%
    }

    .build-types div.build-block {
        height:10.250rem;
        width:95%
    }

    .risk-type {
        width:6.750rem;
    }

}

@media  (max-width:767px){
    .start-img, .end-img, [id^=img-], [id^=imgd-] {
        display:block;
        float:none;
        width:80%;
        margin:1.5rem auto 1rem;
    }

    .risksvg {
        display:none
    }

    .risk-details .risk-text {
        margin-bottom:2rem
    }
}

@media (min-width:768px) {
    .start-img, .end-img {
        float:left;
        width:40%;
        margin:1.5rem 1rem 1rem 0;
    }

    [id^=img-], [id^=imgd-]{
        display:block;
        margin:1.5rem auto 1rem;
    }

    .risk-details {
        display:flex;
        flex-direction:row;
        width:100%
    }

    .risk-type {
        display:flex;
        align-content:space-between;
        width:20%
    }
}

@media (min-width:768px) and (max-width:991px){
    #frame {
        width: 45rem;
    }  
    
    [id^=img-] {
        width:70%
    }

    [id^=imgd-]{
        width:90%;
    }

    .build-types button {
        width:10.250rem
    }

    .build-types img {
        left:80%
    }

    .build-types div.build-block{
        height:10.250rem;
        width: 90%;
    }

    .risksvg img {
        width:3.5rem
    }

    .risk-details .risk-text {
        padding:0.5rem
    }
   
}

@media (min-width:992px) and (max-width:1200px){
    #frame {
        width: 60rem;
    }

    [id^=img-] {
        width:50%;
    }

    [id^=imgd-] {
        width:100%
    }

    .build-types {
        display:flex;
        justify-content:space-between
    }

    .build-types div.build-block{
        height:10.250rem;
        width: 95%;
    }

    .build-types button {
        width:13.750rem
    }

    .build-types img {
        left:80%
    }

    .risksvg img {
        width:5rem
    }

}

@media screen and (min-width:1201px) {
    #frame {
        width: 71.250rem;
    }

    .start-img, .end-img {
        width:30%;
    }

    [id^=img-] {
        width:45%;
    }

    [id^=imgd-] {
        width:100%
    }

    .build-types {
        display:flex;
        justify-content:space-between
    }

    .build-types div.build-block{
        height:10.250rem;
        width: 95%;
    }

    .build-types button {
        width:18.750rem
    }

    .build-types img {
        left:80%
    }

    .risksvg img {
        width:5rem
    }


}


.headline {
   
    margin-bottom:0.938rem;
    display:block
}



h2,h3,h4 {
    margin-bottom:0.5rem;
    line-height:1.2;
    margin-top:0;
    font-weight:normal;
    color:var(--color-body);
}

h2 {
    font-size: 1.688rem
}

h3 {
  font-size:1.375rem  
}

h4 {
    font-size:1.125rem  
  }

p {
    margin: 0 0 1rem
}

 a {
    text-decoration:none;
    color:var(--color-body);
}


#frame {
    position:relative;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1rem;
    font-weight:normal;
    line-height:1.5rem;
    margin:2rem auto;
}

#frame > a {
    border-bottom: var(--border-dec-b)
}


#lang {
    display:flex;
    justify-content: flex-end;
}

#lang  a, #lang  span {
    display:block;
    text-decoration: none;
    padding:0.5rem;
    color:var(--color-body);
    margin-bottom:0.25rem
}

#lang  a:hover, #lang  a:active {
    display:block;
    text-decoration: none;
    padding:7px;
    color: white;
    background-color:var(--color-body);
    border: var(--border)
}

#appl {
    width:100%;
    border-top: var(--border);
    margin:0.5rem 0
}

#appl h1 {
    color: var(--secondary);
    margin:0.4rem 0;
    font-size:var(--font-size)
}

.block {
    margin-bottom:3.2rem
}

a.link {
    border-bottom:var(--border-dec-b)
}
p.title {
    font-size: var(--font-size-lg)
}

ol {
    margin-bottom:2rem
}

a[id^=collapsible-] {
    display: flex;
    flex-flow:row nowrap;
    border-top:var(--border);
    text-decoration:none;
    width:100%
}

a[id^=collapsible-] h3 {
    display: flex;
    flex-flow:row nowrap;
    color: var(--color-body);
}

span.arrow-down {
    flex: 10%;
    content: "";    
    width: 1.8568rem;
    height: 1.8568rem;
    background: 100% 50% no-repeat;
    background-image: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M8 4a.5.5 0 0 1 .5.5v5.793l2.146-2.147a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L7.5 10.293V4.5A.5.5 0 0 1 8 4z'/%3e%3c/svg%3e");

}

.startImg, .endImg {
    float:left;
    padding:1.250rem 1.250rem 0.625rem 0.625rem;
    width:30%
}

#map {
    background-color: #c1c1c1;
    position:relative;
    width:100%
}

@keyframes spinner {
    to {
      transform: rotate(360deg);
    }
  }

  .spinner:after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.50rem;
    height: 2.50rem;
    margin-top: -1.25rem;
    margin-left: -1.25rem;
    border-radius: 50%;
    border: 5px solid rgba(180, 180, 180, 0.6);
    border-top-color: rgba(0, 0, 0, 0.6);
    animation: spinner 0.6s linear infinite;
  }

.btn {
    cursor: pointer;
    display: inline-block;
    font-weight: 400;
    font-size:0.9rem;
    color: var(--color-body);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    user-select: none;
    background-color: var(--color-bckg);
    border: var(--border);
    padding: 0.375rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-ages {
    width:70%;
    display:flex;
    flex-direction:column
}

.btn-ages button {
    flex:0;
    width:18.750rem;
    margin:0.5rem;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    color:var(--color-body);
    font-size: 1rem;
  }


.risk-table {
    display:flex;
    width:100%;
    align-items:top;
    border-top: var(--border)
}


.build-block {
    display:flex;
    align-self:flex-end
}

.build-types {
    display:flex;
   justify-content:space-between;
   width: 95%;
}


.build-types button {
    height:5rem;
    text-align:left;
    padding-left:0.63rem;
    background-color: #fff;
    border:1px solid #000;
    border-radius:5px;
    align-self:flex-end;
    color:var(--color-body);
    font-size: 1rem;
}


.build-type {
    padding:2rem 0;
    flex:1;
    position:relative
}


.build-types button.selected, .build-types button:hover,.build-types button:focus, .btn-ages button:hover, .btn-ages button.selected, .btn-ages button:focus {
    background-color:var(--color-bckg-negative);
    color:var(--color-negative);
}


.build-types img {
    width:6rem;
    position:absolute;
}

.risk-type {
    font-weight:700;
    padding:0.5rem 0.5rem 0.5rem 0;
    border-right: 1px solid #000;
}

/*
.risk-type span.type {
   flex:auto
}
*/

div.risk-table:last-child {
    border-bottom: var(--border)
}


.risk-text {
    flex:1;
    padding:0.5rem 1rem
}

.detail-title {
    font-weight:700;
    text-align:center
}


.cls-1 {
    fill:#d3d3d3;
    stroke:#fff;
    stroke-miterlimit:10;
    stroke-width:.25px;
} 

#d-hz, #d-soil, #d-vuln {
    flex: 1;
   
}

#d-hz, #d-soil {
    margin-right:2rem
}

.controls {
    display:flex;
    justify-content:center;
    align-items:center;
    align-content:space-between;
}



.controls .btn {
    margin:3rem 0.5rem 3.5rem;
}

.btn.negative {
    color: var(--color-negative);
    background-color: var(--color-bckg-negative)
}

footer {
    background-color: var(--primary);
    color: #fff;
    display:flex;
    justify-content:space-between;
    padding: 1rem;
}


#icons {
    display:flex;
    justify-content:flex-between;
    margin-top:1rem
}

footer a {
    text-decoration:none;
    width:3rem;
    height:3rem;
    color:#fff
}

footer .footer-menu a {
    border-bottom:var(--border-dec-w)}





