@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,700;1,300&display=swap');


body {
    font-family: 'Roboto Mono', sans-serif;
    background-color: #000033;
    font-weight: 300;
    color: white;
    margin: 0;
    font-size:12pt;
}


h1 {
    text-align: center;
    font-family: 'Roboto Mono', sans-serif;
    text-shadow: -1px -1px 0 #00FF00, 1px -1px 0 #00FF00, 1px 1px 0 #00FF00, -1px 1px 0 #00FF00;
    font-weight: 400;
    font-size:2em;
    color:#000033;
    font-style: italic;
}

a {
    color: #00FFFF;
}


#about p {
    font-weight: 400;
    margin-bottom: 10px;
}

#submit-sort {
    margin-top:10px;
    margin-bottom:10px;
    text-align: center;
}

#submit-sort a {
    display: inline-block;
    padding:10px;
    text-decoration: none;
    color: #FFFFFF;
    font-style: italic;
    margin-left:5px;
    margin-right:5px;
}

.submit {
    background-color: red;
}

.sort {
    background-color: #0000FF;
}

.submit-link {
    float: left;
    max-width:150px;
    text-align:center;
    background-color: red;
    font-weight: bold;
    padding:10px;
    margin-left:10px;
}
.submit-link a {

    text-decoration: none;
    font-style: italic;
    color:white;
}

#about {
    color: #FF00FF;
    font-size:1.5em;
    max-width:850px;
    margin-left:auto;
    margin-right:auto;
    text-align: center;
}

#about .extended {
    display:none;
}

.showhide {
    text-align: center;
}

#about-expand {
    cursor: pointer;
    background-color: #FF00FF;
    width:32px;
    height:32px;
    display:inline-block;
    font-size:24px;
    line-height: 32px;
    font-weight: bold;
    color: #FFFFFF;
}

#modal .logos {
    text-align:center;
    margin-bottom:10px;
    margin-top:10px;
}

#modal .logos img {
    margin:10px;
    display: inline-block;
    vertical-align: middle;
}


#main {
    margin-top:0;
    margin-left:auto;
    margin-right:auto;
}

#entries {
    margin:0;
    list-style-type: none;
    padding:0;
    column-gap: 0;
}


#entries li {
    display:inline-block;
    list-style-type: none;
    width:100%;
    max-height: 500px;
    padding:0;
    border:3px solid black;
    cursor: pointer;
    overflow: hidden;
    background-color: #000033;
    box-sizing: border-box;
    margin: 0 0 -4px 0;
    position:relative;
}


#entries li img{
    object-fit: cover;
    max-width:100%;
    display:block;
    margin-left:auto;
    margin-right:auto;
}

#entries p {
    padding: 5px;
    margin:0;
}


#entries li h3 {
    display:none;
}

#entries li .extended {
    display:none;
}

#entries li .video-preview {
    display: block;
}


#modal .video-preview {
    display:none;
}

#modal img {
    max-width:100%;
    max-height: 70vh;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#modal h3 {
    text-align:center;
    font-family: sans-serif;
}

#modal p {
    margin-left: 10px;
    margin-right: 10px;
}

#modal .portrait-video {
    display:block;
}

/**
 * RESPONSIVE (but fixed) VIDEO SIZING STARTS HERE
 */
iframe {
    display:block;
    margin-left:auto;
    margin-right:auto;
}

.ar9-16 {
    width: 180px;
    height: 320px;
}

@media (min-width: 320px) and (min-height: 530px) {
    .ar9-16 {
        width: 240px;
        height: 427px;
    }
}

@media (min-width:481px) and (min-height: 700px) {
    .ar9-16 {
        width: 320px;
        height: 568px;
    }
}

@media (min-width: 769px) and (min-height: 1000px) {
    .ar9-16 {
        width: 480px;
        height: 854px;
    }
}

@media (min-aspect-ratio: 1/1) {
    /* On wider screens we can show portrait-oriented videos side-by-side with their text */
    #modal .portrait-video {
        display: grid;
        grid-template-columns: auto auto;
        /*align-items: center;*/
    }
}

.ar16-9 {
    width:240px;
    height: 136px;
}

.arsquare {
    /* TODO */
}

.queer-chronicles {
    font-size: 0.8em;
}


@media (min-width: 480px) and (min-height: 270px) {
    .ar16-9 {
        width: 320px;
        height: 180px;
    }
}

@media (min-height: 320px) and (min-width:530px) {
    .ar16-9 {
        width: 427px;
        height: 240px;
    }
}

@media (min-height: 480px) and (min-width: 700px) {
    .ar16-9 {
        width: 568px;
        height: 320px;
    }
}

@media (min-height: 769px) and (min-width: 1000px) {
    .ar16-9 {
        height: 480px;
        width: 854px;
    }
}

@media (min-width: 1400px) and (min-height: 900px) {
    .ar16-9 {
        width:1280px;
        height: 720px;
    }
}


/* END VIDEO BLOCK */

