* {
    font-family: "Arial", sans-serif;
}

.video-card {
    display: flex;
    width: fit-content;
    /* 300px*/
    min-width: 150px;
    height: 150px;
    background-color: black;
    color: white;
    text-decoration: none;
    margin: 10px;
    align-items: center;
    justify-content: center;
    position: relative;

}


.video-card p {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background-color: rgba(0, 0, 0, 0.5);
    width: fit-content;
    padding: 5px;
    border-radius: 10px;
    margin: 0px;
    text-overflow: ellipsis;
    font-size: 12px;
    color: white;
}

.video-card .video-user {
    bottom: 2px;
    right: none;
    left: 2px;
}

.video-card h2 {
    position: absolute;
    top: 2px;
    left: 2px;
    background-color: rgba(0, 0, 0, 0.5);
    width: fit-content;
    padding: 5px;
    border-radius: 10px;
    margin: 0px;
    text-overflow: ellipsis;
    font-size: 16px;
    color: white;
}

.video-card img {
    max-height: 150px;
    max-width: 300px;
    width: fit-content;
    height: 100%;

    aspect-ratio: unset;
    object-fit: fill;
    background-color: black;

}

.video-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;

}

input {
    background-color: white;
    border-radius: 5px;
    padding: 5px;
    border: thin gray solid;
    margin: 10px auto;
    width: 60%;

}

button {
    background-color: green;
    border-radius: 5px;
    padding: 5px;
    font-size: 1rem;
    border: none;
    color: white;
    margin: 10px auto;
    width: 30%;
}

form {
    display: flex;
    width: 50%;
    flex-direction: column;
    padding: 5px;
    margin: 50px auto;
    border-radius: 15px;
    text-align: center;
    box-shadow: 1px 1px 1px 2px rgba(0, 0, 0, 0.2);
    background-color: white;
}

textarea {
    background-color: white;
    border-radius: 5px;
    padding: 5px;
    border: thin gray solid;
    margin: 10px auto;
    width: 60%;
}

.small-input {
    width: 30%;
    margin: 5px;
}

.user-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.user-card {
    display: flex;
    width: fit-content;
    height: 240px;
    text-align: center;
    color: black;

    text-decoration: none;
}

.user-card img {
    width: fit-content;
    height: 180px;
    background-color: black;
    margin: auto;
}

.user-card div p {
    margin: 5px;
    padding: 0px;
    font-size: 1rem;
}

.user-card div h2 {
    margin: 5px;
    padding: 0px;
    font-size: 3rem;
}

.user-card div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* when visited */
.user-card a:link,
a:visited {
    text-align: center;
    color: rgb(50, 50, 50);
    font-size: 2rem;
    text-decoration: none;
}

h1,
h2,
h3 {
    font-weight: normal;
}

.user-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 30%;
    min-width: 500px;
    margin: 10px auto;

}

.user-profile div p {
    margin: 5px;
    padding: 0px;
    font-size: 1rem;
}

.user-profile div h1 {
    margin: 5px;
    padding: 0px;
    font-size: 5rem;
}

.user-profile div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.yv {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    margin-left: 10px;
}

.yv img {
    height: 44px;
    width: 44px;
    margin-left: 10px;
}

body {
    background-color: greenyellow;
}

nav {
    background-color: transparent;
    margin: 0px;
    padding: 0px;
    display: flex;
    width: 100%;
}

nav a,
.yv p {
    color: white !important;
    text-decoration: none;
    font-size: 1.5rem;
    margin: 0px 10px;
    padding: 10px;
    background-color: green;
}

#player {
    height: 70vh;
    min-height: 50px;
    margin: 5px auto;
    text-align: center;
    width: auto;
    max-width: 100%;
}

#player-container {
    width: 100%;
    margin: 10px auto;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.video-data {
    width: 80%;
    background-color: green;
    margin: 10px auto;
    padding: 10px;
    color: white;
    display: flex;
    justify-content: space-between;

}

.small-user-card {
    display: flex;
    width: fit-content;
    justify-content: center;
    height: 100px;
    text-align: center;
    color: black;
    font-size: 1.5rem;
    text-decoration: none;
}

.small-user-card img {
    width: fit-content;
    height: 80px;
    background-color: black;
    margin: auto;
}

.small-user-card div p {
    margin: 5px;
    padding: 0px;
    color: white;
}

.small-user-card div h2 {
    margin: 5px;
    padding: 0px;
    color: white;
}

.small-user-card div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.views {
    font-size: 1.2rem;
    background-color: gray;
    border-radius: 10px;
    padding: 5px;
}

.title {
    font-size: 2rem;
    background-color: gray;
    border-radius: 10px;
    padding: 5px;
    width: fit-content;
}

@media (prefers-color-scheme: dark) {
    h1, h2, h3 , p , a, footer {
        color:white;
    }
    .video-card {

        background-color: darkgray;
        color: white;


    }


    .video-card p {

        background-color: rgba(0, 0, 0, 0.5);
        color: white;
    }

    .video-card h2 {
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
    }

    .video-card img {
        background-color: black;

    }


    input {
        background-color: darkgray;
        border: thin gray solid;
        color: white;
    }

    button {
        background-color: greenyellow;
        color: black;
    }

    form {
        box-shadow: 1px 1px 1px 2px rgba(0, 0, 0, 0.2);
        background-color: darkgray;
    }

    textarea {
        background-color: darkgray;
        border: thin gray solid;
        color: white;
    }


    .user-card {
        color: white;
    }

    .user-card img {
        background-color: black;
    }


    .user-card a:link,
    a:visited {
        color: rgb(50, 50, 50);
    }




    body {
        background-color: darkgreen;
    }


    nav a,
    .yv p {
        color: white !important;
        background-color: yellowgreen;
    }

    .video-data {
        background-color: yellowgreen;
        color: white;
        
    }

    .small-user-card {
        color: black;
    }

    .small-user-card img {
        background-color: black;
    }

    .small-user-card div p {
        color: white;
    }

    .small-user-card div h2 {
        color: white;
    }

    .views {
        background-color: green;
    }

    .title {
        background-color: green;
    }
}

#audio-thumbnail {
    height: 30vh;
    margin: 0px;
    padding: 5px;
}
.small-player {
    height: auto !important;
}
#notice {
    position: fixed;
    top: 0px;
    left: 0px;
    background-color: black;
    color: white;
}