/* Import Fira Code font */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap');


  /* Base styles for mobile menu */
  .menu {
    display: flex;
    /* Allows items to wrap on mobile */
    
    justify-content: space-between;
    align-items: center;
    /* Stacks menu items vertically */
    flex-direction: column;
  }
  
  .menu li a {
    display: block;
    /* Full width for clickable area */
    width: 100%;
  }
  
  .toggle {
    /* Orders toggle button first */
    order: 1;
    /* Sets font size */
    font-size: 20px;
    /* Pointer cursor for interactivity */
    cursor: pointer;
  }
  
  .item {
    /* Orders items last */
    order: 3;
    /* Full width for each item */
    width: 100%;
    /* Centers text in each item */
    text-align: center;
    /* Hidden by default */
    display: none;
  }
  
  .active .item {
    /* Displays items when active */
    display: block;
  }
  
  .button.secondary {
    /* Bottom border for secondary button */
    border-bottom: 1px #444 solid;
  }
  
  /* Submenu styles */
  .submenu {
    /* Hidden by default */
    display: none;
  }
  
  .submenu-active .submenu {
    /* Displays submenu when active */
    display: block;
  }
  
  .has-submenu > a::after {
    /* Font family for submenu indicator */
    font-family: "Font Awesome 5 Free";
    /* Sets icon size */
    font-size: 12px;
    line-height: 16px;
    /* Sets font weight for the icon */
    font-weight: 900;
    /* Font Awesome down arrow icon */
    content: "\f078";
    color: #ff0000;
    /* Adds spacing to left of icon */
    padding-left: 5px;
  }

  .item a:hover{
    color: rgb(238, 219, 219) !important;
    background-color: rgba(24, 24, 24, 0.253);
    font-weight: bold;
    text-shadow: #d8d2d2b6 !important;
  }
  
  /* Desktop menu styles */
  @media (min-width: 768px) {
    .menu {
      /* Sets horizontal layout on desktop */
      flex-direction: row;
    }
  
    .toggle {
      /* Hides toggle button on desktop */
      display: none;
    }
  
    .item {
      /* Displays items on desktop */
      display: block;
      /* Sets width for desktop layout */
      width: auto;
      /* Resets order for desktop */
      order: initial;
    }
  }

.convertSingleFile{
    flex: 1;
    padding: 0.5rem;
    cursor: pointer;
    background-color: #e7e7e7;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#container {
    position: relative;
    margin: 2rem auto;
    width: auto; /* Allow dynamic width */
    max-width: 600px; /* Limit maximum width */
    height: auto; /* Allow dynamic height */
    min-height: 200px; /* Ensure minimum height */
    background: linear-gradient(145deg, #620075, #000000);
    border: 4px solid #000;
    border-radius: 15px;
    box-shadow: 0px 4px 10px #000, 0px -4px 6px inset #1a1a1a;
    overflow-y: auto; /* Scroll if content exceeds height */
    color: #ffffff;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 0 0 5px #d4dbd49a, 0 0 1px #191a19;
    display: block; /* Disable flexbox if unnecessary */
}

#welcome{
    padding: 20%;
    display: flex;
    align-self: center;
}
#welcome p{
    font-size: 16pt;
}
#container p {
    z-index: 2;
    margin: 0;
}

header {
    background: linear-gradient(145deg, #620075, #000000);
    border: 3px solid #8b0000; /* Dark blood-red border */
    border-radius: 10px;

    text-align: center;
    margin: 1rem;
    position: relative;
    overflow: hidden;
    height: auto; /* Sets the header height explicitly */
    min-height: 150px; /* Ensures the header has at least this height */
    box-sizing: border-box;
    display: flex;
    align-self: center;
    gap: 0.5rem; /* Space between title and author */
}
header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 
        0 0 10px #050505, 
        0 0 20px #2c2828, 
        0 0 30px #595a55, 
        0 0 40px #c0bebd3d;
    margin: 0;
    letter-spacing: 2px;
}
header .author {
    font-family: 'Fira Code', monospace; /* Clean, professional coding font */
    font-size: 1rem;
    color: #ffcc00;
    text-shadow: 
        0 0 5px #000000, 
        0 0 10px #8b0000;
    margin: 0;
    position: absolute;
    bottom: 0px;
    left: 50px;
}
/* Decorative blood drips */
header::before,
header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 15px;
    height: 40px;
    background: linear-gradient(to bottom, #00ff22, transparent);
    animation: drip 2s infinite ease-in-out;
    filter: blur(1px);
    z-index: 1;
}
header::before {
    left: 5%;
    animation-delay: 1.5s;
}

