.mainshape {
    position: relative;
    top: -60px;
}

div.shape {
    background-color: #a02929;
    position: relative;
    top: 0;
    left: 0;
    height: 420px;
    z-index: 0;
    -webkit-box-shadow: 0px 10px 25px -11px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 10px 25px -11px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 10px 25px -11px rgba(0, 0, 0, 0.75);
}

div.shape2 {
    position: relative;
    top: 0;
    left: 0;
    background-color: #ed1c24;
    height: 450px;
    transform: skew(0, -5deg);
    z-index: -1;
    animation: topdownred 2s forwards;
}

.infocard {
    position: relative;
    border-radius: 20px;
    z-index: 5;
    top: -190px;
    margin: auto;
    padding: 40px;
    width: 80%;
    -webkit-box-shadow: 0px 0px 28px -10px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 28px -10px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 28px -10px rgba(0, 0, 0, 0.75);
}

.headtext {
    position: absolute;
    top: 33%;
    left: 7%;
    font-size: 2.5rem;
    font-weight: 700;
    transform: skew(0, 5deg);
    color: white;
}

.brandwrapper{
    z-index: 2;
    position: absolute;
    display: flex;
    width: 100%;
    margin-top: 5%;
}

.brandwrapper:hover{
    opacity: 0;
    animation: slowfade 2s forwards;
}

.brandtext{
    content: '';
    font-size: 14px;
    z-index: 3;
    margin-left: auto;
    background-color: rgba(0,0,0,0.1);
    color: white;
    margin-right: 9%;
    padding: 0px 10px 0px 10px;
    border-radius: 20px;
    cursor: pointer;
    opacity: 0;
    animation: slowfade 1.5s forwards;
    animation-delay: 1.0s;
}

.brandtext:before{
    content: 'Powered by SIMS';
}

.brandtext:hover:before{
    content: 'Student Information Management System';
}

.teamslink{
    display: contents;
    text-decoration: none;
}


.naactext {
    position: absolute;
    top: 49%;
    font-size: 0.7rem;
    text-align: center;
    left: 74%;
    opacity: 0;
    transform: skew(0, 5deg);
    color: white;
    animation: slowfade 1.5s forwards;
    animation-delay: 1.0s;
}

.headtext::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 7px;
    width: 0px;
    background-color: white;
    animation: complete ease-in-out 1100ms forwards;
}

.headtext::after {
    content: '';
    position: absolute;
    top: 93%;
    left: 0;
    height: 7px;
    width: 0px;
    background-color: white;
    animation: complete2 ease-in-out 1s forwards;
    animation-delay: 600ms;
}

.redlink {
    text-decoration: none;
    color: #a02929;
    font-weight: 700;
    background-color: transparent;
}

.redlink:hover {
    text-decoration: none;
    border-bottom: 2px dotted;
    color: #802121;
}

@keyframes topdown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes topdownred {
    from {
        height: 370px;
    }
    to {
        height: 450px;
    }
}

@keyframes topdownred2 {
    from {
        height: 370px;
    }
    to {
        height: 410px;
    }
}

