/* TheDrunkPilot CSS */

/* Custom Fonts */
@font-face {
  font-family: PC98;
  src: url("fonts/pc-9800.ttf");
}

@font-face {
  font-family: "AnalogueOS";
  src: url(https://humantooth.neocities.org/fonts/AnalogueOS-Regular.woff)
    format("woff");
  font-weight: normal;
  font-style: normal;
}

/* Proper Positions font declaration */
@font-face {
  font-family: "Positions By Arixbored";
  src: url("PositionsByArixbored-Regular.woff2") format("woff2"),
    url("PositionsByArixbored-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* CRT Effect */
.crt::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 9999;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

/* start light mode styling */
:root {
  --text: darkslategrey;
  --border: lightgrey;
  --accent: teal;
  --bg: #dce3e1;
  --gradientTop: white;
  --gradientBottom: rgb(240, 248, 255, 0.8);
}

header {
  background: url("https://i.imgur.com/1YmRhVz.jpeg");
}
/* end light mode styling */

/* start dark mode styling */
@media (prefers-color-scheme: dark) {
  :root {
    --text: white;
    --border: #5a7678;
    --accent: #74c365;
    --bg: rgb(0, 60, 60, 0.8);
    --gradientBottom: rgb(0, 50, 60);
    --gradientTop: darkslategrey;
  }

  a:link {
    color: lightblue;
  }

  header {
    background: url("https://i.imgur.com/1YmRhVz.jpeg");
  }
}
/* end dark mode styling */

* {
  box-sizing: border-box;
}

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

body {
  padding: 10px;
  font-family: PC98, "AnalogueOS", sans-serif;
  color: var(--text);
  margin: 0;
  background-image: url("https://i.imgur.com/ny0JgT3.gif");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-color: #f0efed;
  min-height: 100vh;
  overflow-y: scroll;
  cursor: url(https://64.media.tumblr.com/36da9a12e4cfaba7fe41442a16e9b92e/e889e7b7ccfbe817-c9/s75x75_c1/34ed3dd4d38cf24044e93f9519b544b9ca0b64df.webp), url(https://cur.cursors-4u.net/mechanics/mec-5/mec443.cur), auto;
}

.container {
  max-width: 55rem;
  margin: 5vw auto 12px auto;
  border: 1px solid #000;
  background-color: #d4d4d4;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  gap: 5px;
  box-shadow: inset 13px 0px 6px -10px rgb(66 66 66 / 20%),
    inset -13px 0px 6px -10px rgb(66 66 66 / 56%),
    inset 0px 13px 6px -10px #ffffff,
    inset 0px -13px 6px -10px rgb(66 66 66 / 38%),
    0 5px 15px rgba(0, 0, 0, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.2);
}

/* these control the column widths */
.small {
  flex: 1 1 9%;
}
.large {
  flex: 1 1 82%;
}
.full {
  flex: 1 1 100%;
}
.half {
  flex: 1 1 49%;
}

header {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 120px; /* change banner height here*/
  border: 2px ridge var(--border);
  border-radius: 5px;
  position: relative;
}

header span {
  font-size: 3.5rem; /* Increased from 2.5rem to 3.5rem */
  position: absolute;
  bottom: 0;
  right: 10px;
  margin: 10px;
  font-weight: bold;
  font-family: "Positions By Arixbored", "Pretty On The Inside", cursive;
  letter-spacing: 3px; /* Added letter spacing */
  text-shadow: 2px 2px #000, -2px 2px #000, 2px -2px #000, -2px -2px #000;
  color: white;
}

nav {
  border: 1px solid #000;
  border-radius: 0;
  padding: 5px;
  background-color: #f2f2f2;
  box-shadow: inset 13px 0px 6px -10px rgb(66 66 66 / 20%),
    inset -13px 0px 6px -10px rgb(66 66 66 / 56%),
    inset 0px 13px 6px -10px #ffffff,
    inset 0px -13px 6px -10px rgb(66 66 66 / 38%),
    0 3px 10px rgba(0, 0, 0, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.1);
}

nav div {
  text-align: center;
  font-size: 1.25rem;
  margin: 5px 5px 10px 5px;
}

nav a {
  display: block;
  margin: 5px;
  background-color: #f2f2f2;
  border: 1px solid #000;
  border-radius: 0;
  padding: 2px 7px;
  text-decoration: none;
  box-shadow: inset 13px 0px 6px -10px rgb(66 66 66 / 20%),
    inset -13px 0px 6px -10px rgb(66 66 66 / 56%),
    inset 0px 13px 6px -10px #ffffff,
    inset 0px -13px 6px -10px rgb(66 66 66 / 38%);
}

nav a:link,
nav a:visited {
  color: #000;
}

nav a:hover,
nav a:focus {
  color: #4a4a4a;
  background-color: #fff;
}

/* Animated underline link styling */
.link {
  position: relative;
  transition: clip-path 275ms ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.link:hover span::before,
.link:focus span::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.link span {
  position: relative;
  display: inline-block;
}

.link span::before {
  position: absolute;
  content: attr(data-content);
  text-decoration-style: wavy;
  text-decoration: underline;
  clip-path: polygon(0 0, 0 0, 0% 100%, 0 100%);
  transition: clip-path 275ms ease;
}

span.dashed::before {
  text-decoration-style: dashed;
}

span.wavy::before {
  text-decoration-style: wavy;
}

/* optional button styling like in the preview */
div.small > img {
  display: block;
  margin: 5px auto;
  border: 2px ridge var(--border);
  border-radius: 5px;
}

section {
  border: 1px solid #000;
  border-radius: 0;
  background-color: #f2f2f2;
  padding: 5px;
  box-shadow: inset 13px 0px 6px -10px rgb(66 66 66 / 20%),
    inset -13px 0px 6px -10px rgb(66 66 66 / 56%),
    inset 0px 13px 6px -10px #ffffff,
    inset 0px -13px 6px -10px rgb(66 66 66 / 38%),
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.15);
}

footer {
  text-align: center;
  margin: 20px 0 5vw 0;
  font-size: 0.8rem;
  color: var(--text);
}

footer a {
  text-decoration: none;
  color: var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 5px;
  line-height: 1.2;
}

h1 {
  font-size: 1.4rem;
  letter-spacing: 2px;
  font-weight: normal;
  text-align: center;
  border-bottom: 2px ridge var(--border);
  padding-bottom: 5px;
}

h2 {
  font-size: 1.25rem;
  font-weight: normal;
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.1rem;
}

h4 {
  font-size: 1rem;
  color: var(--accent);
  padding-left: 12px;
}

/* prevents overflow on smaller screens */
img {
  max-width: 100%;
  height: auto;
}

pre {
  overflow-x: auto;
}

a:hover,
a:focus {
  font-style: italic;
}

a:visited {
  color: var(--accent);
}

/* Main content section styling */
.main-content {
  padding: 12px;
}

/* Welcome header styling - INCREASED SIZE */
.welcome-header {
  font-size: 1.8rem; /* Increased from 1.2rem to 1.8rem */
  margin: 12px 0;
  text-align: center;
  color: var(--accent);
  font-weight: bold;
}

/* Two column container for welcome text and gif */
.two-column-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.left-column {
  flex: 3; /* Increased from 1 to 3 to give more width */
  min-width: 200px;
}

.right-column {
  flex: 1;
  min-width: 150px; /* Reduced from 200px to 150px */
  max-width: 200px; /* Added max-width to limit cow gif container size */
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome-gif {
  max-width: 100%;
  /* Removed border for cow gif */
}

/* Images without borders */
.cow-gif,
.no-border-img {
  max-width: 100%;
  display: block;
  margin: 15px auto;
}

/* Quote container styling - INCREASED SIZE */
.quote-container {
  text-align: center;
  font-style: italic;
  font-family: "Special Elite", cursive;
  margin: 15px 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
}

.quote-container p {
  margin: 5px 0;
  font-size: 1.5rem; /* Increased from default to 1.5rem */
}

/* Image spacing in sections */
.section-img {
  display: block;
  margin: 15px auto;
}

/* Only some images should have borders */
.banner-img {
  display: block;
  margin: 0 auto 12px auto;
  border: 2px ridge var(--border);
  border-radius: 5px;
}

/* Marquee styling */
marquee {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  margin: 10px 0;
}

/* Fun fact button styling */
.fun-fact-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: #931e15;
  color: white;
  border: 2px ridge var(--border);
  border-radius: 5px;
  text-decoration: none;
  margin: 15px 0;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
}

.fun-fact-btn:hover {
  background-color: #b32d22;
}

/* Fun fact display styling - HIDDEN BY DEFAULT */
#quoteDisplay {
  margin: 5px;
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  font-size: 0.9rem;
  min-height: 40px;
  display: none; /* Hidden by default */
}

/* CD Player styling - CENTERED */
#CDPLAYER {
  margin: 15px auto;
  cursor: pointer;
  display: block;
  text-decoration: none;
  width: fit-content;
}

#CDPLAYER,
.CDCOVER {
  /* album's cover image u can change the size! */
  position: relative;
  width: 65px; /* Reduced size */
  height: 65px; /* Reduced size */
  background-color: black;
  color: black;
  z-index: 999;
}

.CDRECORD {
  /* cd image u can change the size too */
  position: absolute;
  left: 40px; /* Adjusted for smaller size */
  width: 65px; /* Reduced size */
  height: 65px; /* Reduced size */
  z-index: 800;
  animation: spin 4s linear infinite;
  -webkit-animation: spin 4s linear infinite;
  -moz-animation: spin 4s linear infinite;
}

@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.CDRECORD:hover {
  /* this makes the cd stop spinning when hovering! */
  -webkit-animation: pop 0.3s ease;
  animation: pop 0.3s ease;
}

/* Add pop animation for hover effect */
@-webkit-keyframes pop {
  0% {
    -webkit-transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(1);
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Hover text for CD Player */
#CDPLAYER span {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  font-size: 1rem;
  color: #fff;
  filter: drop-shadow(1px 1px 0 black) drop-shadow(-1px 1px 0 black)
    drop-shadow(1px -1px 0 black) drop-shadow(-1px -1px 0 black);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#CDPLAYER:hover span {
  opacity: 1;
}

/* Hover text overlay styling */
.imgtxt {
  width: fit-content;
  height: fit-content;
  display: inline-block;
  position: relative;
}

.imgtxt span {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999; /* Increased from 99 to 999 to be in front of CD */
  font-size: 2.5rem;
  color: #fff;
  filter: drop-shadow(1px 1px 0 black) drop-shadow(-1px 1px 0 black)
    drop-shadow(1px -1px 0 black) drop-shadow(-1px -1px 0 black);
  pointer-events: none;
}

.imgtxt:hover span,
.imgtxt:focus span {
  opacity: 1;
}

/* Chatbox styling */
#cbox {
  left: 40px;
  bottom: -354px;
  z-index: 9999;
  position: fixed;
  -webkit-transition: all 0.8s ease-in-out;
  -moz-transition: all 0.8s ease-in-out;
  -o-transition: all 0.8s ease-in-out;
  -ms-transition: all 0.8s ease-in-out;
  transition: all 0.8s ease-in-out;
  border: 5px solid #6b1712;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: 0px 0px 0px 1px #951f2b;
}

#cbox:hover {
  bottom: 0px;
}

#cboxtitle {
  width: 180px;
  height: 15px;
  background-color: #e6e1d3;
  background-image: url("https://i.imgur.com/al39y72.png");
  padding: 8px 5px 5px 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  text-align: center;
  font-size: 17px;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  letter-spacing: 10px;
  color: #ffffff;
  text-shadow: 1px 1px 1px #4d4d6b;
  text-transform: uppercase;
}

