/*
Theme Name: ROUNB
Text Domain: rounb
*/

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 100;
  font-stretch: normal;
  font-display: fallback;
  src: url("assets/Lato-Regular.woff") format("woff");
}

:root {
  --color-primary: #0FBE7C;
  --font-color-alternative: white;
}

/* */

html {
  scroll-behavior: smooth;
}

a {
  color: unset;
  text-decoration: none;
  transition: 0.5s all ease;
  padding: 2px;
}

a:hover, a:focus {
  background-color: var(--color-primary);
  color: black;
}

h1, h2, h3, p {
  font-weight: unset;
  margin: 0;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 26px;
}

h6 {
  font-size: 16px;
}

blockquote {
  margin: 0px 0px 20px;
}

.alignleft {
  float: left;
  margin: 0 30px 30px 0;
}

/* */

body.home, body.page, body.archive, body.single, body.search {
  background-color: #292929;
  color: #CCCCCC;
  font-family: 'Lato', sans-serif;
}

#page {
  max-width: 1268px;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
  padding: 0;
}

a.skip-link {
  background-color: var(--color-primary);
  color: black;
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
}

a.skip-link:focus {
  width: unset;
  height: unset;
  margin: unset;
  padding: 16px;
}

.header-and-language-switcher {
  display: flex;
  justify-content: space-between;
}

.language-switcher {
  list-style: none;
  margin: 0;
  padding: 0;  
  display: flex;
  flex-direction: row;
  align-items: center;
}

.search-form {
  display: flex;
  justify-content: flex-end;
}

.search-form input {
  height: 32px;
  border: none;
  padding: 0 0 0 8px;
}

.search-form button {
  width: 32px;
  height: 32px;
  border: 0;
  background-color: var(--color-primary);
  color: var(--font-color-alternative);
}

.search-form button::before {
  font-family: 'Genericons-Neue', system-ui;
}

.menu-primary-container > ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.header-nav-container {
  padding: 15px 25px;
}

header h2 {
  background-color: rgb(62, 62, 62);
  padding: 20px 25px;
}

.footer-links {
  padding: 30px 25px 10px 25px;
  background-color: rgb(51, 51, 51);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-copyright {
  padding: 10px 25px;
  background-color: rgb(62, 62, 62);
  font-size: 14px;
}

#scrollToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 26px;
  height: 26px;
  padding: 6px;
  background-color: var(--color-primary);
  color: var(--font-color-alternative);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#scrollToTop.half-visible {
  opacity: 0.5;
}

#scrollToTop:focus, #scrollToTop:hover {
  opacity: 1;
}

#scrollToTop::before {
  font-family: 'Genericons-Neue', system-ui;
}

/* */

.main-image img {
  width: 100%;
}

main.post, main.posts {
  padding: 40px 25px 10px 25px;
  font-size: 18px;
}

main.post p, main.posts p {
  margin-bottom: 15px;
  line-height: 24px;
}

main.post hr.wp-block-separator {
  width: 100px;
  margin: 30px 0;
}

main.post a {
  text-decoration: underline;
}

main.posts article {
  padding-bottom: 45px;
}

main.post article {
  margin-bottom: 25px;
}

main.posts article header {
  margin-bottom: 18px;
}

main.posts article .post-content {
  overflow: auto;
}

main.posts .post-content .read-more {
  text-decoration: underline;
}

main.post blockquote {
  border: 1px solid rgb(234, 234, 234);
  background-color: rgb(62, 62, 62);
  padding: 20px;
}

main.post pre {
  border: 1px solid rgb(68, 68, 68);
  background-color: rgb(62, 62, 62);
  padding: 20px;
  line-height: 19.6px;
  font-family: Courier, monospace;
}

main article footer {
  border: 1px solid rgb(68, 68, 68);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

main footer .post-times {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 5px 10px;
}

main footer .post-times .post-published-time::before,
footer .post-times .post-modified-time::before {
  font-family: 'Genericons-Neue', system-ui;
}

main footer .categories, main footer .edit-link {
  padding: 5px 10px;
}

main footer .categories::before {
  font-family: 'Genericons-Neue', system-ui;
}

main footer .edit-link::before {
  font-family: 'Genericons-Neue', system-ui;
}

main footer nav {
  width: 100%;
}

main footer nav ul {
  display: flex;
  list-style: none;
  justify-content: space-between;
  padding: 0;
}

main footer nav ul li {
  padding: 5px 25px;
  border: 1px solid rgb(68, 68, 68);
}

nav.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

nav.pagination a.page-numbers {
  padding: 5px 10px;
  border: 1px solid rgb(239, 236, 238);
  background-color: #f8f8f8;
  color: black;
}

nav.pagination a.page-numbers:focus,
nav.pagination a.page-numbers:hover {
  background-color: var(--color-primary);
  color: black;
}