:root{
    /* --main-color:#aa0766 */
    --main-color:#6B1CBA
}


/* Background */
body {
    background-color: black;
    background-image: url('media/stars.png');
    
    margin: 0;
    padding: 80px 0;
    font-family: 'Courier New', Courier, monospace;

    background-size: cover;
    background-attachment: fixed;
}



/* Main wrapper */
.container {
    width: 70%;
    margin: 0 auto; 
    display: flex;
    gap: 20px;
}

/* Columns */
.middle-column {
    flex: 4; 
    display: flex;
    flex-direction: column; /* Stacks boxes vertically */
    gap: 20px; /* The vertical space between Projects and About Me */
}

.side-column {
    flex: 1; 
    display: flex;
    flex-direction: column; /* Stacks boxes vertically */
    gap: 20px; /* The vertical space between the top GIF and bottom Picture */
}




/* Main box */
.main-box {
    background-color: #111; 
    border: 3px solid var(--main-color);
    padding: 20px;
    box-sizing: border-box;
    color: #e0e0e0;     
}

/* --- 4. Custom Heights --- */
.projects-section {
    height: 500px;
    /* 'overflow-y: auto' adds a scrollbar if the text is long */
    overflow-y: auto; 
}

.gif-box {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}


.media-box {
    padding: 0; /* Overrides the padding from .main-box */
    overflow: hidden; /* Ensures the image doesn't bleed through the borders */
}

/* --- 2. The Image --- */
.media-box img {
    width: 100%;
    height: 100%;
    
    /* makes the image zoom and crop perfectly to fill the box without distorting */
    object-fit: cover; 
    
    /* removes the weird 4px gap that HTML puts at the bottom of all images */
    display: block; 
}




.clickable {
    cursor: pointer; 
}


h1 {
    color: var(--main-color);
}

h2 {
    color: var(--main-color);
}

.multi-column-list {
    display: grid;
    /* Tells the browser to make 2 columns, each taking up equal space */
    grid-template-columns: 1fr 1fr; 
    
    gap: 10px 40px;
}

.video-box {
    padding: 20px;
}

/* Target the iframe inside your video box */
.video-box iframe {
    width: 60%;
    height: 60%;
    
    /* forces the video to always maintain a perfect 16:9 widescreen shape */
    aspect-ratio: 16 / 9; 
    
    border: 2px solid var(--main-color);
}


.blog-feed {
    height: 400px; 
    display: flex;
    flex-direction: column;
}

.scroll-box {
    /* Forces the inner box to take up the remaining space inside the 400px feed */
    flex: 1; 
    
    overflow-y: auto; 
    
    background-color: #050505;
    border: 1px dashed var(--main-color);
    padding: 15px;
}

.blog-post {
    margin-bottom: 25px;
    border-bottom: 1px solid #222; /* adds a subtle divider line between posts */
    padding-bottom: 15px;
}

.post-date {
    color: #888;
    font-size: 0.9em;
    font-weight: bold;
}

.inline-element {
    display: inline-block;
    margin-right: 10px; /* Adds space between the two elements */
    margin-top: 0;
    margin-bottom: 0;
}




.main-btn {
    /* turns the link into a block so we can add padding and spacing */
    display: inline-block; 
    
    background-color: var(--main-color);
    color: white;
    border: 2px solid var(--main-color);
    
    padding: 7px 10px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-decoration: none; /* removes the default underline from the link */
    
    cursor: pointer; 
}

.retro-btn:hover {
    background-color: var(--main-color);
    color: #111;
}


a {
    color: white;            
    text-decoration: none;
    font-weight: bold;
}


a:hover {
    color: gray;             
    text-decoration: underline;
}