/*
Theme Name: Rowan Oats Theme
Theme URI: https//rowanoats.com/rowanoats-theme
Author: Rowan Oats
Author URI: https//rowanoats.com 
Description: A custom WordPress theme built from scratch 
Version: 1.1.0
License: GNU General Public License v2 or later 
Text Domain: rowanoats-theme
*/

/* #region FONTS */

@font-face {
  font-family: Merriweather;
  src: url(/wp-content/themes/rowanoats-theme/fonts/Merriweather/Merriweather-VariableFont_opsz,wdth,wght.ttf);
  font-style: normal;
}

@font-face {
  font-family: Merriweather;
  src: url(/wp-content/themes/rowanoats-theme/fonts/Merriweather/Merriweather-Italic-VariableFont_opsz,wdth,wght.ttf);
  font-style: italic;
}

@font-face {
  font-family: IM Fell;
  src: url(/wp-content/themes/rowanoats-theme/fonts/IM_Fell_DW_Pica/IMFellDWPica-Regular.ttf);
  font-style: normal;
}

@font-face {
  font-family: IM Fell;
  src: url(/wp-content/themes/rowanoats-theme/fonts/IMFellDWPica-Italic.ttf);
}

/* #endregion */ 

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0; 
}

body {
    padding: 0px 60px;
    background: #fff; 
}

/* Layout */
.site-content {
    max-width: 800px;
    margin: 0 auto; 
    padding: 2rem 1rem 
}


  /* #region FONTS */

  .merriweather-light {
    font-family: "Merriweather", system-ui;
    font-weight: 300;
    font-style: normal;
  }
  
  .merriweather-regular {
    font-family: "Merriweather", system-ui;
    font-weight: 400;
    font-style: normal;
  }
  
  .merriweather-bold {
    font-family: "Merriweather", system-ui;
    font-weight: 700;
    font-style: normal;
  }
  
  .merriweather-black {
    font-family: "Merriweather", system-ui;
    font-weight: 900;
    font-style: normal;
  }
  
  .merriweather-light-italic {
    font-family: "Merriweather", system-ui;
    font-weight: 300;
    font-style: italic;
  }
  
  .merriweather-regular-italic {
    font-family: "Merriweather", system-ui;
    font-weight: 400;
    font-style: italic;
  }
  
  .merriweather-bold-italic {
    font-family: "Merriweather", system-ui;
    font-weight: 700;
    font-style: italic;
  }
  
  .merriweather-black-italic {
    font-family: "Merriweather", system-ui;
    font-weight: 900;
    font-style: italic;
  }

  .im-fell-dw-pica-regular {
    font-family: "IM Fell DW Pica", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .im-fell-dw-pica-regular-italic {
    font-family: "IM Fell DW Pica", serif;
    font-weight: 400;
    font-style: italic;
  }

  /* #endregion */

  /* #region TEXT STYLING */ 

  p {
    font-family: Georgia, 'Times New Roman', Times, serif; 
    font-size: 14px;
    }

  a {
    text-decoration: none; 
    font-family: Georgia, 'Times New Roman', Times, serif; 
    color: #393D3F; 
  }

 a:hover { 
  color: tomato; 
 }

 a:active { 
  color: tomato; 
 }
 
ul { 
  list-style-type: none;
  margin: 0;
  padding: 0;
}


h1 {
  font-family: "IM Fell DW Pica", serif; 
  font-weight: 900; 
  font-size: xx-large;
  margin: 0;
}

h2 { 
  font-family: "Merriweather", serif;
  font-weight: 400; 
  margin: 0;
}

h4 {
  font-family: "Merriweather", serif;
  font-weight: 500; 
  font-size: 16px;
  padding-top: 10px;
  padding-bottom: 5px;
  margin: 0;
}

h5 { 
  margin: 0;
}

blockquote {
  border-left: 3px tomato solid; 
  font-size: medium; 
  margin-left: 5px;
  padding: 30px;
}
/* #endregion*/

/* #region Header */ 

.header {
display: flex;
flex-direction: row; 
justify-content: center;
padding-top: 50px;
}

#established {
    order: 1;
    font-family: "IM Fell DW Pica", serif;
    font-size: 25px;
    margin-right: 20px;
    margin-top: auto;
    padding-bottom: 10px;

}