#modal-header {
    background-color: darkcyan;
    padding:3px;
    text-align: center;
    font-size:14pt;
}

#close-modal {
    font-weight: bold;
    color:white;
    text-decoration: none;
    display:block;
    float:left;
    cursor: pointer;
}

/* This invisible overlay allows "click outside modal to close" behaviour */
#modal-bg {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height: 100%;
    z-index:25;
    display:none;
}

.artist-name {
    font-style: italic;
}

/* For hiding + buttons in the entries when they're open in a modal */
#modal .hidden-in-modal {
    display: none;
}

footer {
    text-align: center;
    width: 100%;
    padding-top: 1em;
    padding-bottom: 1em;
}

footer img {
    vertical-align: middle;
}

.bottom-links {
    font-style: italic;
}

.credit {
    margin-top: 1.2em;
    font-size: 0.8em;
}

.bottom-links a {
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    color:#00FF00;
    text-decoration: none;
    font-size:1.4em;
}

.bottom-links a:hover {
    text-decoration: underline;
}

.bottom-links img {
    height:1.4em;
}

.impressum {
    max-width:1000px;
    padding:20px;
    margin-left:auto;
    margin-right:auto;
}

.open-button {
    position:absolute;
    top:calc(50% - 16px);
    left:calc(50% - 16px);
    width:32px;
    height: 32px;
    font-size: 24px;
    line-height: 32px;
    background-color:red;
    font-weight: bold;
    text-align:center;
}

audio {
    height:2em;
    display:block;
    margin-left: auto;
    margin-right: auto;
}



ul.inline-list {
    list-style-type: none;
}

ul.inline-list li {
    list-style-type:none;
    display:inline-block;
    padding:6px;
}

@media (max-width: 640px) {
    #entries.ordered-list .list-entry {
        height:150px;
        grid-template-columns: 150px auto;
    }

    #entries.ordered-list .list-entry img {
        width:150px;
        height: 150px;
    }
    #entries.ordered-list .list-entry .thumbnail {
        width:150px;
        height: 150px;
    }


    #entries.ordered-list .list-entry .details {
        height: 150px;
    }
}

@media (min-width: 641px) {
    #entries.ordered-list .list-entry {
        height:200px;
        grid-template-columns: 200px auto;
    }

    #entries.ordered-list .list-entry img {
        width:200px;
        height: 200px;
    }
    #entries.ordered-list .list-entry .thumbnail {
        width:200px;
        height: 200px;
        margin:-10px;
    }
    #entries.ordered-list .list-entry .details {
        height: 200px;
    }
}


#entries.ordered-list {
    columns:1;
    max-width:800px;
    margin-left:auto;
    margin-right:auto;
}

#entries.ordered-list .list-entry  {
    display:grid;
}
#entries.ordered-list .list-entry img {

    object-fit:cover;
}
#entries.ordered-list .list-entry .thumbnail {
    font-size:0.8em;
    overflow: hidden;
}
#entries.ordered-list .list-entry .details {
    padding-left:20px;
    padding-right:20px;
    padding-top:50px;
}

#entries.ordered-list>li  {
    border: 2px solid green;
    margin-bottom:10px;
}

#entries.ordered-list>li>:not(.list-entry)  {
    display:none;
}

/*#entries.ordered-list {*/
/*    display:none;*/
/*}*/

.list-entry {
    display:none;
}


@media screen and (max-width: 576px) {
    #entries { columns: 1; }

}

@media screen and (min-width: 577px) and (max-width: 768px) {
    #entries { columns: 2; }

}

@media screen and (min-width: 769px) and (max-width: 992px) {
    #entries { columns: 3; margin-left:10px; margin-right:10px }

}

@media screen and (min-width: 993px) and (max-width: 1200px) {
    #entries { columns: 4; margin-left:10px; margin-right:10px}

}

@media screen and (min-width: 1200px) {
    #entries { columns: 5; margin-left:10px; margin-right:10px}

}

@media (max-width: 768px) {
    /* Small screen modal dialog should fill full width of the screen */
    #modal {
        position:fixed;
        top:10%;
        left:0;
        width:100%;
        height:80%;
        z-index:50;
        background-color:#000033;
        display:none;
        border-top: 2px solid black;
        border-bottom: 2px solid black;
    }
    #modal-header {
        font-size:1.5em;
        padding-left:10px;
        max-height: 32px;
        overflow: hidden;
    }

    #modal-title {

    }

    #modal-content {
        max-height: calc(100% - 40px);
        overflow-y: auto;
    }

}

@media (min-width: 769px) {
    /* Big screen modal dialog is centered in the window */
    #modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 50;
        background-color: #000033;
        border: 2px solid black;
        max-width: 90vw;
        min-width:70%;
        display: none;
    }

    #modal-content {
        max-height: 80vh;
        overflow-y: auto;
    }
}

@media (max-width:576px) {
    body {
        font-size:9pt;
    }
}

@media (min-width:576px) and (max-width: 768px) {
    body {
        font-size:10pt;
    }
}
