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

body {
    padding: 1rem;
    font-family: 'Helvetica Neue';
    background-color: tomato;
}

.container {
    width: 100%;
    height: 100%;
    background-color: white;
    border: 1px solid black;
    border-radius: 2rem;
    padding: 1rem;
}

.home li span {
    display: none;
    color: lightyellow;
    float: right;
}

.main-container {
    width: calc(100vw - 2rem);
    height: calc(100vh - 2rem);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.left-container {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    max-height: 100%;
    background-color: white;
    border: 1px solid black;
    border-radius: 2rem;
    padding: 1rem;
}

.right-container {
    width: 100%;
    min-height: 100%;
    background-color: rgb(186, 186, 72);
    border: 1px solid black;
    border-radius: 2rem;
    padding: 1rem;
    overflow: auto;
}

img {
    width: 100px;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
}

a {
    color: black;
    text-decoration: none;
}

#tomato {
    animation: spin 5s infinite linear;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

.collections {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.5rem 0;
}

.collection {
    background-color: rgb(186, 186, 72);
    border: 1px solid black;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    width: calc(100%/2 - 0.5rem);
}

.logs {
    flex-grow: 2;
}

.content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.5rem 0;
}

.tomato-logs {
    background-color: rgb(186, 186, 72);
}

details {
    margin: 0 auto;
    width: 60%;
}

.collection p,
.logs p,
.bubble p,
details {
    text-align: center;
    margin-bottom: 0.5rem;
}

.bubble p {
    margin-top: 0.25rem;
}

.tomato-bubble .date {
    text-align: right;
}

.logs {
    background-color: rgb(223, 223, 108);
    border: 1px solid black;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    width: calc(100%/2 - 0.5rem);
}

.bubble {
    background-color: rgb(223, 223, 108);
    border: 1px solid black;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

li {
    background-color: white;
    border: 1px solid black;
    border-radius: 1rem;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    list-style-type: none;
}

li:hover {
    background-color: tomato;
    color: white;
}

.info li {
    background-color: tomato;
    color: white;
    text-align: center;
    padding: 0.5rem;
    min-width: 100%;
    max-width: 100%;
}

.bubble li {
    width: 100%;
}

.info li:hover {
    cursor: auto;
}

.bubble li:hover {
    background-color: white;
    color: black;
}

::selection {
    color: tomato;
}

.favicon {
    border: 1px solid black;
}

.back {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
}

.center a:hover {
    filter: drop-shadow(0px 0px 3px tomato);
}

.back:hover {
    filter: drop-shadow(0px 0px 3px white);
}

iframe {
    background-color: white;
    border-radius: 1rem;
    border: 1px solid black;
    width: 100%;
    height: 50vh;
}

.popup {
    position: relative;
}

.thumbnail:hover,
.alt-thumbnail:hover {
    background-color: transparent;
}

.thumbnail span,
.alt-thumbnail span {
    position: fixed;
    visibility: hidden;
    text-decoration: none;
}

.thumbnail:hover span {
    visibility: visible;
    bottom: calc(50vh - 20vh);
    left: calc(50vw - 20vw);
    z-index: 50;
}

.alt-thumbnail:hover span {
    visibility: visible;
    top: 1rem;
    right: 1rem;
    z-index: 50;
}

.image-popup {
    width: 40vw;
    border: 1px solid black;
    border-radius: 1rem;
    box-shadow: 0px 0px 20px black;
}

.inner-list li {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0.25rem 0;
}

.date {
    color: tomato;
}

.page-logs img {
    border: 1px solid black;
    width: 60%;
    margin: 1rem 20%;
    transition: 3s;
}

.page-logs img:hover {
    width: 100%;
    margin: 1rem 0;
    box-shadow: 0 0 10px yellow;
}

.timestamp {
    color: gray;
}

.expired {
    cursor: not-allowed;
}

/* date on hover */

@media only screen and (min-width: 992px) {
    .home li:hover span {
        display: block;
    }
}

/* somewhat responsive design */

@media only screen and (max-width: 800px) {
    .main-container {
        width: calc(100vw - 2rem);
        height: calc(100vh - 2rem);
        display: block;
    }

    .left-container {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100%;
        max-height: 100%;
        background-color: white;
        border: 1px solid black;
        border-radius: 2rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .right-container {
        width: 100%;
        min-height: 100%;
        background-color: rgb(186, 186, 72);
        border: 1px solid black;
        border-radius: 2rem;
        padding: 1rem;
        overflow: auto;
    }

}