header::before {
    left: 5%;
    animation-delay: 1s;
}

header::after {
    left: 5%;
    animation-delay: 0.4s;
}

/* Blood drip animation */
@keyframes drip {
    0% {
        height: 40px;
        opacity: 1;
    }
    50% {
        height: 60px;
        opacity: 0.7;
    }
    100% {
        height: 40px;
        opacity: 1;
    }
}

.imageToPNGConverterContainer{
    background: linear-gradient(to bottom, #8d0202 50%, transparent 100%);
    margin: 0px;
    padding: 10px;
    height: 100%;
}
.imageToWebPConverterContainer{
    background: linear-gradient(to bottom, #110296 50%, transparent 100%);
    margin: 0px;
    padding: 10px;
    height: 100%;
}

.alien-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-family: 'Orbitron', sans-serif; /* Futuristic font */
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    background: linear-gradient(145deg, #0f9d0f, #0a700a); /* Green gradient */
    border: 2px solid #1aff1a;
    border-radius: 8px;
    text-shadow: 0 0 5px #0a700a, 0 0 10px #1aff1a;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.alien-btn:hover {
    background: linear-gradient(145deg, #1aff1a, #0f9d0f); /* Invert gradient for hover */
    color: #ffffff;
    box-shadow: 0 0 25px #1aff1a, 0 0 50px #0f9d0f;
    border-color: #0f9d0f;
}

.alien-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px #0f9d0f inset;
}
.alien_btn_container{
    width: 200px;
}

/* style for the single file download */

.single-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-family: 'Orbitron', sans-serif; /* Futuristic font */
    font-size: 1rem;
    color: #ffffff; /* White font */
    font-weight: bold; /* Bold text */
    text-decoration: underline; /* Underline the link */
    text-transform: uppercase;
    background: none; /* No background */
    border: none; /* No border */
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.single-btn:hover {
    color: #d3d3d3; /* Slightly dim the color on hover */
    text-shadow: 0 0 6px #d3d3d3, 0 0 12px #ffffff; /* Stronger text shadow */
}

.single-btn:active {
    transform: scale(0.95); /* Slight scale down effect */
    text-shadow: 0 0 10px #ffffff, 0 0 20px #d3d3d3; /* Brighter shadow on click */
}

.single_btn_container {
    width: 200px;
    text-align: center; /* Center align the button within the container */
}

/* Header styling */
#main_header {
    text-align: center;
    background: linear-gradient(145deg, #620075, #000000);
    color: white;
}

#main_header .author {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: #ffcc00;
    text-shadow: 0 0 5px #000;
}

#converter_article h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

#converter_article p {
    line-height: 1.6;
}
#converter_app {
    text-align: center;
}


/* Apply Flexbox layout to the main container */
#main_container {

    gap: 20px; /* Add space between columns */
}



/* App section (right column) */
#right_column {
    flex: 4; /* Takes 40% of the container */
    order: 2; /* Default order for desktop */
}

/* Media query for mobile screens */
@media (max-width: 768px) {
    #main_container {
        flex-direction: column; /* Stack elements vertically */
    }

    #right_column {
        order: 1; /* App section appears first */
    }

    #left_column {
        order: 2; /* Article section appears second */
    }
}

/* Main container layout */
#main_container {
    position: relative;
    top: 120px;
    display: flex;
    flex-wrap: wrap;

    width: 100%;
    box-sizing: border-box;

    padding-left: 40px;
    padding-right: 40px;
}

