/*
Colors:

- Dark grey: #272729
- Gold: #dec493
- Red: #d84a36
*/

.red-text
{
    color: #d84a36;
}

* { margin: 0; padding: 0; border: 0; }

a, a:visited
{
    text-decoration: none;
    color: inherit;
}

a:hover
{
    color: #FFF;
    text-decoration: underline;
}

a.linkable {
    text-decoration: underline;
}

a.linkable:hover {
    color: rgba(88, 135, 255, 1);
}

.footer a:hover
{
    color: #272729;
}

h1
{
    text-align: center;
    font-size: 3em;
    letter-spacing: 2em;
}

h2
{
    text-align: center;
    font-size: 2em;
}

html
{
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    font-size: 1em;
}

body
{
    font-family: "Lato", "Arial";
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    color: #999;
    background-color: white;
}

#veil
{
    display: flex;
    visibility: hidden;
    flex-direction: row;
    justify-content: space-around;
    flex-flow: flow-wrap;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 20;
    background-color: white;
    width: 100%;
    height: 100%;
}

.close
{
    position: fixed;
    top: 0;
    right: 0;
    font-size: 3em;
    padding: 0.5em;
    margin: 0.2em;
    cursor: pointer;
    background-color: white;
    height: .5em;
    width: .5em;
    line-height: .5em;
    text-align: center;
    border-radius: 1em;
}

.close:hover
{
    color: #272729;
}

#show
{
    background-color: white;
}

#show-image
{
    margin-top: 2.5%;
    margin-bottom: 2.5%;
}

.nav
{
    cursor: pointer;
    font-size: 3em;
}

.nav:hover
{
    color: #272729;
}

.fill-wide-show {
    width: 100%;
    height: auto;
}

.fill-tall-show {
    height: 90%;
    width: auto;
}

.view
{
    cursor: pointer;
}

.header {
  position: fixed;
  top:0;
  z-index: 10;
  transition: height 0.2s;
  width: 100%;
  background-color: white;
}

.title
{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.jp
{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.title-letter
{
    color: #999;
    background-color: transparent;
    font-size: 8em;
    text-align: center;
    flex-grow: 1;
    font-weight: 700;
    transition: font-size 0.2s;
}

.smaller
{
    font-size: 2em;
}

.letter-wrapper
{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.project_title
{
    color: #999;
}

.container {
    top: 9em;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.content {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.grid
{
    flex-direction: row;
}

.list
{
    flex-direction: column;
}


.item {
    font-size: 1.2em;
    position: relative;
    width: 32%;
    overflow: hidden;
    border: 2px solid white;
}


.item-main {
    font-size: 2em;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border: 0px solid transparent;
}

.project-description
{
    color: #999;
    padding: 1.7%;
    height: auto;
}

.item-img-bg
{
    top: 0;
    position: absolute;
    height: 100%;
}

.fill-wide {
    width: 100%;
    height: auto;
}

.fill-tall {
    height: 100%;
    width: auto;
}

.greyscale
{
    filter: grayscale(100%);
}

.greyscale-ish
{
    filter: grayscale(30%);
}

.greyscale-ish:hover
{
    filter: grayscale(0%);
}

.item-text
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    top: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: transparent;
    color: rgba(255,255,255,0.7);
    transition: all .1s;
}

.item-text-wrapper
{
    width: 90%;
}

.item-title, .item-description
{
    align-self: center;
    text-align: center;
}

.item-text:hover
{
    text-shadow: 2px 2px 1px rgba(0,0,0,0.3);
    color: white;
    transition: all .3s;
}

.darken
{
    background-color: rgba(0,0,0,0.3) !important;
}

.darken:hover
{
    background-color: rgba(0,0,0,0.75) !important;
}


.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    bottom: 0;
    z-index: 14;
    width: 100%;
    position: fixed;
    background-color: white;
    height: 1.5em;
    padding: .5em;
}

#breadcrumbs
{
}

#credit
{
    margin-right: 1em;
}

.sep
{
    display: inline-block;
    transform: scale(-1, 1);
    margin-left: 1em;
    margin-right: 1em;
}


/* Smartphones (portrait and landscape) ----------- */
@media screen and (max-width: 750px){
    .title-letter
    {
        font-size: 2.5em;
    }
    
    .darken
    {
        background-color: rgba(0,0,0,0.5) !important;
    }
    
    .item
    {
        width: 48%;
    }
    
    .item-text
    {
        text-align: center;
        font-size: 0.65em;
        color: white;
    }

    .item-main {
        width: 100%;
        height: 120px;
        font-size: 1.6em;
    }
    
    .project-description
    {
        font-size: 1em;
        height: auto;
    }
    
    .content {
        top: 0em;
    }

    .container {
        top: 1.5em;
    }
    
    .footer {
        flex-direction: column;
        height: auto;
    }
    
    .close
    {
        position: fixed;
        top: 0;
        right: 0;
        font-size: 1.5em;
        padding: 0.5em;
        margin: 0.2em;
        cursor: pointer;
        background-color: white;
        height: .5em;
        width: .5em;
        line-height: .5em;
        text-align: center;
        border-radius: 1em;
    }
}

/* Loading and Error States */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 1rem;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    padding: 2rem;
    text-align: center;
    color: #d32f2f;
    background: #ffebee;
    border-radius: 4px;
    margin: 2rem 0;
    border: 1px solid #ffcdd2;
}

.retry-button {
    background: #666;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    font-family: inherit;
}

.retry-button:hover {
    background: #555;
}
