/* Fonts */
@font-face {
  font-family: 'Barlow';
  src: url('fonts/Barlow-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Barlow';
  src: url('fonts/Barlow-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: 'Barlow';
  src: url('fonts/Barlow-SemiBold.ttf') format('truetype');
  font-weight: bold;
}

/* Shared */
h1 {
    line-height: 1.3;
}
h2 {
    margin-top: 40px;
    color: #0b5180;
}
h4 {
    font-size: 1.1rem;
    margin-top: 35px;
}
body {
    font-family: Barlow, sans-serif;
    margin: 12px;
    line-height: 1.7;
}
a {
    color: #0b5180;
}
p {
    font-size: 1.1rem;
}
ul {
  list-style-type: none;
  padding-left: 0;
}
li {
    font-size: 1.1rem;
}
#map {
    height: 520px;
}
#mapframe {
    border: 0;
    width: 100%;
    height: 100%;
}
#bChartContainer {
    height: 500px;
}
#dChartContainer {
    margin-bottom: 50px;
}
#wordcloudContainer {
    text-align: left;
}
#wordcloud {
    max-width: 80%;
    object-fit: contain;
}
.name {
  margin-bottom: 0;
    color: #4f4f4f;
}
.name-highlight {
    color: #0b5180;
}
.date {
  margin-top: 0;
  color: grey;
  font-size: 0.85rem;
}

.question-margin {
    margin-top: 40px;
}

/* Code */
pre {
    color: #003f5c;
    background-color: #fafafa;
    padding: 20px 25px;
    overflow-x: auto;
    box-sizing: border-box;
    line-height: 1.5;
}
.language-python .keyword {
    color: #D60C09;
}
.language-python .class-name {
    color: #0C14E8;
}
.language-python .function-name {
    color: #8D09B5;
}
.language-python .variable-name {
    color: #0A7CA6;
}
.language-python .literal {
    color: #BA5807;
}
.language-python .param-name {
    color: #BA9302;
}

/* Form */
#contact-form {
  width: 100%;
  padding: 10px 20px 20px;
  box-sizing: border-box;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
#contact-form form {
  display: flex;
  flex-direction: column;
}
#contact-form label {
  margin-bottom: 15px;
  font-size: 1.1rem;
}
#contact-form label > input,
#contact-form label > textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1.1rem;
}
#contact-form label > textarea {
  height: 120px;
}
#contact-form button {
  background-color: #0b5180;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1.1rem;
}
#contact-form button:hover {
  background-color: #083f60;
}
#footer {
    margin-top: 50px;
    text-align: center;
}

/* Mobile */
@media screen and (max-width: 750px) {
    #wordcloud {
        max-width: 100%;
    }
    pre {
        font-size: 0.82rem;
        padding: 10px 12px;
    }
}

/* Desktop */
@media screen and (min-width: 750px) {
    h1{
        padding-top: 50px;
    }
    h2 {
        margin-top: 60px;
    }
    h3 {
        font-size: 1.3rem;
    }
    h4 {
        font-size: 1.25rem;
    }
    li {
        font-size: 1.25rem;
    }
    body {
        margin: 0 auto;
        width: 90%;
        max-width: 900px;
    }
    p {
        font-size: 1.25rem;
    }
    .question-margin {
        margin-top: 50px;
    }
    #map {
        height: 800px;
        width: 100%;
    }
    #dChartContainer {
        max-width: 400px;
        margin: 0 auto 0 0;
    }
    pre {
        font-size: 1.15rem;
    }
}

/* Landscape tablet styles */
@media screen and (min-width: 750px) and (max-height: 850px) and (orientation: landscape) {
    body {
        margin: 0 auto;
        width: 90%;
    }
    #map {
        height: 600px;
        width: 100%;
    }
    #wordcloud {
        max-width: 60%;
    }
    pre {
        font-size: 1.1rem;
        line-height: 1.4;
    }
}
