/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure the container takes up the full viewport */
html, body {
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    max-width: 1024px;
    margin: 0 auto;
    min-height: 600px;
}

.container {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr)); /* Responsive columns */
    grid-auto-rows: minmax(50px, 1fr); /* Responsive rows */
    gap: 10px; /* Space between tiles */
    padding: 10px; /* Optional padding around the grid */
    overflow-y: auto;
}

/* Style for video elements */
video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    border-radius: 10px; /* Optional: Rounded corners for aesthetics */
    filter: grayscale(80%);
    cursor: pointer;
}

video.play {
    position: relative;
    box-shadow: 6px 6px 6px rgba(166, 133, 0, 0.681);
    top: -3px;
    left: -3px;
    filter: grayscale(0);
}


/* Make the 6th video twice as wide */
.container video:nth-child(6) {
    grid-column: span 2; /* Span across two columns */
}

h1 {
    /* min-height: 0; */
    flex-shrink: 0;
    font-size: 4em;
    /* width: 100%; */
    text-align: center;
    padding: 10px 0;
    /* margin: 0; */
    background: linear-gradient(90deg, #ff0000, #00ffe1, #ff0000);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 5s infinite;    
}

@keyframes glow {
    0% { background-position: 0%; }
    100% { background-position: 100%; }
}

.controls {
    display: flex;
    width: 100%;
    padding: 1em;
    font-size: 1em;
}

.controls button {
    margin-left: 5px;
}

.bar-placeholder {
    flex: 1 1 0;
    display: flex;
    border: 1px solid black;
    border-radius: 0.2em;
    position: relative;
    cursor: pointer;
}

.bar {
    background-color: green;
    border-radius: 0.2em;
    height: 100%;
}

button {
    margin: 0px 2px;
    background-color: green;
    border-radius: 0.2em;
    color: white;
    cursor: pointer;
    font-size: 1.5em;
    padding: 5px;

    -webkit-appearance: button;
    border-color: rgb(216, 216, 216) rgb(209, 209, 209) rgb(186, 186, 186);
    border-style: solid;
    border-width: 1px;
    text-rendering: auto;
    display: inline-block;
    text-align: start;
    margin: 0em;
}

@media screen and (height < 800px) {
    .app {
        max-width: 500px;
    }
    h1 {
        font-size: 2em;
    }
} 

@media screen and (800px < height < 1200px) {
    .app {
        max-width: 800px;
    }
    h1 {
        font-size: 2em;
    }
} 


div.start {
    display: flex;
    font-size: 3em;
    position: absolute;
    z-index: 100;
    height: 100%;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.511);
}

div.start button {
    padding: 10px;
}

.logos {
    display: flex;
    align-items: center;
    /* align-content: stretch; */
    justify-content: space-between;
}

.logos a {
    padding: 5px 10px;
    text-decoration: none;
    /* border: 1px solid red; */
    /* min-height: 0; */
}

.logos img {
    width: 100%;
    max-height: 50px;
}

.hint {
    text-align: center;
}