/* Left column styling */
#left_column {

    flex: 1 1 65%; /* 40% width */
    min-width: 300px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-left: 40px;
}
/* Right column styling */
#right_column {
    flex: 1 1 25%; /* 55% width */
    min-width: 100px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    #main_container {
        gap: 1rem; /* Add more vertical spacing between stacked elements */
    }
    
    #left_column, #right_column {
        flex: 1 1 100%; /* Full width on small screens */
        max-width: 100%; /* Prevent columns from exceeding full width */
    }
}

/* Style for buttons */

.nav_background {
    display: flex;
}
.nav_background button{
    width: 100%;
    margin:5px;
    height:50px;
    border-radius: 15px;
    border-width: 0px;
    color: white;
    font-weight: bold;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 0 0 5px #d4dbd49a, 0 0 1px #191a19;
    font-size: 16pt;
    background: linear-gradient(145deg, #620075, #000000);
}
.nav_background button:hover{
    cursor: pointer;
    background: linear-gradient(145deg, #ff0011, #0f0000); /* Green gradient */
    transition: all 0.3s ease-in-out;
    transform: scale(1.05);
}
/* General Box Styling */
.tutorial-box {
    font-family: Arial, sans-serif;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Title Styling */
.tutorial-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #620075;
    text-shadow: 0 0 5px #bbb;
}

/* Ordered List Styling */
.tutorial-list {
    line-height: 1.8;
    margin-left: 1rem;
    padding-left: 0.5rem;
}

.tutorial-list li {
    margin-bottom: 0.8rem;
}

/* Footer Text Styling */
.tutorial-footer {
    font-size: 0.9rem;
    color: #555;
    margin-top: 1rem;
    text-align: center;
}
/* Style for the alien converter buttons */
.nav_alien_container{
    display: flex;
}
.nav_alien_container button{
    padding: 15px;
    margin: 5px;
}
/* Base styles for content inside the #markdown-content div */
#markdown-content {
    line-height: 1.8;
    color: #222;
    text-align: left;
}

#markdown-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #111;
    text-align: center;
}

#markdown-content h2 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-transform: capitalize;
}

#markdown-content h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 16px;
    color: #444;
}

#markdown-content p {
    margin-bottom: 16px;
    font-size: 1.2em;
    font-weight: lighter;
    color: #333;
    white-space: normal;
}


#markdown-content blockquote {
    font-style: italic;
    margin: 20px 40px;
    color: #666;
    border-left: 4px solid #ccc;

}


/* References */
.references {
    margin: 2em 0;
    padding: 1em;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    line-height: 1.4;
    text-align: left;
    /* Aligns text to the left */
    word-spacing: normal;
    /* Ensures consistent word spacing */
    white-space: normal;
    /* Prevents unnecessary large spaces */
}

.references h2 {
    margin-bottom: 0.5em;
}

.references p {
    margin: 0.5em 0;
    text-align: left;
}

.references a {
    color: #007acc;
}

.references a:hover {
    text-decoration: underline;
}

/* Base styles for desktop */
.container {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
  }

  .text-content {
    flex: 1;
    padding-right: 20px;
  }

  .profile-picture {
    flex: 0 0 200px;
  }

  /* Responsive styles for mobile */
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
    }
    .profile-picture {
      order: -1; /* Moves the image to the top */
      margin-bottom: 20px;
    }
    .text-content {
      padding-right: 0;
    }
  }
/* Container for all videos */
.video-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 20px;
gap: 30px;
}

/* Individual video box styling */
.video-box {
flex: 1 1 560px;
max-width: 560px;
text-align: center;
}

/* Styling for the download button */
.download-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #008CBA;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}
.download-button:hover {
    background-color: #005f73;
}


.author-info span{
  font-size: 14px;
  color: rgba(31, 29, 29, 0.65) ;
}
.author-info {
  font-size: 14px;
  color: rgba(31, 29, 29, 0.65)
}