:root {
  font-family: 'Open Sans', sans-serif;
  
  --red: rgb(240, 25, 60);
  --navcolor: rgb(52, 58, 64);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background-image: url(/static/background.jpg);
  background-size: 100%;
  /* background-blend-mode: overlay;  */
  color: rgb(20, 20, 20);
  background-color: rgb(242, 242, 242);
  font-family: 'Open Sans', sans-serif;
}

#page-container {
  position: relative;
  min-height: 100%;
  width: 100%;
  max-width: 2048px;
  margin: auto;
}

.main-content {
  padding-bottom: 80px;   /* Height of the footer (55) + 25 */
  padding-top: 25px;
  padding-left: 25px;
  padding-right: 25px;
}

.homepage-content {
  min-height: calc(100vh - 140.95px);
  /* height: calc(100% + 50px);
  width: calc(100% + 50px); */
  margin: -25px;
  display: flex;
  flex-flow: column;
  font-family: "Segoe UI", sans-serif;
  background-image: url("/static/homepage-background2.jpg");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: rgb(20,20,20);
  color: white;
  align-items: center;     /* center items horizontally, in this case */
}

.title {
  font-weight: 700;
  font-family: dosis, sans-serif;
  display: inline-block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Top navigation */

#main-nav {
  z-index: 1;
  font-family: "Segoe UI", sans-serif;
  background-color:#1c181f;
}


#main-nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  outline: none;
  -webkit-tap-highlight-color: transparent; /* phone blue box (on click) transparency */
}

#main-nav-logo .typewrite {
  font-family: dosis, sans-serif;
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  white-space: nowrap; /* Keeps the content on a single line */
  letter-spacing: .02em; /* Adjust as needed */
  animation: 
    typing 2.5s steps(60, end),
    blink-caret 1s step-end infinite;
}

.typewrite {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  white-space: nowrap; /* Keeps the content on a single line */
  animation: 
  typing 0.5s steps(250, end),
  blink-caret 1s step-end infinite;
}

#main-nav img{
  margin-left: 20px;
  margin-right: 20px;
  max-height: 50px;
  max-width: 50px;
  margin-top: 10px;
  margin-bottom: 10px;
  animation: 0.5s ease-out;
  -webkit-animation: 0.5s ease-out;
}

#main-nav ul{
  display: flex;
  flex: 1;
  height: 100%;
  max-width: 400px;
  padding-left: 20px;
  padding-right: 20px;
}

#main-nav li {
  padding-right: 40px;
  padding-top: 15px;
  padding-bottom: 15px;
}

#main-nav li a {
  color: #fff;
  height: 1em;
  padding:0;
  -webkit-tap-highlight-color: transparent; /* phone blue box (on click) transparency */
  text-decoration: none;
  overflow: hidden;
  display: inline-block;
  line-height: 1em;
}

#main-nav li a.nav-active {
  color: rgb(255, 57, 87);
  pointer-events: default; /* TODO - Maybe change later */
}

#main-nav li a span {
  position: relative;
	display: inline-block;
	-webkit-transition: -webkit-transform 0.3s;
	-moz-transition: -moz-transform 0.3s;
  transition: transform 0.3s initial;
  text-transform: uppercase;
  font-size: 1em;
  font-weight: bold;
  background-clip:content-box;
}

#main-nav li a span:before {
  position: absolute;
  top: 110%;
  color: rgb(255, 57, 87);
	content: attr(data-hover);
	-webkit-transform: translate3d(0,0,0);
	-moz-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0); 
}


#main-nav li a span:hover,
#main-nav li a span:focus {
	-webkit-transform: translateY(-110%);
	-moz-transform: translateY(-110%);
  transform: translateY(-110%);
}


footer {
  display: flex;
  align-items: center;
  position:absolute;
  bottom:0;
  width:100%;
  height:55px;   /* Height of the footer */
  max-height: 55px;
  background: #0e0c10;
  color: #a8a8a8;
}

footer span {
  flex: 1;
  margin-left: 15px;
  margin-right: 15px;
}

