/*
 * ---------------------------------
 * Stylesheets for TroyWarshaw.com |
 * ---------------------------------
 */

/*
 * Main HTML body formatting
 */
body {
    background: black;
    font-family: SpaceMono, sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    text-align: center;
}

.main-page-container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a shadow effect */
}

/*
 * Main page header
 */
h1 {
    font-family: SpaceMono, monospace;
    font-size: clamp(3rem, 7vw, 7rem);
    color: lightblue;
    padding: 0 clamp(1rem, 2vw, 3rem);
    border-radius: clamp(0.4rem, 0.75vw, 1rem);
    display: inline-block;
}

/* Hover effect for main page header */
/*h1:hover {*/
/*    background-color: lightblue;*/
/*    color: white;*/
/*    padding: 0 clamp(1rem, 2vw, 1rem); !* Adjust the padding as needed *!*/
/*    transition: background-color 0.3s, color 0.3s, padding 0.3s; !* Optional: Smooth transition *!*/
/*}*/

.motto {
    font-style: italic;
    font-weight: bold;
    color: lightblue;
}

/*
 * Socials styling
 */
.social-icons {
    text-align: center;
    margin: 10px 0;
}

.icon-link {
    margin: 0 10px;
    color: lightblue; /* Icon color */
    font-size: 48px; /* Icon size */
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.icon-link:hover {
    color: cornflowerblue; /* Icon color on hover */
    transform: scale(2); /* Slightly enlarge on hover */
    text-decoration: none;
}


/*
 * Container for the image track
 */
.image-track-container {
    width: 100%; /* Width of the container */
    height: 600px; /* Height of the container, adjust as needed */
    margin: 10px auto; /* Centering the container */
    overflow: hidden; /* Hides the overflowing parts of the images */
    position: relative; /* Needed for absolute positioning of the image track */
    padding-top: 50px;
}

/*
 * Side-scrolling image track (Original version)
 */
#image-track {
    display: flex;
    gap: 0.5vmin;
    position: absolute;
    /* set 'left' to 50% to start images in track at center */
    left: 0;
    top: 50%;
    transform: translate(0%, -50%);
    user-select: none; /* -- Prevent image highlighting -- */
}

/*
 * Formatting for each image in the image track
 */
#image-track > .image {
    width: 40vmin;
    height: 56vmin;
    object-fit: cover;
    object-position: 100% center;
    border-radius: 10px;
}


/*
 * About, Experience, Education, Projects, and Contact Blocks
 */
.about, .experience, .education, .projects, .contact {
    font-family: SpaceMono, monospace;
    margin: 50px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border-radius: 10px;
}


/*
 * Dropdown header button styling
 */
.content {
    overflow: hidden;
    transition: max-height 0.6s ease-in-out, opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    text-align: left;
    padding-left: 20px;
    font-family: SpaceMono, monospace;
}

.content.visible {
    max-height: 5000px; /* Adjust as needed. Set a value high enough to accommodate the content */
    opacity: 1;
    visibility: visible;
    color: antiquewhite;
}

.toggle-button {
    background: none;
    border: none;
    text-align: center;
    width: 100%;
    cursor: pointer;
    padding: 0; /* Remove default button padding */
    color: inherit; /* Inherit font color from parent */
}

.toggle-button span {
    /* Maintain header styles */
}

/*
 * Styling for button headers
 */
.button-heading {
    font-family: SpaceMono, monospace;
    font-size: clamp(3rem, 1vw, 10rem);
    font-weight: bold;
    color: lightblue;
    padding: 10px;
    margin: 40px;
    border-radius: clamp(0.4rem, 0.75vw, 1rem);
    display: inline-block;
}

/*
 * Hover effect for header-like spans
 */
.button-heading:hover {
    background-color: lightblue;
    color: darkslategray;
    padding: 12px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5); /* Adds a shadow effect */
    transition: background-color 0.3s, color 0.3s, padding 0.3s;
}

