/*--------------------------------------------------------
    Typography
--------------------------------------------------------*/
* {box-sizing: border-box;}
a:link {text-decoration: none;}
a img {border: none;}
a:focus,a:active,a img:focus {outline: none;}
body {
    margin: 0 auto;
    background: #e9ecfa;
    font-size: 16px;
    font-family: Verdana, Arial, Helvetic, sans-serif;
}
h1,h2,h3 {
    text-align: center;
    padding: 1em 0;
}
/*--------------------------------------------------------
    Layout
--------------------------------------------------------*/
header {
    display: flex;
    background: #F02D36;
    height: 64px;
    justify-content: space-between;
    padding-top: 10px;
    overflow: clip;
}
header a {
    border: none;
    color: #FFF;}
header img{
    display: block;
    margin-left: 10px;
    height: 80%;
}
header nav {
    position: absolute;
    top: 64px;
    width: 100%;
    transform: translateX(-100%);
    background: #F02D36;
    z-index: 100;
    transition: all .3s ease-in;}
header nav.open {transform: translateX(0);}
header nav a {
    display: block;
    padding: 23px 0 23px 0;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 1px solid #666;
}
header nav.open {
    display: block;
    height: 300px;
}
#burger {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;  
}
#burger div,
#burger div::before,
#burger div::after{
    content: '';
    position: absolute;
    width: 30px;
    height: 4px;
    border-radius: 8px;
    background: #FFF;
    transition: all .3s ease-in;
}
#burger.open div {transform: translate(-15px); width: 0;}
#burger.open div::before {transform: rotate(45deg);}
#burger.open div::after {transform: rotate(-45deg);}
#burger div::before {transform: translateY(-10px);}
#burger div::after {transform: translateY(10px);}
#banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../images/mobile_banner.jpg);
    background-size: cover;
    background-position: top left;
    aspect-ratio: 2 / 3;
    color: #FFF;
    margin-bottom: 30px;
}
#header #burger div,
#header #burger div::before,
#header #burger div::after {background: #FFF;}
#header nav a {color: #FFF;}
#banner h1 {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
    max-width: 75%;
    padding: 15px;
    font-size: 2.8em;}
#features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
#features img {width: 100%;}

#features > div {
    background: #FFF;
}
#features .benefit {margin: 0 2rem 2rem;}
footer {
    background: #333;
    color: #CCC;
    height: 200px;
}
/* Styling for videos.php */
#videos h3,#videolist h3 {text-transform: capitalize; margin-top: 0;}
#videos,#videolist {
    background: #11151C;
    color: #FFF;
    padding-bottom: 50px;}
#videolist video {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;}
#videos a,#videolist a {color: #FFF;}
#videolist #description {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 10px 10px 10px;
    font-size: 1em;
    color: #C5C3C3;
    line-height: 1.6em;}
#categories .catcard {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding: 12px 12px 2px 12px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #1C2533;
    width: 100%;
    color: #F1F5F9;
    text-decoration: none;
    text-transform: capitalize;
}
#categories .catcard .name {
    margin: 0 0 5px 0;
    font-size: 1.15em;}
#categories .catcard .count {
    font-size: .9em;
    color: #adaebe}
#categories .catcard .chevron {
    font-size: 3em;
    font-weight: bold;
    transform: translateY(-8px);
    color: #72B7FF;}
.videocase {
    width: 350px;
    border-radius: 0 0 10px 10px;
    background: #1D232E;
    display: inline-block;
    margin: 0 15px 20px 15px;
    padding-bottom: 10px;}
.videocase a h4 {
    font-size: 1.15em;
    text-align: left;
    margin: 0;
    padding: 10px 5px;
    color: #72B7FF;}
.videocase a h4:hover {color: #0871e0;}
.videocase p {font-weight: bold; margin: 0;}
.videocase p span {
    margin-left: 5px;
    font-weight: normal;
    opacity: .7;}
.videocase p a:hover {text-decoration: underline;}
.videocase .poster {
    position: relative;
    border-radius: 5px;
    width: 100%;
    aspect-ratio: 16 / 9;}
.videocase .poster:hover::after {
    position: absolute;
    content: "\25B6";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;}
.videocase .poster .duration {
    position: absolute;
    right: 5px;
    bottom: 5px;
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
    background: linear-gradient(to bottom, #fafafa, #979696);
    padding: 2px 5px;
    border-radius: 3px;
}
.videocase .specs {
    display: flex;
    justify-content: space-between;
    margin: 0 10px;
}
.videocase .specs a {text-decoration: none;}
#videos main {display: none;}
/* Styling for videolist.php */
#videolist #categories {display: none;}
/* Styling for single_video.php */
#videolist #headwrapper {
    padding-top: 20px; 
    width: fit-content;
    max-width: 97%;
    margin: 0 auto;
}
#videolist #headwrapper #back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F02D36;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 500;
}
#videolist #back:hover {color: #C91F28;}
/* -- The Comment Boxes --*/
#videolist .comment.newcom {
    background: rgba(240, 45, 54, 0.4);
    border-radius: 6px;
    padding-left: 12px;
    transform: translateX(-12px);
    animation: comhighlight 2s ease-out forwards;
}

