/*
Reset css from: https://www.joshwcomeau.com/css/custom-css-reset/

*/

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-color);
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}


li {
  list-style-type: none;
}

ul {
  margin: 0;
  padding: 0;
}

.edu-font {
  font-family: "Edu NSW ACT Cursive", cursive;
  font-optical-sizing: auto;
}

.mono-font {
  font-family: "Cascadia Mono", sans-serif;
  font-optical-sizing: auto;
}

.nunito-font {
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
}

:root {
  --header-color: #131212;
  --bg-color: #131212;
  --font-color: #FFFFFF;
  --border-color: #4b4a4a;
  --post-font-color: #D6D6D6;
  --footer-color: #2c2b2b;

/*
  --header-color: #2D3250;
  --bg-color: #242736;
  --font-color: #FFFFFF;
  --border-color: #4b4a4a;
  --post-font-color: #D6D6D6; */
}

.hr-line {
  border: solid 0.5px #272626;
}

/* ============================   HEADER  ============================ */

#header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 55px;
  background-color: var(--header-color);
  margin-top: 5px;
}

.in-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin: 0px 20px;
}

.header-title {
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}


.header-buttons {
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: right;
  align-items: center;
  gap: 20px;
}

.in-header-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  /* width: 30%; */
  gap: 15px;
}

.main-title {
  font-size: 170%;
  color: var(--font-color);
}

.main-title-a {
  text-decoration: none;
  cursor: pointer;
}

.header-summary {
  display: flex;
  flex: 2;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.header-summary-wrap-a {
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

.summary {
  color: var(--font-color);
  font-size: 150%;
  font-weight: bold;
}

.search-btn {
  background-color: var(--bg-color);
  border: none;
  cursor: pointer;
}

.search-btn span {
  padding: 4px;
  color: #FFFFFF;
  font-size: 200%;
}

.search-btn:hover span {
  color: rgb(245, 46, 46);
}

.subscribe-btn {
  color: #FFFFFF;
  background-color: rgb(245, 46, 46);
  width: 100px;
  height: 40px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

/* ============================   HEADER END  ============================ */

/* ============================   CONTENT  ============================ */

.tabs {
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  /* margin: 0px 20px; */
}

.tabs a {
  text-decoration: none;
  cursor: pointer;
}

.tabs a {
  color: #FFFFFF;
}

.tab-val-wrap {
  margin: 0px;
  height: 100%;
}

.tab-vals {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}

.tab-val {
  flex: 1;
  font-size: 120%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0px 10px;
}

.tab-val:hover {
  background-color: rgb(29, 28, 28);
}

#content {
  background-color: var(--bg-color);
  width: 100%;
  min-height: 78vh;

  display: flex;
  justify-content: center;

}

.in-content {
  margin-top: 20px;
  width: 800px;
  min-height: 90vh;
}

.blog-summary {
  color: var(--font-color);
  display: inline-block;
  margin: 10px 0px;
}

/* ============================   CONTENT END  ============================ */

/* ============================   CATEGORY  ============================ */
.category-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 20px;
}

.category-title {
  align-self: flex-start;
  color: var(--font-color);
  font-size: 120%;
}

.category-latest-posts {
  display: flex;
  flex-direction: column;
  width: 90%;
  margin-top: 15px;
  gap: 20px
}

.post {
  display: flex;
  flex-direction: row;
  padding: 20px 20px;
  gap: 20px;

  background-color: var(--header-color);
  border: solid 1px #424242;
  border-radius: 10px;
  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post:hover {
  transform: translateY(-2px);
  box-shadow: 0px 0px 5px #3f3f3f;
}

.post-img {
  width: 300px;
  height: auto;
  border-radius: 20px;
  aspect-ratio: 50/21;
}

.post-text {
  display: flex;
  flex-direction: column;
  padding-top: 15px;
  gap: 10px;

  font-weight: bold;
}

.post-title {
  color: var(--font-color);
  font-size: 130%;
}

.post-desc {
  color: var(--font-color);
  font-size: 100%;
  font-weight: lighter;
}

.post-date {
  color: #807c7c;
  font-size: 80%;
  font-weight: lighter;
}

.read-more {
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;

  color: var(--font-color);
}

.read-more:hover {
  text-decoration: underline;
}

.post-wrap-a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ============================   CATEGORY END  ============================ */
/* ============================   FOOTER  ============================ */

#footer {
  width: 100%;
  height: 50px;
  display: flex;
  background-color: var(--footer-color);

  justify-content: center;
  align-items: center;
  color: var(--font-color);
}

/*  RESPONSIVE  */

@media (max-width: 1030px) {
  .summary {
    font-size: 120%;
  }
}


@media (max-width: 845px) {
  .summary {
    font-size: 100%;
  }
}

@media (max-width: 670px) {
  .post {
    flex-direction: column;
  }

  .post-img {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-summary {
    display: none;
  }
}

@media (max-width: 390px) {
  .tab-val {
    font-size: 100%;
  }
}