/* Include Google Font Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

/* Include custom font Distrampler */
@font-face {
    font-family: 'Distrampler';
    src: url('/fonts/Distrampler.ttf');
}

/* General reset and styling */
body, h1, h2, h3, p, button {
    margin: 0;
    padding: 0;
    font-family: 'Distrampler', sans-serif, 'Times New Roman', Times, serif;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
}

a {
    text-decoration: none;
    color: #333;
}

/* Header styling */
header {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    align-items: center;
    margin-left: 1em;
    margin-right: 1em;
}

.location-info {
    font-size: 14px;
    color: #666;
}

.contact-link{
    color: #666;
}

/* Main content styling */
main {
    flex: 1;
    padding: 20px 0;
}

.container {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Left Section (Profile and Accordion) */
.left-section {
    display: flex;
    flex: 2;
    margin-left: 4em;
    align-content: center;
    flex-direction: column;
    margin-top: 2em;
    margin-right: 4em;
}

h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

h4 {
    font-size: 20px;
    font-size: 20px;
    margin-bottom: 0px;
    margin-top: 0px;
}
h5 {
    font-size: 12px;
    margin-bottom: 0.5em;
    margin-top: 0px;
}

p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Accordion Section Styling */
.accordion {
    margin-top: 20px;
}

.accordion-item {
    border-top: 1px solid #ccc;
}

.accordion-button {
    width: 100%;
    text-align: left;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    background-color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-button:hover {
    background-color: #e9e9e9;
}

.accordion-content {
    display: none;
    padding: 15px;
    background-color: #fff;
    transition: max-height 0.3s ease-out;
}

.accordion-content.show {
    display: block;
}

/* Right Section (Tic-Tac-Toe Game) */
.right-section {
    flex: 1;
    border-left: 1px solid #ccc;
    padding-left: 20px;
    display: flex;
    justify-content: center;
    margin-top: 2em;
}

#tic-tac-toe h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

#board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-gap: 5px;
    margin-top: 20px;
}

.cell {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border: 1px solid #000;
}

#message {
    margin-top: 20px;
    font-size: 20px;
}

#play-again {
    display: none;
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
}

/* Footer Styling */
footer {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    border-top: 1px solid #1E1E1E;
    bottom: 0;
    width: 100%;

}

.footer-content {
    display: flex;
    justify-content: center;
    padding:0px 0;
    background-color: #ffffff;
    width: 80%;
}

footer p {
    font-size: 14px;
    color: #666;
    margin: 0;
}



#page-size {
    text-align: left;
    
}

#created-by {
    text-align: center;
    flex-grow: 1;
   
}

#current-time {
    font-weight: bold;
    text-align: left;
}



/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 10px;
    }

    .left-section, .right-section {
        flex: none;
        margin: 0;
    }

    .right-section {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    a {
        text-decoration: none;
        color: #000000;
    }

   
    header {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .footer-content.footer-content.night-mode {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        width: 100%;
    }
    

    .contact-info, .location-info {
        font-size: 12px;
        text-align: center;
        margin-bottom: 0.5em;
    }

    .container {
        gap: 5px;
    }

    .left-section {
        align-items: center;
        margin: 0;
    }

    .right-section {
        display: flex;
        align-self: center;
        border-left: none;
        padding-left: 0;
        padding-top: 2em;
        padding-bottom: 4em;
    }

    #tic-tac-toe {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 28px;
        text-align: center;
    }

    h2 {
        font-size: 20px;
        text-align: center;
    }

    h4 {
        margin-top: 0.2em;
        margin-bottom: 0.2em;
    }

    p {
        font-size: 14px;
        text-align: center;
    }

    .accordion-button {
        font-size: 16px;
    }

    #board {
        grid-template-columns: repeat(3, 80px);
    }

    .cell {
        width: 80px;
        height: 80px;
        font-size: 20px;
    }

    #message {
        font-size: 18px;
    }

    #play-again {
        font-size: 14px;
        padding: 8px 16px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    #night-mode-toggle {
        margin-top: 0.5em;
        padding: 5px 10px;
        font-size: 14px;
        cursor: pointer;
        border: none;
        background-color: #333;
        color: #333;
        border-radius: 15px;
    }
    
    #night-mode-toggle:hover {
        background-color: #fff;
    }

    a.night-mode{
        color:#fff;
    }


}
    