footer .wrapper {
  display: flex;
}

footer a {
  margin-right: 35px;
  -webkit-tap-highlight-color: transparent; /* phone blue box (on click) transparency */
}

footer svg {
  fill: #a8a8a8;
  transition: all .35s ease;
  -webkit-transition: all .35s;
  box-sizing: initial;
}

footer svg:hover {
  fill: rgba(180, 45, 45, 0.945);
  transform: scale(1.2);
}

.about-main {
  padding-top: 20px;
  padding-left: 10px;
  padding-right: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.55rem;
}

.about-main img {
  float: left;
  margin-right: 20px;
  max-width: 215px;
  max-height: 215px;
  background-color: transparent;
  border: 2px groove var(--navcolor);
}

.about-main div.block:nth-child(even) .title {
}

.about-main div.block:nth-child(odd) .title {
}

.about-main a {
  color:var(--red);
}


.about-main h3 {
  font-weight: 700;
}

.about-main .p-stack {
  margin-bottom: 100px;
}

progress {
  border-radius: 1px; 
  margin-top: 4px;
  color: var(--red);
  border-color: var(--navcolor);
}

progress::-webkit-progress-bar {
 background-color: var(--navcolor);
  border-radius: 2px;
}
progress::-webkit-progress-value {
   border-radius: 2px; 
   background-color: var(--red);
}
progress::-moz-progress-bar {
  background-color: var(--red);
}


.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

/* END OF MAIN TEMPLATE PAGE */

.tag {
  font-family: Roboto;
  letter-spacing: 0.05em;
  width: max-content;
  padding: 3px;
  padding-left: 8px;
  padding-right: 8px;
  margin-right:12px;
  font-size: 0.8em;
  cursor: pointer;
  transform: translateZ(0);
  transition: all .24s ease-in-out;
  -webkit-font-smoothing: antialiased;
  transform: scale(1);
  border-width: 2px 2px 2px 2px;
  border-style: none none solid none;
}

.tag.selected {
    border-style: solid solid solid solid;
    border-width: 3px 3px 3px 3px;
    border-radius: 5px;
}

.search {
  display: flex;
  flex-direction: row;
  white-space: nowrap;
}

.search input {
  width: calc(100% - 46px) !important;
}

.topics {
  flex-direction: row;
}

.topics div.card-body, .tags div.card-body {
  padding-bottom: 5px;
}

.topics div.topic, .tags div.tag {
  margin-bottom: 15px;
}

.topic {
  min-width: 125px;
  min-height: 75px;
  flex: 1;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  border-width: 3px;
  border-style: solid none none none;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15), 0 3px 10px 0 rgba(0, 0, 0, 0.12);

  font-family: 'Roboto', serif;
  letter-spacing: 0.10em;
  font-size: 1em;
  margin-left: 16px;
  margin-right: 16px;
  padding: 12px;
  cursor: pointer;
  transition: all .24s ease-in-out;
  -webkit-font-smoothing: antialiased;
  transform: scale(1);
}

.topic.selected {
  border-style: solid solid solid solid;
  background-color: rgba(255,255,255,0.8);
}

.topic:hover, .tag:hover{
  transform: scale(1.15);
}

.topic svg {
  width: 0%;
  position: absolute;
  top: -1px;
  left: -1px;
  -ms-transform: rotate(90deg); /* IE 9 */
  -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
  transform: rotate(90deg);
}

.topic.selected svg{
  width: 7.5%;
}

.blog-navigaion {
  
}

.navigation-item {
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15), 0 3px 10px 0 rgba(0, 0, 0, 0.12);
}

#search {
  background-color: transparent;
}


.scale {
  transform: scale(1);
  transition: all .24s ease-in-out;
  -webkit-font-smoothing: antialiased;
}

.scale:hover {
  transform: scale(1.04);
  -webkit-font-smoothing: antialiased;
}

#article-list-container .meta {
  margin-bottom: 3em;
}