#header-logo {
    order: 2;
    flex-basis: 50%;

}

#header-logo img {
    height: auto;
    max-height: 100px;
    
}

#portrait {
    order: 3;   
}

#portrait img {
    max-height: 100px;
}

#latin-phrase {
    text-align: center;
    font-family: "IM Fell DW Pica", serif; 
    font-size: 20px; 
    padding-bottom: 10px;
    border-bottom: lightgray 4px dotted; 
}

#Disclaimer {
    text-align: center;
    border-bottom: #393D3f 5px double;
    font-family: "IM Fell DW Pica", serif;
    font-size: 18px;
    padding-bottom: 5px;
  }


/* #endregion */

/* #region NAVIGATION */

  .navigation {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
  
}

.navigation, .navigation a, .dropbtn {
    color: #393D3F;
    font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif; 
    padding: 10px;
    font-size: 20px;
    border: none;
    background-color: transparent;
    text-decoration: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #393D3F;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 16px;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover, .navigation a:hover {
    background-color: whitesmoke;
    color: tomato;
}

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

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: whitesmoke;
}

/* #endregion */

/* #region ABOUT PAGE */ 

#about-sidebar {
  padding-top: 50px;
  li {
    font-size: large;
    padding-bottom: 8px;

  }
}

#companybio {
  display: flex;
  flex-direction: row;
  border-bottom: lightgrey 2px dashed;
}


#aboutbaby img{
  max-width: 150px;
  padding-top: 10px;
  padding-bottom: 10px;
}

#biotext {
  padding: 20px;
  padding-top: 20px;
  h3 {
    padding-bottom: 10px;
  }
}

#companymission {
  display: flex;
  flex-direction: row;
  border-bottom: lightgrey 2px dashed;

}

#aboutgrid img{
  max-width: 150px;
  padding-top: 10px;
  padding-bottom: 10px;

}

#missiontext {
  padding: 20px;
  padding-top: 20px;
    h3 {
    padding-bottom: 10px;
  }
}

#companymorals {
  display: flex;
  flex-direction: row;
}

#aboutprotest img {
  max-width: 150px;
  padding-top: 10px;
  padding-bottom: 10px;

}

#moralstext {
  padding:20px;
  padding-top: 20px;
    h3 {
    padding-bottom: 10px;
  }
}

/* Curriculum Vitae */ 

#published {
  h3 {
    padding-bottom: 10px;
  }
}

#anthologies, #webcomics, #other-work {
  border-radius: 25px;
  border: gray 3px dotted;
  padding: 15px; 
  li {
    padding-bottom: 5px;
  }
  h3 {
    text-align: center;
  }
}

/* #endregion */



/* #region COMIC ARCHIVE */

#comicass {
   display: flex;
  justify-content: left;
}

#comicass img{
  max-width: 120px;
  padding-bottom: 20px;
}

.wp-block-tag-cloud {
  padding: 15px 0px;
    a {
      display: block;
    }
  .wp-block-post-terms__separator {
    display: none;
  }
}

.wp-block-term-name {
  display: none;
}

.tag-cloud-link {
  margin-bottom: 3px;
}

#comicarchive-header h2 {
font-family: 'Merriweather' Georgia, 'Times New Roman', Times, serif; 
font-size: x-large;
color: black; 
}

#comicarchive-header h5 {
  font-family: 'Times New Roman', Times, serif;
  font-size: medium; 
  font-weight: 200; 
  color: #393D3F;
}

#comicarchive-header {
  border-bottom: #393D3F 5px dotted; 
  padding: 0 20px 20px 20px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto 2em auto auto;
}

/* #endregion */

/* #region COMIC ARCHIVE PAGE */
#publishing-info {
  border: 2px dotted #393D3F;
  margin: 10px; 
  padding: 15px;
}

#Comic-Description {
  padding: 15px;
}

#comic-gallery {
  display: flex; 
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: left;
  padding-bottom: 50px;
}

#comic-gallery img {
  max-height: 250px;
  padding: 5px;
}

#comic-gallery img:hover {
  cursor: pointer;
  border: tomato 2px solid;
}

