
* {
  margin: 0;
  padding: 0;
  border: none;
}

html { font-size: 62.5%; }

body {
  margin: 0;
  font-family: open sans, HelveticaNeue, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1.6;
  color: #222;
}

h1, h1 a {
  font-family: Montserrat, helvetica, arial, sans-serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 6.5rem;
  text-align: center;
  color: white;
  text-decoration: none;
}
a.noul {
  text-decoration: none;
}
h3 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 2.4rem;
  padding-top: 3rem;
  padding-bottom: .5rem;
}
h4 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 2.6rem;
  padding: 1.4rem 0 1rem;
}
p {
  font-size: 1.6rem;
  padding-bottom: 1.3rem;
}
a {
  color: #125CCA;
}

header {
  position: relative;
  width: 100%;
  padding: 40px 0 65px;
  background-color: #464646;
}

.toc li {
  display: inline-block;
  position: relative;
  width: 32%;
  box-sizing: border-box;
  background-color: #DDE8EF;
  list-style-type: none;
  text-align: center;
}
.toc li:not(:first-of-type) {
  margin-left: 2%;
}
.toc li:hover { background-color: #B3E1EF; }
.toc a {
  display: inline-block;
  width: 100%;
  padding: 2px 0 3px;
  font-weight: 600;
  text-decoration: none;
  color: #464646;
}

section {
  position: relative;
  margin: 20px 0;
  padding: 0 20px;
}
section > * {
  max-width: 640px;
  margin: 0 auto;
}

.illustrated {  }
img {
  display: block;
  margin: 0 auto;
  padding: 2rem 0;
}
.illustration {
  max-height: 350px;
  max-width: 100%;
}

#intro {
  padding-top: 65px;
}
#intro p {
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 3rem;
  padding-top: 2rem;
}

.logo {
  position: absolute;
  left: 50%;
  bottom: 0;
  -webkit-transform: translate(-50%, 50%);
       ms-transform: translate(-50%, 50%);
          transform: translate(-50%, 50%);
  width: 130px;
  height: 130px;

  background-image: url("/static/DROWN_logo.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

/*table style from bootstrap*/
table {
  width: 100%;
  margin-bottom: 20px;
  padding: 1rem 0;
}
table th,
table td {
  padding: 8px;
  line-height: 1.42857143;
  vertical-align: top;
  border-bottom: 1px solid #ddd;
}
table > thead > tr > th {
  vertical-align: bottom;
  border-bottom: 2px solid #ddd;
}
.table-condensed th,
.table-condensed td {
  padding: 5px;
}

.form-inline {
  padding: 1.5rem 3rem 3rem;
  background-color: #DDE8EF;
}
label { display: block; }
input, button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: open sans, sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin-top: 1rem;
}
input {
  padding: 6px 12px;
  width: 45%;
}
button {
  color: white;
  background-color: #F1592A;
  border-radius: 6px;
  padding: 6px 12px;
}
button:hover,
button:focus {
  outline: none;
  box-shadow: 0 0 0 3px #3BA3BD;
}
button:active {
  box-shadow: inset 0 1px 1px 1px rgba(0,0,0,.4);
}

footer {
  border-top: 1px solid #ccc;
  padding: 1rem 3rem;
}
.text-small, .text-small p {
  font-size: 14px;
}
.muted {
  color: #666;
}

.text-muted {
  font-size: 13px;
  color: #888;
}


li {
 margin-bottom: 10px;
}

.explanation {
  margin-bottom: 5px;
}

.oracle {
  width: 20em;
  margin: 4px 0;
  font-size: 14px;
}

.address {
  display: block;
  margin-bottom: 1px;
  margin-right: 10px;
  font-size: 14px;
}

.reason {
  display: block;
}

.reason-cve {
  color: #D90B00;
}

/* live updates: */

.updating .address::after {
  position: relative;
  display: block;
  float: right;
  top: 5px;
  width: 25px;
  height: 25px; 
  background-image: url("loading.svg");
  background-size: contain;
  background-repeat: no-repeat;
  content: "";
}

.oracle {
  padding: 7px;
  border-radius: 7px;
  background-color: #E8E8E8;
}

.oracle .reason::after {
	display: block;
	text-decoration: none;
	color: black;
}

.update-cve {
	background-color: #FFA9A4;
}

.update-export,
.update-sslv2 {
	background-color: #FFCFA4;
}

/* vuln -> same */

.update-sslv2 .reason-ssl::after,
.update-export .reason-export::after,
.update-cve .reason-cve::after {
  font-size: 10px !important;
  content: "currently vulnerable" !important;
  color: black !important;
}

/* vuln -> other vuln */

.update-sslv2 .reason-export div,
.update-sslv2 .reason-cve div,
.update-export .reason-cve div,
.update-cve .reason-export div,
.update-cve .reason-ssl div,
.update-export .reason-ssl div {
	text-decoration: line-through;
	color: #888;
}

/* vuln -> other vuln */

.update-cve .reason::after {
    content: "currently vulnerable to CVE-2016-0703";
	color: #D90B00;
}

.update-sslv2 .reason::after {
    content: "currently supports SSLv2";
}

.update-export .reason::after {
    content: "currently supports SSLv2 export ciphers";
}

/* any -> fixed */

.update-fixed {
  background-color: #A4FFAF;
}

.update-fixed .reason div {
	text-decoration: line-through;
	color: #888;
}

.update-fixed .reason::after {
	font-size: 10px;
    content: "appears fixed";
}

/* any -> error */

.update-error {
  background-color: #BBB;
}

.update-error .reason div {
	text-decoration: line-through;
	color: #888;
}

.update-error .reason::after {
	font-size: 10px;
    content: "currently unreachable";
}