#article-list-container .meta .content{
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15), 0 3px 10px 0 rgba(0, 0, 0, 0.12);
  width: 100%;
  transition: all .2s;

}

#article-list-container .meta .content img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.article {
  /*
  background-repeat: no-repeat;
  background-size: 300%;
  background-position: center;
  background-image: url('/static/watercolor.png');

   */
  display: table;
  height: fit-content;
  cursor: pointer;
  border-width: 3px;
  border-style: solid none none none;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15), 0 3px 10px 0 rgba(0, 0, 0, 0.12);
  transition: all .18s ease-out;

}

a.article {
  text-decoration: none;
  color:black;
}

.article .content {
  padding: 1em;
  height: 100%;
  display: grid;
  overflow: hidden;
}

.article hr {
  width: 100%;
}


.article .title {
  font-size: 1.8em;
  display: block;
  padding: 0.5em;
  font-family: dosis-bold, sans-serif;
  text-align: center;
  margin-bottom: 0;
}

.article .card-text {
  padding-left: 16px;
  padding-right: 16px;
}

.article .metadata {
  font-size: 1em;
  line-height: 40px;
  display: flex;
  list-style-type: none;
  overflow: auto;
}

.article .word-count {
  text-align: left;
  flex:1;
  /*
  font-size: 1.5em;
  font-family: 'Caveat', cursive;
  font-weight: 700;
   */
  margin-bottom: 0;
  bottom: 0;
}

.article .timestamp {
  text-align: right;
  float: right;
  font-size: 1.5em;
  font-family: 'Caveat', cursive;
  flex:3;
  padding-right: 8px;
  bottom: 0;
}

.article:hover {
  box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.card {
  border-radius: 0.5rem;
  overflow: hidden;
}

/* text editor centering */
.tox.tox-tinymce{

}

.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 24px;
}
.pagination {
  flex-wrap: wrap;
  justify-content: center;
}

.pagination .page-item{
  margin: 10px 10px 20px 10px;
  color: rgb(45, 45, 45);
  background-color: transparent;
}

.pagination .p-link {
  border: 3px solid rgb(45, 45, 45);
  border-radius: 10px;
  font-weight: bold;
  padding: .3rem .75rem;
  color: rgb(45, 45, 45);
  transition: all .09s ease-in-out;
  text-decoration: none;
  background-color: transparent;
  outline:none;
}

.pagination .p-link.selected {
  background-color: rgba(192, 37, 58, 0.85);
  color: white;
}

.pagination .p-link:hover {
  background-color: rgb(192, 37, 58);
  color: white;
}


.article-detail .title {
  margin-bottom: 20px;
  /* font-family: 'Caveat', cursive; */
  font-size: 1.9em;
  width: 100%;
  text-align: center;
}

.article-detail h3 {
  text-align: center;
  font-size: 1.3em;
  margin-top: 65px;
  margin-bottom: 24px;
}

.article-detail .horizontal {
  display: flex;
  flex-direction: row;
}

.article-detail img {
  object-fit: contain;
}

.article-detail .thumbnail {
  width: 100%;
  max-height: 425px;
  margin: auto;
  background-color: transparent;
  background-size: auto;
  background-position: center;
  padding: 0;
}

.article-detail .thumbnail {
  background-image: url('/static/bg-item.jpg');
}

.article-detail .border {
  border: 2px solid rgb(45, 45, 45) !important;
}

.article-detail a {
  color: rgb(120, 15, 27);
}

.article-detail .metadata {
  margin-top: 48px;
  color: rgb(80, 80, 80);
  font-weight: bold;
  font-size: 0.9em;
}

.article-detail .content {
  margin-top: 12px;
  font-family: 'Roboto', sans-serif;
  text-align: justify;
  font-size: 17px;
}

.article-detail .topic {
  margin-top: 5px;
  margin-bottom: 5px;
}

.article-detail p.note {
  border: 3px solid #b09582;
  border-radius: 5px;
  margin-left: -4px;
  padding: 12px;
}

.article-recommended a{
  text-decoration: none;
  color: #7a1420;
  position: relative;
  font-size: 0.9rem;
}