.taxonomy-comic-tags {
  padding: 15px 0px;
    a {
      display: block;
    }
  .wp-block-post-terms__separator {
    display: none;
  }
}

/* #endregion 

/* #region PROJECT PAGE */ 


.projectheader {
   display: flex;
 justify-content: center;
}

.projectheader img{ 
 max-width: 1020px;
}

.projectinfo {
  display: flex;
  flex-direction: row;
  padding: 10px, 15px, 10px; 
}

.projectdescription {
margin-left: 15px;
}

.projectimage {
  margin: 10px;
}

.projectlinks {
  text-align: center;
  padding: 15px;
}

.projectgallery {
    display: flex;
    flex-direction: row;
    padding: 20px;
}

.projectgallery img{
  max-width: 200px;
  padding-left: 15px;
}
/* #endregion */ 

/* #region DADVICE */ 

#dadvicecomicpage {
  display: flex; 
  justify-content: left;
  flex-wrap: wrap;
  flex-direction: row;
  padding-bottom: 50px;
  img {
    max-height: 250px;
    padding: 5px;
  }
  img:hover {
    cursor: pointer;
    border: tomato 2px solid; 
  }
}

.taxonomy-dadvice-tag {
  margin-bottom: 15px;
}

.contentwarning {
  border: tomato, 5px, dashed; 
  padding: 15px; 
  max-width: 400px;
  margin: 30px auto;
      p {
        font-size: 20px;
      }


}

/* #region SEARCH RESULTS */ 

.attachment-post-thumbnail {
  max-width: 200px;
}

/* #endregion */ 

/* #region PAGINATION */ 
.wp-block-query-pagination {
  font-size: 22px;
  padding-top: 30px;
  display: flex; 
  justify-content: center;
}

.current {
  color: tomato;
  font-weight: bold;
}

.post-navigation-link-previous, .post-navigation-link-next {
  padding-top: 30px;
}
/* #endregion */

.wp-block-contact-form-7-contact-form-selector p {
  padding-top: 10px;
}

.wpcf7-submit:hover {
  background-color: tomato;
  color: white;
}

.wpcf7-submit {
  padding: 5px;
}


/* posts */ 
article { 
    margin-bottom: 3rem;
    padding-bottom: 2rem; 
    border-bottom: 1px solid #eee; 
}

.entry-title a {
    color: #1a1a2e; 
    text-decoration: none;
}

.entry-meta {
    color: #666; 
    font-size: 0.875rem; 
    margin: 0.5rem 0 1rem; 
}

.post-thumbnail img {
    width: 100%;
    height: auto; 
    margin-bottom: 1.5rem; 
    border-radius: 4px; 
}

/* #region Footer */ 
.site-footer {
    background: #f5f5f5; 
    text-align: center;
    padding: 2rem; 
    margin-top: 3rem; 
    font-size: 0.875rem; 
    color: #666; 
}
/* #endregion */

/* #region Responsive */ 
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        text-align: center; 
    }
    .primary-menu {
        margin-top: 1rem;
    }
}
/* #endregion */

/* #region LIGHTBOX */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Lightbox content */
.lightbox-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
}

.lightbox-close {
  position: absolute;
  font-size: 48px;
  font-weight: bold;
  top: 10px;
  right: 10px;
  color: whitesmoke;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1;
}

.lightbox-close:hover {
  color: tomato;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: whitesmoke;
  cursor: pointer;
  z-index: 1;
}

.lightbox-arrow:hover {
  color: tomato;
}

.lightbox-arrow-prev {
  left: 10px;
}

.lightbox-arrow-next {
  right: 10px;
}

.lightbox-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 90vh;
  padding: 1.6rem;
  margin: auto;
}

/* Lightbox image */
.lightbox-image {
  cursor: pointer;
  transition: opacity 0.2s;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  order: 1;
}


.lightbox-enlarged {
  opacity: 1;
}

.lightbox-caption {
/*  position: absolute;
  bottom: 0;
  left: 0; */ 
  width: 60%;
  margin: auto;
  margin-top: 10px;
  padding: 1rem;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  color: whitesmoke;
  border-radius: 24px;
  order: 2;
}
/* #endregion */