@import "./themes.css";

h1 h2 h3 h4 p a {
    font-family: 'Tahoma', Courier, monospace;
}
a {
    color: var(--visited-color);
}
h1 {
    text-align: center;
}

h2 {
    font-weight: bold !important;
}
li {
    margin: 5px;
}
body {
    width: inherit;
    height: inherit;
    font-family: 'Tahoma', Courier, monospace;
    background: var(--bg-color);
    padding: 2vw;
    color: var(--font-color);
    font-size: 14pt;
}

iframe {
    border: none;
}

#root {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
}

.video-container {
    margin-top: 1vh;
    width: 40vw;
    height: 30vh;
}

.youtube-video {
    display: block;
    width: 100%;
    height: 100%;
}

.project-description {
    width: 80% ;
}

#descriptions-collection { 
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.descriptions {
    display: flex;
    flex-direction: inherit;
    flex-wrap: wrap;
    align-items: flex-start;
}

.descriptions-split {
    display: flex;
    flex-direction: inherit;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 50%;
}

.description-box {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 40vw;
    margin: 2vw;
    border: 2px var(--border-color) solid;
    box-shadow: var(--box-shadow);
}
.description-title {
    width: 100%;
    border-bottom: 2px solid var(--border-color);
    font-size: 16pt;
    text-align: center;
    font-weight: bold;
    /* background: #8deb82; */
    background: #4d8746;
    color: white;
    padding: 2vh 0vw;
}
.description-title > a {
    text-decoration: none;
    color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
    background-position: right;
    background-repeat: no-repeat;
    background-size: contain;
    padding-right: 5%;
}
.award {
    color: #d4af37;
    font-weight: bold;
}
.authors {
    border-bottom: 2px solid var(--border-color);
    padding: 1vh 1vw;
    text-align: center;
}
p{ 
    margin: 0;
}
.description-text {
    padding: 1vw;
}
.description-content {
    display: flex;
    flex-direction: column;
    padding: 1vh 1vw;
    min-width: 38vw
}
.description-content > img {
    max-width: 100%;
}
.news-medialist {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
}
.news-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 5px;
    margin-right: 5px;
}
.description-content > p{
    margin-bottom: 10px;
}
.news-media > .activity-preview {
    height: 300px;
    width: auto;
    margin-bottom: 10px;
}

.column {
    flex-direction: column;
}
.column-reverse {
    flex-direction: column-reverse;
}
.row {
    flex-direction: row;
}
.description-content-title {
    font-weight: bold;
}
.description-content-split {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 1vh 0vw;
}
.description-content-split-video {
    width:50%;
}
.description-content-split-video > iframe {
    width:95%;
    aspect-ratio: 16/9;
}
.description-content-video {
    position: relative;
    width: 100%;
    height: fit-content;
    aspect-ratio: 16/9;
}
.description-content-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 16/9;
}
.activity {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.activity-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    margin: 10px;
}
.activity-info > p, .activity-info > a {
    margin: 1vw;
}

.activity-date {
    font-weight: bold;
    margin-right: 2vw;
    padding: 1vw;
    flex: 0.2;
}

iframe.activity-preview {
    aspect-ratio: 16/9;
}

.loading {
    background: url(/res/icons/loading_small.gif) center center no-repeat;
    background-color: lightgray;
}

@media only screen and (orientation:portrait) {
    h1 {
        font-size: 36pt;
    }
    p {
        font-size: 21pt;
    }
    a {
        font-size: 21pt;
    }
    li {
        font-size: 21pt;
    }
    .descriptions {
        max-width: 100%;
    }
    .description-title {
        font-size: 31pt;   
    }
    .description-box {
        max-width: none;
    }
    .activity-date {
        font-size: 21pt;
    }
}

/* width */
::-webkit-scrollbar {
width: 20px;
}

/* Track */
::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px grey; 
border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
background: gray; 
border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: green; 
}