.article-recommended a:after{
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  display: block;
  margin-top: 2px;
  right: 0;
  background: #7a1420;
  transition: width .4s ease;
  -webkit-transition: width .4s ease;
}

.article-recommended a:hover:after{
  width: calc(100% - 1rem);
  left: 1rem;
  background: #7a1420;
}

.about-title {
  font-size: 2em;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: dosis, sans-serif;
}

.explosive-menu {
  font-family: dosis, sans-serif;
}

.explosive-menu .menu-group {
  text-align: center;
}


.explosive-menu .item {
  display: flex;
  position: relative;
  margin: auto;
  flex-direction: row;
  cursor: pointer;
  align-items: center;
  width: 175px;
}

.explosive-menu hr {
  max-width: 300px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.explosive-menu img {
  width: 40px;
  height: 40px;
}

.explosive-menu .item .icon {
  transition-duration: .3s;
  z-index: 1;
  -webkit-filter: drop-shadow(8px 8px 0 black) drop-shadow(-1px -1px 0 black) grayscale(40%);
  filter: drop-shadow(8px 8px 0 black) drop-shadow(-1px -1px 0 black) grayscale(40%);
}

.explosive-menu .item img {}

.explosive-menu .item .explosive {
  transform: scale(0);
  position: absolute;
  transition-duration: 0.32s;
  margin-left: 3px; margin-top: -2px;
  z-index: 0;
  top:0;
}

.explosive-menu .item:hover .explosive {
  transform: scale(2.65);
  z-index: 0;
}

.explosive-menu .item:hover .icon {
  -webkit-filter: drop-shadow(1px 1px 0 black) drop-shadow(-1px -1px 0 black) grayscale(0);
  filter: drop-shadow(1px 1px 0 black) drop-shadow(-1px -1px 0 black) grayscale(0);
}

.explosive-menu .item .name {
  margin-left: 24px;
  font-size: 1.5em;
  font-weight: 700;
  z-index: 1;
  letter-spacing: .075em;
  color:rgb(40, 40, 40);
}

.explosive-menu .item .name:hover {
  text-decoration:underline;
}

.about-email {
  text-align: center;
}

.about-email a {
  color: rgb(207, 37, 60);
  font-size: 1.2em;
}


.sexyButton {
  border: 3px solid rgb(45, 45, 45);
  border-radius: 10px;
  font-weight: bold;
  padding: .3rem .75rem;
  color: rgb(45, 45, 45);
  background-color: transparent;
  transition: all .25s ease-in-out;
  text-decoration: none;
}

.sexyButton:hover {
  transform: scale(1.1);
  color:white;
  background-color: rgba(192, 37, 58, 0.75);
}

.sexyButton:focus {
  outline: 0;
}

@keyframes spinStart {
  0% { transform: rotate(320deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinOpen {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(540deg); }
}

@keyframes spinClose {
  0% { transform: rotate(540deg); }
  100% { transform: rotate(720deg); }
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--red); }
}

.flexwrap {
  display:flex;
  flex-wrap: wrap;
}


.letter-text {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: bold;
  overflow: hidden;
}

.letter-text .letter {
  display: inline-block;
  line-height: 1em;
}

/* Main page small size  */
@media (max-width: 720px) {
  svg {
    max-height: 90px;
    }
  .homepage-content h1 {
      font-size: 24px;
  }
  .homepage-content h2 {
    font-size: 20px;
  }
  .homepage-content h3 {
    font-size: 20px;
  }
  .not-found {
    font-size: 30px;
  }
  .homepage-content{
    background-position: 50% 62%;
    background-image: url("/static/homepage-background.jpg");
  }
   .article {
    font-size: 14px !important;
  }
}

@media (max-width: 600px) {
  svg {
    max-height: 60px;
    }
   .article .snippet{
    font-size: 13px !important;
  }
   .article .title{
    font-size: 20px !important;
  }
}

@media (min-width: 2000px){
  .homepage-content {
    background-size: 100%;
  }
}

