/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
@import url("https://fonts.googleapis.com/css?family=Playfair+Display|Source+Sans+Pro:200,400");
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@100&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

body {
  height: 100%;
  margin: 0;
  background-image: url("https://images2.alphacoders.com/820/820119.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  color: white;
}

span, p, a, label, input, strong, button, small, li {
  font-family: 'Source Sans Pro', sans-serif;
  color: white;
}

article a {
  font-family: 'Source Sans Pro', sans-serif;
  color: #f3edff;
  text-decoration: underline;
}

time {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: smaller;
  color: white;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.serif {
  font-family: 'Playfair Display', serif;
}

.sans-serif {
  font-family: 'Source Sans Pro', sans-serif;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 2px;
  padding: 0 16px;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity .25s;
}

button:hover {
  opacity: .6;
}

input[type=text], input[type=password] {
  border-radius: 2px;
  text-indent: 10px;
  border: 1px solid transparent;
  border-top: none;
  border-bottom: 1px solid #DDD;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.39), 0 -1px 1px #FFF, 0 1px 0 #FFF;
}

input:focus {
  outline: 0;
}

a {
  text-decoration: none;
}

.go-to-menu {
  display: block;
  cursor: pointer;
  color: #f3edff;
  animation: flash linear 1s infinite;
}

.nav {
  display: grid;
  height: 100vh;
  grid-template-rows: 1fr 5fr;
}

.comp-nav-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-row: 2;
  grid-template-rows: repeat(auto-fit, 1fr);
  -ms-flex-item-align: center;
      align-self: center;
  gap: 2px;
}

.comp-nav-list li {
  background-color: rgba(0, 0, 0, 0.7);
  position: relative;
  display: block;
  width: 200px;
  margin-left: 15px;
  transition: background-color 0.2s;
}

.comp-nav-list li:hover {
  cursor: pointer;
  background-color: #f3edff;
}

.active {
  cursor: pointer;
  background-color: #f3edff;
}

.comp-nav-list li::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-left: 0px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid rgba(0, 0, 0, 0.7);
  border-radius: 0px 0px 0px 0px;
  clear: both;
  transition: border-top 0.2s;
}

.comp-nav-list li:hover:after {
  cursor: pointer;
  border-top: 20px solid #f3edff;
}

.active > .comp-nav-list li:hover:after {
  cursor: pointer;
  border-top: 20px solid #f3edff;
}

.comp-nav-list li::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-right: 0px solid transparent;
  border-left: 10px solid transparent;
  border-bottom: 20px solid rgba(0, 0, 0, 0.7);
  border-radius: 0px 0px 0px 0px;
  clear: both;
  transition: border-bottom 0.2s;
}

.comp-nav-list li:hover:before {
  cursor: pointer;
  border-bottom: 20px solid #f3edff;
}

.active > .comp-nav-list li:hover:before {
  cursor: pointer;
  border-bottom: 20px solid #f3edff;
}

.comp-nav-list li a {
  color: #f3edff;
  text-decoration: none;
  transition: color 0.2s, margin-left;
  text-transform: uppercase;
  display: block;
  margin-left: 5px;
  width: 100%;
  height: 20px;
}

.comp-nav-list li a:hover {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  margin-left: 20px;
}

.active > .comp-nav-list li a:hover {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
}

.posts {
  height: 100vh;
  width: 100vw;
  background-image: url("https://images3.alphacoders.com/993/993631.jpg");
  display: grid;
  place-items: center;
}

.comp-pc-title {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  color: #f3edff;
  display: block;
  margin: 0;
  padding-top: 5px;
  padding-bottom: 10px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-pack: center;
      justify-content: center;
  text-align: center;
}

.comp-pc-posts {
  height: 60vh;
  width: 45vw;
  background: linear-gradient(rgba(56, 29, 112, 0.95), 15%, rgba(10, 0, 31, 0.95));
  border-style: solid;
  border-color: #a375ff;
  border-radius: 3px;
  border-width: 2px;
  box-shadow: 0px 0px 15px 1px #000000;
  overflow: scroll;
  justify-items: center;
}

