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

:root {
    --text-color: #f7f7f7;
    --hyper-text-color: #FFCC33;
    --main-background: #5B5B9A;
    --accent-background: #2A233E;
    --shadow-color: #0000004C;
    --hover-button-color: #211c31;
    --highlight-color: #FFA500;
}

body {
    /* background-color: #5D5D81; */
    background-color: var(--main-background);
    /* background-color: #4B4B84; */
    /* background-color: #6F6FB3; */
    /* background-image: linear-gradient(90deg, #55558f 0%, #5B5B9A 20%, #5B5B9A 80%, #55558f 100%); */
    color: var(--text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    margin-left: 20px;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    font-size: 12pt;  /* The only place I should have a pt value */
}

a {
    /* color: #FFFF99; */
    /* color: #FFD700; */
    color: var(--hyper-text-color);
    text-decoration: none;
    border-bottom-style: solid;
    border-bottom-color: transparent;
    transition: border-bottom-color 0.1s ease;
}

a:hover{
    border-bottom-color: var(--hyper-text-color);
}

a.external-link::after {
    content: '↗';
}

/* Adding top padding to main content to avoid overlap with fixed navbar */
main {
    padding-top: 75px;
    max-width: 1000px;
    flex-grow: 1;
}

section {
    margin-bottom: 40px;
}

main h1{
    font-size: 5.3em;
}


#email-btn{
    position: fixed;
    color: var(--text-color);
    scale: 1.1;
    bottom: 30px;
    z-index: 1000;
    right: 30px;
    background-color: var(--accent-background);
    padding: 10px;
    border-radius: 100px;
    font-size: 1em;
    text-decoration: none;
    box-shadow: 0 2px 4px var(--shadow-color);
    border: none;
}

#email-btn:hover::after{
    content: 'Email me!';
    border: none;
}

.img-group {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
    justify-content: center;
    align-content: center;
    align-items: center;
    justify-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    /* overflow-x: auto; */
}

.img-and-desc {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    text-decoration: none;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
    border-color: transparent;
}

.img-and-desc iframe,
.img-and-desc video,
.img-and-desc img{
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    object-fit: contain;
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
}

.img-and-desc p{
    color: var(--text-color);
    text-align: center;
    font-style: italic;
    font-size: 0.8em;
    padding: 0 10px 0 10px;
}

.img-and-desc:hover{
    border-color: transparent;
}

@media screen and (max-width: 320px) {
    body{
        /* background-color: red; */
        font-size: 10pt;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media screen and (min-width: 321px) and (max-width: 480px) {
    body{
        /* background-color: pink; */
        font-size: 10pt;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    body{
        /* background-color: orange; */
        font-size: 12pt;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media screen and (max-width: 700px){
    .img-group{
        flex-direction: column;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    body{
        /* background-color: rgb(129, 129, 5); */
        font-size: 14pt;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1280px) {
    body{
        /* background-color: green; */
        font-size: 14pt;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media screen and (min-width: 1281px) and (max-width: 1440px) {
    body{
        /* background-color: purple; */
        font-size: 14pt;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media screen and (min-width: 1441px) and (max-width: 1920px) {
    body{
        /* background-color: blue; */
        font-size: 14pt;
        margin-left: 0px;
        margin-right: 0px;
    }
}