@keyframes topdownslant {
    from {
        opacity: 0;
        transform: translateY(-10%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes complete {
    from {
        width: 0%;
    }
    to {
        width: 160px;
    }
}

@keyframes complete2 {
    from {
        width: 0%;
    }
    to {
        width: 60px;
    }
}

@keyframes slowfade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/*NavBar*/

body {
    overflow-x: hidden;
}

#navbar {
    z-index: 9;
    padding-left: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: #a02929;
    position: fixed;
    top: 0;
    width: 100%;
    transition: top 0.3s;
}

.navbar-custom {
    padding: 0;
}

.navbar-custom .nav-item:hover {
    color: white;
}

.navbar-custom .nav-item {
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    float: left;
    display: block;
}

.navbar-custom .nav-brand:hover {
    background-color: #802121;
}

.dropdown:hover .dropdown-menu,
.btn-group:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    border-radius: 1.25rem;
    border: none;
    color: #a02929;
    text-transform: capitalize;
    margin-top: 0;
    -webkit-box-shadow: 0px 0px 28px -3px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 28px -3px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 28px -3px rgba(0, 0, 0, 0.75);
    animation: topdownslant 300ms forwards;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -9%;
    left: 30%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 14px 6px;
    border-color: transparent transparent #ffffff transparent;
}

.dropdown-divider {
    font-size: 0.5rem;
    border-top: 1px solid #a02929;
    margin: .5rem 1rem;
}

.dropdown-toggle {
    margin-bottom: 2px;
}

.navbar .dropdown-toggle,
.nav-tabs .dropdown-toggle {
    margin-bottom: 0;
}

.navbar .dropdown-menu a:hover {
    color: #a02929 !important;
    background-color: transparent;
}

.navbar a.navbar-brand {
    position: relative;
    color: #fff;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 0.2rem;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}


/*SideNav*/

.sidenav a:hover {
    color: #f1f1f1;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

div.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 300;
    top: 0;
    left: 0;
    background-color: rgb(160, 41, 41, 0.96);
    overflow-x: hidden;
    transition: cubic-bezier(.33, .82, .28, 1.25) 0.4s;
    padding-top: 60px;
    border: solid white 0px;
    -webkit-box-shadow: 10px 0px 50px -8px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 10px 0px 50px -8px rgba(0, 0, 0, 0.75);
    box-shadow: 10px 0px 50px -8px rgba(0, 0, 0, 0.75);
}

.mobiletext {
    position: absolute;
    top: 0;
    margin-top: 1rem;
    letter-spacing: 0.2rem;
    margin-left: 80%;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.mobiletop {
    position: fixed;
    background-color: #a02929;
    width: 100%;
    padding-bottom: 0.8rem;
    z-index: 200;
    transition: top 0.3s;
}

div.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #ffffff;
    display: block;
    transition: 0.3s;
}

div.sidenav a:hover {
    color: #f1f1f1;
}

div.sidenav .closebtn {
    position: absolute;
    text-align: right;
    top: 0;
    right: 25px;
    font-size: 35px;
    margin-left: 50px;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 5;
}

.sidebaricon {
    height: 43px;
    width: 80px;
    cursor: pointer;
    margin-top: 1rem;
    margin-left: 1rem;
}


/* Fixed sidenav, full height */


/* Style the sidenav links and the dropdown button */

.sidenav a,
.dropdown-btn {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: white;
    display: block;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: all ease-in-out 0.4s;
}


/* On mouse-over */

.sidenav a:hover,
.dropdown-btn:hover {
    color: #f1f1f1;
}


/* Main content */

.main {
    margin-left: 200px;
    /* Same as the width of the sidenav */
    font-size: 20px;
    /* Increased text to enable scrolling */
    padding: 0px 10px;
}


/* Add an active class to the active dropdown button */


/* Dropdown container (hidden by default). Optional: add a lighter background color and some left padding to change the design of the dropdown content */

.dropdown-container {
    display: none;
    background-color: #8e2323;
    padding-left: 8px;
}


/* Optional: Style the caret down icon */

.fa-caret-down {
    float: right;
    padding-right: 8px;
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }
    .sidenav a {
        font-size: 18px;
    }
}




@media (min-width: 993px) {
    .mobiletop {
        display: none;
    }
    .navbar-custom {
        display: absolute;
    }
    .headtext {
        top: 36%;
    }
    .brandwrapper{
        margin-top: 5%;
        width: 25%;
        margin-left: 67%;
    }
    .naactext {
        top: 58%;
    }
}

@media (max-width: 1024px) {
    .brandwrapper{
        width: 100%;
        margin-top: 13%;
        margin-left: 5%;
    }
}


@media (max-width: 992px) {
    .sidebaricon {
        display: block;
    }
    .navbar-custom {
        display: none;
    }
    .headtext {
        top: 30%;
    }
     .brandwrapper{
        margin-top: 12%;
        z-index: 2;
    }
    .naactext {
        top: 45%
    }
}

@media (max-width: 740px) {
    .mobiletext {
        margin-left: 75%;
    }
}

@media (max-width: 590px) {
    .mobiletext {
        margin-left: 70%;
    }
}

@media (max-width: 490px) {
    .mobiletext {
        margin-left: 65%;
    }
}

@media (max-width: 410px) {
    .mobiletext {
        margin-left: 60%;
    }
}

@media (max-width: 360px) {
    .mobiletext {
        margin-left: 55%;
    }
}

@media (max-width: 768px) {
    div.shape2 {
        transform: skew(0, -7deg);
    }
    .headtext {
        transform: skew(0, 7deg);
    }
}

@media (max-width: 1170px) {
    .naactext {
        left: 45%;
    }
}

@media (max-width: 1070px) {
    .naactext {
        left: 40%;
    }
    .infocard {
        width: 90%;
        left: 5%;
    }
}

@media (max-width: 1000px) {
    .naactext {
        left: 35%;
    }
}

@media (max-width: 920px) {
    .naactext {
        left: 30%;
        font-size: 0.6rem;
    }
}

@media (max-width: 790px) {
    .naactext {
        display: none;
    }
    .headtext {
        top: 50%;
    }

     .brandwrapper{
        margin-top: 24%;
        margin-left: 2%;
        z-index: 250;
        font-size: 0.8rem;
    }
}
