@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');


/* Genara styles */

body {
    margin: 0;
    padding: 0;
    font-family: Roboto, Arial;
    padding-top: 130px;
    padding-left: 265px;
    padding-right: 24px;
}

p {
    margin: 0;
}

/* Header styles */

.header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: white;
}

.header-left-portion {
    display: flex;
    align-items: center;
    width: 180px;
    height: 100%;
}

.menu-icon {
    height: 34px;
    width: 34px;
    cursor: pointer;
    border-radius: 25px;
}

.menu-icon:hover,
.search-icon-button:hover,
.voice-search-icon-button:hover,
.upload-button:hover,
.notification-button:hover,
.tag:hover {
    background-color: rgb(228, 228, 228);
}

.logo-icon {
    height: 20px;
    margin: 20px;
    padding-top: 4px;
    cursor: pointer;
}

.header-middle-portion {
    height: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    
    
}

.search-bar {
    flex: 1;
    padding: 0;
    padding-left: 16px;
    height: 38px;
    width: 0;
    max-width: 500px;
    outline: none;
    border: 1px solid rgb(214, 214, 214);
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    box-shadow: inset 1px 2px 3px rgba(0, 0, 0, 0.05);
}

.search-icon-button {
    background-color: rgb(244, 244, 244);
    border: 1px solid rgb(214, 214, 214);
    border-radius: 0 25px 25px 0;
    height: 39px;
    width: 66px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.search-icon {
    width: 25px;
    padding: 6px 12px;
}

.voice-search-icon-button {
    height: 40px;
    width: 40px;
    margin-left: 20px;
    background-color: rgb(244, 244, 244);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    
}

.voice-search-icon {
    width: 24px;
}


.header-right-portion {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 150px;
    padding-right: 40px;
}

.upload-button,
.notification-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border: none;
    background-color: white;
    border-radius: 20px;
    cursor: pointer;
}

.upload-icon {
    width: 20px;
    padding-left: 2px;
}

.notification-icon {
    width: 24px;
}

.user-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    width: 34px;
    border: none;
    background-color: rgb(3, 89, 175);
    border-radius: 17px;
    cursor: pointer;
}

.user-identity {
    width: 18px;
    height: 18px;
    font-size: 18px;
    margin: 0;
    color: white;
    padding: 0;
    font-family: Roboto, Arial;
}

.tag-container {
    width: 3000px;
    position: fixed;
    top: 55px;
    left: 265px;
    right: 0;
    height: 56px;
    display: flex;
    justify-content: baseline;
    align-items: center;
    z-index: 10;
    background-color: white;
    
}

.tag {
    background-color: rgb(241, 241, 241);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: Roboto, Arial;
    border: none;
    margin-right: 12px;
    cursor: pointer;
}


.tag:focus {
    background-color: black;
    color: white;
}

.more {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 55px;
    right: 0;
    height: 56px;
    width: 80px;
    background-color: white;
}

.more-greaterthan {
    height: 40%;
    width: 14px;
    padding: 8px 12px;
    background-color: rgb(255, 255, 255);
    border-radius: 50px;
    cursor: pointer;
}

.more-greaterthan:hover {
    background-color: rgb(241, 241, 241);
}



/* Side bar */

.navigation-container-small {
    position: fixed;
    left: 0;
    top: 55px;
    bottom: 0;
    width: 72px;
}

.navigation-container-small .icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 80px;
    border-radius: 10px;
    cursor: pointer;
}

.navigation-container-small .icon {
    margin-bottom: 8px;
}

.navigation-container-small .icon-text {
    margin: 0;
    font-size: 10px;
}

.navigation-container {
    position: fixed;
    left: 0;
    top: 55px;
    bottom: 0;
    width: 240px;
    overflow: auto;
    z-index: 2;
    background-color: white;
}

.navigation-top-container, .navigation-middle-container {
    border-bottom: 1px solid rgb(214, 214, 214);
    margin: 16px 8px;
}

.navigation-container .icon-container {
    display: flex;
    align-items: center;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 2px;
    padding: 0 16px;
    cursor: pointer;
    
}

.icon-container:last-child {
    margin-bottom: 8px;
}

.icon-container:hover {
    background-color: rgb(241, 241, 241);
}

.icon {
    width: 20px;
}

.icon-text {
    margin-left: 26px;
    font-size: 14px;
}

.Shorts-icon {
    width: 26px;
}

.downloads-icon {
    width: 22px;
}

.title  {
    font-size: 16px;
    font-weight: bold;
}

.arrow {   
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.greater-than-icon {
    width: 16px;
    padding: 8px 0;
    height: 20px;
}




/* Main */

.grid {
    display: grid;
    cursor: pointer;
}

.thumbnail {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    position: relative;
}

.thumbnail-image {
   width: 100%;
   border-radius: 16px;
}

.video-time {
    position: absolute;
    right: 10px;
    bottom: 12px;
    color: white;
    font-size: 12px;
    background-color: black;
    font-weight: 500;
    border-radius: 4px;
    padding: 2px 4px;
}

.video-details {
    display: flex;
    align-items: top;
}

.profil-pic-container {
    width: 50px;
}

.profil-pic {
    width: 36px;
    height: 36px;
    border-radius: 50px;
}

.thumbnail-text-container {
    flex: 1;
}

.thumbnail-title {
    display: flex;
    align-items: top;
    justify-content: space-between;
    margin-bottom: 8px;
}

.heading {
    font-size: 16px;
    font-weight: 500;
    margin-right: 1px;
}

.three-dot img {
    width: 24px;
}

.channel-name, .video-info {
    font-size: 14px;
    margin-bottom: 6px;
    color: gray;
}

.video-grid {
    display: grid;
    column-gap: 16px;
    row-gap: 40px;
}

@media (max-width: 699px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    .header-container {
        padding-left: 10px;
    }
}

@media (max-width: 800px) {
    body {
        padding-left: 20px;
        padding-right: 20px;
    }
    .tag-container {
        position: fixed;
        left: 20px;
    }
    .navigation-container-small {
        opacity: 0;
    }
}

@media (min-width: 800px) and (max-width: 1320px) {
    body {
        padding-left: 96px;
        padding-right: 20px;
    }
    .tag-container {
        position: fixed;
        left: 96px;
    }
}

@media (max-width: 1320px) {
    .navigation-container {
        width: 0;
    }
}

@media (min-width: 700px) and (max-width:1099px) {
    .video-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1100px) {
    .video-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
}