::-webkit-scrollbar {
  width: 0px;
  background: transparent;
  /* make scrollbar transparent */
}

.comp-pc-post-items {
  display: grid;
  gap: 4px;
  justify-items: center;
  width: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(auto-fill(3em));
}

.comp-pc-post-item {
  background: linear-gradient(#a67aff, 20%, #7047C5, 80%, #a67aff);
  box-shadow: 0px 0px 3px 1px #000000;
  border-radius: 5px;
  width: 95%;
  cursor: pointer;
}

.comp-pc-post-title {
  display: block;
  color: white;
  margin-left: 25px;
  padding-bottom: 10px;
}

.comp-pc-post-date {
  display: block;
  color: #f3edff;
  margin-left: 25px;
  padding-bottom: 5px;
}

.comp-pc-post-item:hover {
  background: linear-gradient(#f3edff, 20%, #CEB5FF, 80%, #f3edff);
  box-shadow: 0px 0px 3px 1px #f3edff;
}

.comp-pc-post-item:hover > .comp-pc-post-title {
  color: #331d61;
}

.comp-pc-post-item:hover > .comp-pc-post-date {
  color: #331d61;
}

@media only screen and (max-width: 600px) {
  .comp-pc-posts {
    height: 90vh;
    width: 90vw;
    background: linear-gradient(rgba(56, 29, 112, 0.95), 15%, rgba(10, 0, 31, 0.95));
    border-style: solid;
    border-color: #a375ff;
    border-radius: 3px;
    border-width: 2px;
    box-shadow: 0px 0px 15px 1px #000000;
    overflow: hidden;
    justify-items: center;
  }
}

.post {
  background-image: url("https://images7.alphacoders.com/628/628592.jpg");
}

.comp-post-container {
  display: grid;
  place-items: center;
  height: 100vh;
  width: 100vw;
}

.comp-post-body {
  display: grid;
  grid-template-rows: 1.5fr 3fr;
  position: static;
  background-image: url("https://images4.alphacoders.com/628/628590.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  height: 800px;
  width: 600px;
  border-radius: 15px;
  box-shadow: 0px 0px 15px 5px rgba(10, 0, 31, 0.6);
}

.comp-post-image-container {
  overflow: hidden;
  grid-column-start: 1;
  grid-column-end: 2;
  border-radius: 15px 15px 0px 0px;
}

.comp-post-image {
  width: 100%;
  height: auto;
  min-height: 100%;
  min-width: 100%;
  -o-object-position: center;
     object-position: center;
  overflow: hidden;
}

.comp-post-wrapper {
  grid-row: 2;
  border-radius: 0px 0px 15px 15px;
  background: linear-gradient(rgba(56, 29, 112, 0.7), #0a001f);
  overflow: scroll;
}

.comp-post-wrapper > * {
  margin: 20px;
}

.comp-post-mobile-nav {
  display: none;
}

@media screen and (max-height: 800px), screen and (max-width: 700px) {
  .comp-post-body {
    display: grid;
    grid-template-rows: 1.5fr 3fr;
    background-image: url("https://images4.alphacoders.com/628/628590.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    border-radius: 15px;
    box-shadow: 0px 0px 15px 5px rgba(10, 0, 31, 0.6);
  }
  .comp-post-mobile-nav {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 999;
    height: 33.333vh;
    width: 100vw;
    grid-template-rows: 5fr 1fr;
    justify-items: center;
    display: grid;
    pointer-events: none;
    -ms-touch-action: none;
        touch-action: none;
  }
  .mobile-go-to {
    grid-row: 2;
    pointer-events: auto;
    -ms-touch-action: auto;
        touch-action: auto;
  }
  .comp-post-footer {
    display: none;
  }
  .comp-post-image-container {
    grid-column-start: 1;
    grid-column-end: 2;
    overflow: hidden;
    display: grid;
    border-radius: 0px 0px 0px 0px;
  }
}
