/* Reset for margins and paddings */
* {
  margin: 0;
  padding: 0;
}

/* Selection styling */
::selection {
  background: #753f00;
  text-shadow: none;
}

/* HTML & Body Styling */
html,
body {
  /* width: 100%; */
  height: 100%;
}

/* Initial styles without background image */
body {
  height: 100%;
  overflow-x: hidden;
  background: black url('/css/circuit_board.svg');
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


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

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;

  background-image: radial-gradient(#1f1f1f8e, black 120%);
  pointer-events: none;
}

body {
  /* display: grid; */
  grid-template-rows: 1fr auto;
  min-height: 100vh;
}

/* Inline code styling */
code {
  font-family: monospace;
  font-size: 105%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ff961f;
  padding: .2em .4em;
  border-radius: 6px;
  box-sizing: border-box;
  max-width: 100%;
}

/* Block code styling within pre tag */
pre {
  background-color: rgba(0, 0, 0, 0.5);
  padding: .5em;
  border-radius: 6px;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0.5em 0;
}

pre code {
  font-family: monospace;
  font-size: 105%;
  background-color: transparent;
  color: #ff961f;
  padding: 0;
  border-radius: 6px;
  display: block;
  white-space: pre-wrap;
  box-sizing: border-box;
  max-width: 100%;
}

/* Navigation Bar Styling */
.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #1f1f1f;
  font: 1rem monospace;
  color: #ff961f;
  text-shadow: 0 0 5px #e07800;
  width: 100%;
  background-color: #121212b2;
}

.navbar a {
  color: inherit;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.navbar a[href="#about"] {
  margin-left: auto;
}

.navbar::after {
  content: "";
  display: table;
  clear: both;
}

/* Dropdown Menu Styling */
.dropdown {
  overflow: hidden;
}

.dropdown .dropbtn {
  border: none;
  outline: none;
  text-shadow: inherit;
  background-color: inherit;
  color: inherit;
  font: inherit;
  padding: 14px 16px;
  margin: 0;
}

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

.dropdown-content a {
  float: none;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Navigation & Dropdown Hover Effects */
.navbar a:hover,
.dropdown:hover .dropbtn,
.dropdown-content a:hover {
  background-color: #753f00;
  text-shadow: none;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Outer Border Styling & Effects */
.outer-border {
  background-color: #121212;
  border-radius: 60px;
  padding: 15px;
  width: 60%;
  margin: 0 auto;
  position: relative;
  /* overflow: hidden; */
}

/* @media only screen and (hover: none) and (pointer: coarse) {
  .outer-border {
    width: 100%;
    position: relative;
  }
} */

.outer-border::before,
.outer-border::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* Main Content Styling */
.main-content {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.1em;
  line-height: 1.3;
  background-color: #1f1f1f;
  padding: 30px;
  border-radius: 45px;
  color: #cccccc;
  text-shadow: none;
  width: 100%;
  box-sizing: border-box;
  overflow-x: none;
}

.main-content a {
  color: #ffc077;
  text-decoration: underline;
}

.main-content a:hover {
  color: #ff961f;
  text-decoration: underline;
  text-shadow: 0 0 15px #ff961f;
}


.content-wrapper {
  flex: 1 0 auto;
}

.content-wrapper q {
  display: block;
  margin: 10px 0;
  padding: 10px;
  background-color: #121212;
  border-left: 5px solid #ff961f;
  border-radius: 10px;
  position: relative;
  margin-bottom: 1.8rem;
}

.content-wrapper .quote-author {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  text-align: right;
  font-style: italic;
}


.content-wrapper img {
  max-width: calc(100% - 40px);
  height: auto;
  display: block;
  margin: 10px auto;
  box-sizing: border-box;
  border-radius: 10px;
}

/* Footer Styling */
.footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background-color: #121212b2;
  text-align: center;
  padding: 5px 0;
  width: 100%;

  font: 1rem monospace;
  color: #ff961f;
  text-shadow: 0 0 5px #e07800;
}

.footer a {
  color: inherit;
  text-decoration: none;
  text-shadow: inherit;
}

.footer a:hover {
  text-decoration: underline;
  text-shadow: 0 0 15px #ff961f;
}

.footer a::before {
  content: "[";
}

.footer a::after {
  content: "]";
}

ul {
  box-sizing: border-box;
  margin-left: 40px;
}

.social-links {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  padding-left: 15%;
  padding-right: 15%;
}

.icon i {
  font-size: 40px;
}

.username {
  text-align: center;
  margin-top: 10px;
  font-size: 32px;
}

img {
  max-width: 100%;
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Container holding the iframes */
.video-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.video-container iframe {
  margin: auto;
}

p {
  margin: 5px 0;
  padding: 5px;
}

.article-preview .thumbnail {
  position: relative;
  max-height: 400px;
  width: auto;
  margin: 5px auto;
  word-wrap: break-word;
  z-index: 2;
}

/* video styling to debloat youtube embeds */
.video {
  position: relative;
  width: 100%;
  margin: 5pt;
}

.video__aspect-ratio-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video__youtube {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video__iframe,
.video__button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video__placeholder {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
}

.video__button {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

.video__button:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url(youtube-play-dark.svg) no-repeat center center;
  background-size: contain;
  width: 10%;
  height: 10%;
}

.video__button:hover:before {
  background: url(youtube-play-red.svg) no-repeat center center;
  background-size: contain;
}

/* responsive styling */
@media screen and (max-aspect-ratio: 16/11) {
  .main-content {
    width: 100%;
    padding: 10px;
    border-radius: 25px;
    display: inline-block;
    word-wrap: break-word;
  }

  .outer-border {
    width: 100%; 
    padding: 5px; 
    border-radius: 30px;
  }

  .social-links {
    padding-left: 8%;
    padding-right: 8%;
  }

  ul {
    margin-left: 20px;
  }

  img {
    max-height: 30vh;
    display: block;
    margin: auto;
    max-width: 100%;
  }

} 

.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
