/* General Reset */
* 
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body 
{
    font-family: 'Comic Sans MS', sans-serif;
    background-color: #2b2b2b;
    color: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container 
{
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header 
{
    background-color: #39393a;
    padding: 20px;
    text-align: center;
}

.header h1 
{
    font-size: 60px;
    font-weight: bolder;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

.intro h2
{
    font-family: Arial, Helvetica, sans-serif;
}

.intro 
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #39393a;
    padding: 30px;
    color: rgb(255, 255, 255);
}

.intro-text 
{
    flex: 1;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-right: 400px;
    margin-left: 200px;
}

.intro-image img 
{
    max-width: 400px;
    height: auto;
    display: block;
    margin-left: 200px;
    margin-right: auto;
    border: medium;
}

.gallery 
{
    background-color: #39393a;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.project 
{
    background: rgb(116, 116, 116);
    border: 1px solid black;
    color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 20px;
}

.project img 
{
    max-width: 50%;
    height: auto;
    border: 1px solid black;
    margin-bottom: 15px;
}

.project h3 
{
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project ul 
{
    font-size: 15px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    list-style-position: inside;
}

.project video
{
    max-width: 60%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.demo-reel
{
    background-color: #39393a;
    text-align: center;
}

.demo-reel h2
{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 40px;
    color: white;
}

.footer 
{
    background-color: #222222;
    text-align: center;
    color: white;
    padding: 20px;
    margin-top: auto;
}

nav a
{
    color: white;
}

nav ul 
{
    display: flex;
    list-style: none;
    padding: 0;
    margin: 10px 0;
    justify-content: center;
    background-color: #222222;
}

nav ul li 
{
    margin: 0 15px;
}

nav ul li a 
{
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s;
}

nav ul li a:hover 
{
    color: #5e93cc;
}

.download-button 
{
    background-color: #007BFF;
    color: #fff;
    border-color: black;
    padding: 10px 15px;
    font-size: 16px;
    border: 10px;
    border-radius: 15px;
    margin: 10px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.download-button:hover 
{
    background-color: #0056b3;
}

/* Responsive Styles */
@media (max-width: 768px) 
{
    .header 
    {
        padding: 10px;
        align-items: flex-start;
    }

    nav ul 
    {
        flex-direction: column;
        align-items: center;
    }

    .intro 
    {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .intro-image img 
    {
        max-width: 80%;
    }

    .download-button
    {
        width: 100%
    }
}

/* Orientation Fix for Rotation */
@media (orientation: landscape) and (max-width: 768px) 
{
    .intro 
    {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .intro-image img 
    {
        max-width: 40%;
    }

    .intro-text 
    {
        text-align: left;
    }
}