#cboxdesc {
  width: 180px;
  height: 38px;
  padding: 5px;
  background-color: #ffffff;
  overflow: auto;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  text-align: justify;
  letter-spacing: 1px;
  color: #a19090;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAFElEQVQIW2M4fPz0////GYAYyAIASnoKpV3w4kgAAAAASUVORK5CYII=");
  image-rendering: pixelated;
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: grayscale(100%);
}

::-webkit-scrollbar-track:active {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAEElEQVQIW2No6+pjgAAgCwAWogM9VKrgGQAAAABJRU5ErkJggg==");
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: grayscale(100%);
}

::-webkit-scrollbar-thumb {
  border-top: 1px solid #cccccc;
  border-left: 1px solid #cccccc;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  box-shadow: inset 1px 1px 0 0 white, inset -1px -1px 0 0 #868a8e;
  width: 16px;
  height: 16px;
  background-color: #cccccc;
  z-index: 1;
}

::-webkit-scrollbar-corner {
  background-color: #cccccc;
}

::-webkit-resizer {
  width: 16px;
  height: 16px;
  background-color: #cccccc;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAN0lEQVR4Ae3MgQUAMBRDwU5fFF05lb/CARTBw2Ulof0DxPtcwp3hNuEYnjbcEW4TjuFpwx3h9gMWGgZ2Y/PT2gAAAABJRU5ErkJggg==");
  background-position: bottom right;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

::-webkit-scrollbar-button {
  border-top: 1px solid #cccccc;
  border-left: 1px solid #cccccc;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  box-shadow: inset 1px 1px 0 0 white, inset -1px -1px 0 0 #868a8e;
  display: block;
  width: 16px;
  height: 16px;
  background-color: #cccccc;
  image-rendering: pixelated;
  background-repeat: no-repeat;
  background-position: center center;
}

::-webkit-scrollbar-button:active {
  background-position: 2px 2px;
}

::-webkit-scrollbar-button:horizontal:decrement {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAHklEQVQY02NgoBT8xyX8H5fwf1zCpOjAYwceV1EEAAO2D/HsQ4vsAAAAAElFTkSuQmCC");
}

::-webkit-scrollbar-button:horizontal:increment {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAHUlEQVQY02NgIB/8xy3xH7fEf9wS/0nUQZqrKAYAK44P8ZRmzLQAAAAASUVORK5CYII=");
}

::-webkit-scrollbar-button:vertical:decrement {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGklEQVR4AWMYxuA/SYphmETFhDX9x4mHGQAAcL4P8dQiMq8AAAAASUVORK5CYII=");
}

::-webkit-scrollbar-button:vertical:increment {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAF0lEQVQY02NgoBf4jwJxSOHQhcNAOgMAWWAP8Rv2U3UAAAAASUVORK5CYII=");
}

::-webkit-scrollbar-button:horizontal:increment:start,
::-webkit-scrollbar-button:horizontal:decrement:end,
::-webkit-scrollbar-button:vertical:increment:start,
::-webkit-scrollbar-button:vertical:decrement:end {
  display: none;
}

::-webkit-scrollbar-button:active {
  border-top: 1px solid #868a8e;
  border-left: 1px solid #868a8e;
  border-bottom: 1px solid #868a8e;
  border-right: 1px solid #868a8e;
  box-shadow: none;
}