#night-mode-toggle {
    margin-left: 20px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
}

#night-mode-toggle:hover {
    background-color: #555;
}


/* Night Mode */
body.night-mode {
    background-color: #1e1e1e;
    color: white;
}

 footer.night-mode {
    background-color: #1e1e1e;
    color: white;
    border-top: 1px solid #ffffff;
    bottom: 0;
    width: 100%;
}

.contact-info.night-mode, .location-info.night-mode {
    color: #ffffff;
}

a.night-mode {
    color: white;
}

.project.night-mode {
    background-color: #333;
    border: 1px solid white;
}

.tic-tac-toe div.night-mode {
    border: 2px solid white;
}

.footer-content.night-mode {
    background-color: #1e1e1e;
    color: white;
    display: flex;
    justify-content: center;
    padding: 0px 0;
    width: 80%;
}

footer p.night-mode {
    color: #ffffff;
}

.contact-link.night-mode {
    color: #ffffff;
}

button.night-mode {
    background-color: #333;
    color: white;
    border: 1px solid white;
}

button.night-mode:hover {
    background-color: #444;
}

#night-mode-toggle.night-mode {
    margin-left: 20px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background-color: #fff;
    color: #333;
    border-radius: 5px;
}

#night-mode-toggle:hover.night-mode {
    background-color: #fff;
}


.accordion-button.night-mode {
    background-color: #444;
    color: white;
    border-color: #555;
}

.accordion-content.night-mode {
    background-color: #222;
}

.cell.night-mode {
    color: white;
    border-color: #888;
}

/* ------------------------------------------------
   TIMELINE STYLES ADDED
------------------------------------------------- */
.timeline-container {
    position: relative;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

/* The vertical line */
.timeline-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px; /* line position from the left */
    width: 2px;
    height: 100%;
    background-color: #555;
}


.timeline-container::before.night-mode {
    content: "";
    position: absolute;
    top: 0;
    left: 30px; /* line position from the left */
    width: 2px;
    height: 100%;
    background-color: #fff;
}

/* Each item in the timeline */
.timeline-item {
    position: relative;
    margin: 2rem 0;
    padding-left: 60px; /* space to accommodate line & dot */
}


/* Dot on the line */
.timeline-dot {
    position: absolute;
    left: 20px;  /* line up with the timeline line's left: 30px minus radius */
    top: 0;
    width: 14px;
    height: 14px;
    background-color: #1E1E1E;
    border-radius: 50%;
    border: 4px solid #fff;
   
}

.timeline-dot.night-mode {
    position: absolute;
    left: 20px;  /* line up with the timeline line's left: 30px minus radius */
    top: 0;
    width: 14px;
    height: 14px;
    background-color: #fff;
    border-radius: 50%;
    border: 4px solid #1E1E1E;
   
}

/* Year label text */
.timeline-year {
    font-weight: bold;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

/* Clickable heading next to the dot */
.timeline-heading {
    cursor: pointer;
    margin-top: 0.2rem;
    font-size: 1rem;
    color: #555;
    text-decoration: underline;
    display: inline-block;
}

.timeline-heading.night-mode {
    cursor: pointer;
    margin-top: 0.2rem;
    font-size: 1rem;
    color: #fff;
    text-decoration: underline;
    display: inline-block;
}

/* Hidden details by default */
.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 0 1rem;
    margin-top: 0.5rem;
    border-radius: 4px;
}

.timeline-details.night-mode {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #1E1E1E;
    border: 1px solid #fff;
    padding: 0 1rem;
    margin-top: 0.5rem;
    border-radius: 4px;
}

/* Show details when active */
.timeline-details.active {
    max-height: 200px;  /* adjust as needed */
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* If there's no heading, we just show plain text instead */
.no-heading {
    margin-top: 0.5rem;
}

/* =========================================
   DARK & LIGHT GLOW OVERLAYS
========================================= */
#dark-glow, 
#light-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;  /* ignore clicks */
  z-index: 9999;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* We'll dynamically set the background in JS 
   so the radial gradient is centered at the button's position. */

/* When the overlay is 'active', it expands to fill the screen. */
#dark-glow.glow-active,
#light-glow.glow-active {
  transform: scale(4);
  opacity: 10;
}