/*
 * Styling for specific sections
 */
.about .button-heading,
.experience .button-heading,
.education .button-heading,
.projects .button-heading {
    /* Add specifics here if desired */
}

/*
 * Styling for the Projects dropdown sections
 */
.inner-toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 13px;
    font-family: SpaceMono, monospace;
    font-size: 25px;
    font-weight: bold;
    color: lightblue;
    border-radius: clamp(0.4rem, 0.75vw, 1rem);
    display: inline-block;
}

.inner-toggle-button:hover {
    background-color: lightblue;
    color: darkslategray;
    padding: 15px;
    transition: background-color 0.3s, color 0.3s, padding 0.3s;
}

.center-inner-toggle-button {
    text-align: center;
    margin: 10px 0;
}

.inner-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.6s ease-in-out, opacity 0.6s ease-in-out;
    opacity: 0;
}

.inner-content.visible {
    max-height: 5000px;
    opacity: 1;
}

/*
 * Centering the listed projects in each subsection in the Projects container
 */
.centered-list {
    text-align: center;
    padding: 10px;
}

/*
 * Education and Experience Timeline sub-header styling
 */
.timeline {
    background: none;
    border: none;
    padding: 15px;  /* If this padding doesn't match the hover padding then the effect may possibly have issues */
    font-family: SpaceMono, monospace;
    font-size: 25px;
    color: lightblue;
    border-radius: clamp(0.4rem, 0.75vw, 1rem);
    display: inline-block;
}

/*
 * Education and Experience Timeline container styling
 */
.timeline-container {
    width: 80%;
    margin: 10px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a shadow effect */
    transition: max-height 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.timeline-container.visible {
    opacity: 1;
    max-height: 5000px;
}

/*
 * For the Month-Year sub-header within the Timeline
 */
.timeline-header {
    font-weight: bold;
    font-size: 19px;
    /*text-decoration: underline;*/
}

/*
 * Timeline list items styling
 */
.timeline-list {
    padding: 5px;
}

/*
 * Small button styling for links, etc.
 */
.small-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;  /* If this padding doesn't match the hover padding then the effect may possibly have issues */
    font-family: SpaceMono, monospace;
    font-size: 18px;
    color: lightblue;
    border-radius: clamp(0.4rem, 0.75vw, 1rem);
    display: inline-block;
    text-decoration: none;
}

.small-button:hover {
    background-color: lightblue;
    font-weight: bold;
    color: darkslategray;
    padding: 10px;
    transition: background-color 0.3s, color 0.3s, padding 0.3s;
}

.in-text-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;  /* If this padding doesn't match the hover padding then the effect may possibly have issues */
    font-family: SpaceMono, monospace;
    font-size: 16px;
    color: lightblue;
    border-radius: clamp(0.4rem, 0.75vw, 1rem);
    display: inline-block;
    text-decoration: none;
}

.in-text-button:hover {
    background-color: lightblue;
    font-weight: bold;
    color: darkslategray;
    padding-left: 8px;
    padding-right: 8px;
    transition: background-color 0.3s, color 0.3s, padding-left 0.3s, padding-right 0.3s;
}


/*
 * Controls the fade-in effect for each container
 */
.fade-in-section-top-left {
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: translate(-100px, -100px) scale(0.2); /* Movement effect */
}

.fade-in-section-top-left.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.fade-in-section-top-right {
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: translate(100px, -100px) scale(0.2); /* Movement effect */
}

.fade-in-section-top-right.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.fade-in-section-bot-left {
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: translate(-100px, 100px) scale(0.2); /* Movement effect */
}

.fade-in-section-bot-left.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.fade-in-section-bot-right {
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: translate(100px, 100px) scale(0.2); /* Movement effect */
}

.fade-in-section-bot-right.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/*
 * Copyright styling
 */
.copyright {
    text-align: center;
    padding: 0;
    font-family: SpaceMono, monospace;
    font-size: 10px;
    color: slategray;
}