@keyframes comhighlight {
    0%,60% {background: rgba(240, 45, 54, 0.4);}
    100% {background: transparent;}
}
#videolist #nocomment {text-align: center;}
#videolist .comment {
    padding: 18px 0;
    border-bottom: 1px solid #30333b;}
#videolist .comment .commeta img {
    width: 20px;
    height: auto;
    transform: scaleX(-1);
    filter: brightness(0) invert(1);}
#videolist .comment:last-child {border-bottom: none;}
#videolist .commeta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;}
#videolist .commeta img {
    width: 20px;
    filter: brightness(0) invert(1);}
#videolist .commeta span,
#videolist .commeta time {
    color: #9298a5;
    font-size: 12px;
    font-weight: normal;}
#videolist .comtext {
    margin: 0;
    color: #d6d8de;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: normal;}
#videolist #comments,#videolist #comform {
    background: #17191e;
    color: #ffffff;
    padding: 0 24px 24px 24px;
    border: 1px solid #30333b;
    border-radius: 12px;
    max-width: 650px;
    margin: 25px auto;
    box-sizing: border-box;}
/* -- The Comment Form --*/
#videolist #comform input,
#videolist #comform textarea {
    width: 100%;
    box-sizing: border-box;
    background: #22252c;
    color: #ffffff;
    border: 1px solid #3a3e48;
    border-radius: 8px;
    padding: 13px 14px;
    font: inherit;
    outline: none;}
#videolist #comform label:focus,
#videolist #comform textarea:focus {
    border-color: #F02D36;}
#videolist #comform input::placeholder,
#videolist #comform textarea::placeholder {
    color: #858b98;}
#videolist #comform #namerow {
    display: flex;
    align-items: stretch;
    gap: 10px;}
#videolist #comform #namerow input {min-width: 0; flex: 1;}
#videolist #comform #notme {
    background: transparent;
    color: #ffffff;
    border: 1px solid #555963;
    border-radius: 8px;
    padding: 0 16px;
    cursor: pointer;
    white-space: nowrap;}
#videolist #comform p#display_name {
    box-sizing: border-box;
    width: 100%;
    background: #22252c;
    color: #ffffff;
    border: 1px solid #3a3e48;
    border-radius: 8px;
    padding: 13px 14px;
    margin: 0;}
#videolist #comform #notme:hover {border-color: #F02D36;color: #F02D36;}
#videolist #comform #commsg {margin-top: 22px;}
#videolist #comform label {
    display: block;
    color: #b6bac4;
    font-size: 14px;
    margin-left: 3px;
    margin-bottom: 9px;}
#videolist #comform #post_comment {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #F02D36;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;}
#videolist #comform #post_comment:hover {background: #D9232C;}

/* Styling for About.php */
#about {padding: 15px;}
#about h1 {color: #F02D36;}
#about section img,
#about section p {
    display: block; /* I know p is already block*/
    width: 100%;
    border-radius: 10px;}
#about section p {
    aspect-ratio: 2 / 1;
    background: #555;
    color: #FFF;
    padding: 15px;}
/*---------------------------------------------------------------------
    Media Queries
---------------------------------------------------------------------*/
@media screen and (min-width: 700px){
    #burger {display: none;}
    header nav {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        max-width: 400px;
        height: 30px;
        margin-right: 70px;
        background: none;
        transition: none;
        transform: translatex(0);
        align-items: center;}
    header nav a {border-bottom: none;}
    /** index.php **/
    #banner {
        background: url(../images/desktop_banner.jpg);
        background-size: cover;
        aspect-ratio: 16 / 9;}
    /** about.php **/
    #about section {
        display: flex;
        gap: 15px;}
    #about section img,
    #about section p {
        max-width: 340px;
        aspect-ratio: 1 / 1;}
    #about section p {margin: 0;}
    #features > div{flex: 1 1 calc(50% - 1em);}
    /** videos.php **/
    #videos main {display: block;}
    #videos,#videolist {
        display: flex;
        gap: 25px;
        flex: 1 1;
        padding-bottom: 20px;}
    #videolist #categories {display: block;}
    #videos #categories, #videolist #categories {
        flex-shrink: 0;
        padding: 0 10px;
        width: 285px;}
    .videocase {margin-left: 5px;}
    /** videolist.php **/
    #videolist main {
        flex: 1;
        min-width: 0;
        padding-left: 15px;}
    #videolist video {position: static;}
    /** single_video.php **/
    #videolist #headwrapper #back {display: none;}
}
@media screen and (min-width: 1024px){
    #features > div {
        flex: 1 1 calc(33% - 1em);
    }
}