/* define variables here */
:root {
  --leaf-green: #a6c27b;
}

body {
    background-color: var(--leaf-green);
    font-family: Arial, sans-serif;
    margin-left: 2%;
    margin-right: 2%;
    margin-top: 2%;
    margin-bottom: 2%;
    font-size: 1.1rem;
    line-height: 1.7rem;
}

section {
    max-width: 1920px;
    margin: 0 auto;
}

/* unordered list */
ul {
    margin: 0;
    padding: 0;
}

.pride-banner {
    height: 100px;
    width: 100%;
}

.nav-bar {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-evenly;
    row-gap: 1rem;
    position: relative;
    background-color: #231f20;
    color: white;
    padding: 1.4rem;
    margin-bottom: 1.3rem;
    border-radius: 13px;
    box-shadow: 0 7px 13px #636f5c;
}

.nav-bar .flexed-ul {
    display: flex;
    row-gap: 1rem;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-bar .socials-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.nav-bar .socials-list img {
    width: 40px;
}

.nav-bar li {
    list-style: none;
    padding: 0;
}

.nav-bar a:link, .nav-bar a:visited {
    text-decoration: inherit;
    color: inherit;
}

/* TODO */
.landscape-only > li:not(.dropdown), .dropdown-title {
  color: inherit;
  background-color: inherit;
  padding: 0.5rem 1rem;
  font-size: inherit;
  border: none;
  font-family: inherit;
}

/* TODO */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2d2d2d;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* trying to hide this but allow it to be selectable, accessibility issue */
.nav-bar input[type="checkbox"] {
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
}

/* hambahgah */
.nav-bar label {
        text-align: right;
        display: block;
        padding: 0.5em;
        line-height: 1.6em;
        align-self: center;
}

/* magic hambahgah menu makes menu work */
.nav-bar input[type="checkbox"]:not(:checked) + div {
    display: none;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content {
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover, label:hover {background-color: #444;}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropdown-title {background-color: #4a533b;} 

img {
    max-width: 100%;
}

p > img {
    margin-top: 1rem;
}

a:visited {
    color: #003c00;
}

a:link {
    color: #005b00;
}

/* used in newsletter */
a.downstyle-anchor {
    text-decoration: inherit !important;
    color: inherit !important;
}

h2, h3, h4, h5, h6 {
    margin: 1.3rem;
}

.header-container {
    background-color: #f0eee6;
    padding: 2.5rem;
    margin-top: 1.3rem;
    margin-bottom: 1.3rem;
    border-radius: 13px;
    overflow-x: auto;
    box-shadow: 0 7px 13px #636f5c;
}

.header-container h1 {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin: 1.3rem auto 0 auto;
}

.header-container img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.panel {
    overflow: hidden;
    background-color: #f0eee6;
    margin-bottom: 1.3rem;
    border-radius: 13px;
    text-align: center;
    box-shadow: 0 7px 13px #636f5c;
}

div.panel-header-group h2, h3, h4, h5, h6 {
    margin-top: 0.6rem;
}

.panel-header-group {
    padding: 0.7rem;
    background-color: #5d6a5a;
    margin-bottom: 0.7rem;
    color: white;
}

.panel-content {
    padding: 1.3rem;
}

h2.shrink-on-mobile {
    font-size: 1.1rem;
}

.mobile-only > li.submenu-title {
    color: var(--leaf-green);
    font-weight: bold;
    
}

.landscape-only {
    display: none !important;
}

@media only screen and (min-width: 374px) {
    h2.shrink-on-mobile {
        font-size: 1.6rem;
    }
    h1 {
        font-size: 2.5rem;
        line-height: 2.5rem;
    }
}

@media only screen and (min-width: 800px) {
    body {
        margin-left: 20%;
        margin-right: 20%;
        margin-top: 1%;
        margin-bottom: 1%;
    }
}

@media only screen and (min-width: 1376px) {
    h1 {
        width: 36rem;
    }
    .nav-bar label, .nav-bar input {
        display: none;
    }
    .nav-bar, .nav-bar .flexed-ul {
	    flex-direction: row;
    }
    .nav-bar input + div {
        display: flex !important;
    }
    .mobile-only {
        display: none !important;
    }
    .landscape-only {
        display: flex !important;
    }
    .header-container h1 {
        font-size: 3rem;
        width: 44rem;
    }
}

@media only screen and (min-width: 1629px) {
    .nav-bar ul.socials-list {
        margin-right: 0;
    }
}