* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, sans-serif; background-color: rgb(20, 20, 20); color: rgb(245, 245, 245); } /**/ /* Navagational Bar */ /**/ nav { background-color: rgb(40, 40, 40); color: rgb(245, 245, 245); padding: 10px 20px; } nav .logo { font-size: 1.5em; } /**/ /* Control Bar */ /**/ .controls { display: flex; justify-content: center; align-items: center; padding: 20px; gap: 20px; } .toggle-controls { display: flex; gap: 20px; } .toggle-controls label { display: flex; justify-content: space-between; align-items: center; background-color: rgb(40, 40, 40); color: rgb(245, 245, 245); padding: 10px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); width: 200px; } .toggle-controls input[type="checkbox"] { transform: scale(1.5); margin-left: 10px; } .category-dropdown { position: relative; width: 200px; } .category-dropdown .selected { background-color: rgb(40, 40, 40); color: rgb(245, 245, 245); padding: 10px; border-radius: 10px; border: 2px solid rgb(201, 201, 201); cursor: pointer; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } .category-dropdown .selected::after { content: ''; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid rgb(245, 245, 245); transform: translateY(-50%); pointer-events: none; } .category-dropdown .options { position: absolute; top: calc(100% + 5px); left: 0; width: 100%; background-color: rgb(40, 40, 40); border: 2px solid rgb(201, 201, 201); border-top: none; border-radius: 0 0 10px 10px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); overflow: hidden; z-index: 10; max-height: 0; visibility: hidden; opacity: 0; transition: max-height 0.3s ease, visibility 0s linear, opacity 0s linear; } .category-dropdown .options.active { max-height: 300px; /* Adjust according to the number of options */ visibility: visible; opacity: 1; transition: max-height 0.3s ease, visibility 0s linear, opacity 0.3s linear; } .category-dropdown .options.closing { max-height: 0; visibility: hidden; opacity: 0; transition: max-height 0.3s ease, visibility 0s linear, opacity 0.3s linear; } .category-dropdown .option { padding: 10px; color: rgb(245, 245, 245); cursor: pointer; } .category-dropdown .option:hover { background-color: rgb(60, 60, 60); } @keyframes curtainOpen { 0% { max-height: 0; } 100% { max-height: 300px; /* Adjust according to the number of options */ } } @keyframes curtainClose { 0% { max-height: 300px; /* Adjust according to the number of options */ } 100% { max-height: 0; } } /**/ /* Content */ /**/ .content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); justify-content: center; gap: 20px; padding: 20px; max-width: 1500px; margin: 0 auto; align-content: space-evenly; align-items: start; justify-items: center; } @media (min-width: 1500px) { .content-grid { grid-template-columns: repeat(4, 1fr); } } .content-item { position: relative; text-align: left; background: rgba(255, 255, 255, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; width: 100%; max-width: 320px; border-top-left-radius: 10px; border-top-right-radius: 10px; } .content-item:hover { transform: scale(1.03); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } .thumbnail-container { position: relative; margin-bottom: 10px; border-radius: 10px; overflow: hidden; width: 100%; padding-top: 56.25%; /* 16:9 Aspect Ratio */ background-color: #000; filter: brightness(0.8); /* Initial hover effect */ transition: filter 0.3s ease; } .thumbnail-container:hover { filter: brightness(1); /* Hover effect */ } .thumbnail-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; transition: opacity 0.3s ease; } .thumbnail-container:hover img { opacity: 0.8; } .play-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background-image: url('../images/p3.png'); background-size: cover; cursor: pointer; opacity: 0; transition: opacity 0.3s ease; } .thumbnail-container:hover .play-button { opacity: 1; } .duration-overlay { position: absolute; bottom: 5px; right: 5px; background: rgba(0, 0, 0, 0.7); color: #fff; padding: 2px 5px; border-radius: 3px; font-size: 12px; } .fullscreen-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 5px 10px; background-color: rgba(0, 0, 0, 0.5); color: #fff; border: none; cursor: pointer; display: none; } .thumbnail-container:hover .fullscreen-button { display: block; } .picture-info { padding: 10px 5px; } .video-name { color: #fff; font-size: 14px; margin-bottom: 5px; font-weight: bold; } .video-author { color: #aaa; font-size: 12px; }