/* Constants. */
:root {
    --background: #EDE8DC;
    --logo-primary: #272727;
    --true-black: #000000;
    
    --logo-secondary: #9C4922;
    --background-secondary: #E2C6AC;
}


/* General Styling. */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;

    font-family: "EB Garamond", serif;
    font-size: 20px;
    color: var(--logo-primary);
}

html {
    text-align: center;
    overflow-x: hidden;
    overflow-y: scroll;
}

header {
    padding: 16px 32px;

    background: var(--background-secondary);
    color: var(--main-cream);
}

header form {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

header input[type="radio"] {
    display: none;
}

.tab {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 20px;
    font-weight: bold;
    color: var(--main-cream);
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.tab:hover {
    color: var(--main-light-cream);
}

.header_icon {
    border:2px solid var(--logo-primary);
    border-radius: 50%;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 0.5rem;
    width: 5rem;
    height: 5rem;
    transition: 0.3s ease-in-out;
}

.header_icon:hover {
    opacity: 0.7;
}

body {
    display: block;
    justify-content: center;
    align-items: center;

    background: var(--background);
}

footer {
    margin-top: 5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.page_content > * {
    margin-left: auto;
    margin-right: auto;
    margin-top: 1em;
    line-height: 1.6;
    width: 60%;
}

button {
  margin-top: 1em;
  height: 1rem;
  padding: 0.5rem 1rem;

  background-color: var(--background-secondary);
  color: var(--logo-primary);
  border-color: var(--logo-primary);
  line-height: 0px;
  border-radius: 4px;
}

button:hover {
  background-color: var(--logo-secondary);
}

button:disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}




/* Undefined. */
.undefined_icon {
    border:2px solid var(--logo-primary);
    border-radius: 50%;
    margin: 2rem;
    width: 10rem;
    height: 10rem;
}




/* Home Screen. */
.home_banner {
    height: 400px;
}

.home_text {
    text-align: left;
}

.home_links {
    margin-top: 2rem;
}




/* Episode Component. */
.episode_component {
    display: flex;
    flex-direction: column;
    gap: 10px;

    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    border:2px solid var(--logo-primary);
    border-radius: 10px;

    margin-top: 1rem;
    padding: 1rem;
    background: white;
}

.episode_component_align_items {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.episode_title_description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.episode_title_text {
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    text-align: left;
}

.episode_component_image {
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);

    width: 128px;
    height: 128px;
    transition: 0.3s ease-in-out;
}

.episode_component_image:hover {
    opacity: 0.7;
}

.episode_component_multiline_truncated_text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.episode_navigation_buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}




/* Hosts. */
.about_section {
    margin-top: 3rem;
}

.hosts_container {
    display: flex;

    margin-bottom: 3rem;
    margin-left: 3rem;
    margin-right: 3rem;
    gap: 2rem;
}

.hosts_image {
    border:6px solid var(--logo-primary);
    border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);

    width: 15em;
    height: 15em;
}

.hosts_description_container {
    display: block;
    align-content: center;
}

.hosts_description {
    text-align: left;
}




/* News. */
.news_list {
    display: flex;
    flex-direction: column;
}

.news_article_item {
    display: flex;
    flex-direction: column;
    gap: 10px;

    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    border:2px solid var(--logo-primary);
    border-radius: 10px;

    margin-top: 1rem;
    padding: 1rem;
    background: white;
}

.news_article_item:hover {
    opacity: 0.7;
}

.news_article_item_text {
    text-align: left;
}




/* Markdown article info. */
.markdown-body {
    text-align: left;
}

.markdown-body h1 {
  font-size: 2.6rem;
  color: #333;
}

.markdown-body h2 {
  font-size: 2.5rem;
  color: #333;
  margin-top: 1rem;
}

.markdown-body h3 {
  font-size: 2rem;
  color: #333;
  margin-top: 1rem;
}

.markdown-body h4 {
  font-size: 1.5rem;
  color: #333;
  margin-top: 1rem;
}

.markdown-body h5 {
  margin-top: 1rem;
}

.markdown-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.markdown-body a {
  color: blue;
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}

.markdown-body pre {
  background-color: #f5f5f5;  /* Background color for code blocks */
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

.markdown-body pre code {
  background: none; /* Remove background from <code> inside <pre> */
  padding: 0;
  font-family: monospace;
  display: block;
}



/* Socials. */
.social_icon {
    width: 2rem;
    height: 2rem;
    margin: 0.5rem;
    fill: var(--main-dark-brown);
    transition: color 0.3s ease-in-out;
}

.social_icon:hover {
    fill: var(--main-cream);
}



@media (min-width: 600px) {
    .header_icon {
        display: none;
    }
}

/* Mobile Styling. */
@media (max-width: 600px) {

    .page_content > * {
        width: 90%;
    }

    header form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        text-align: center;
    }

    .episode_component_align_items {
        display: block; 
    }
   
    .tab_home {
        display: none;
    }

    .home_banner {
        display: none;
    }
}

@media(max-width: 1024px) {
    .hosts_container {
        display: block;
        margin-left: 0px;
        margin-right: 0px;
    }
}
