@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

img {
    width: 100%;
}

ul {
    list-style-type: none;
}

:root {
    --light-color: #f1f1f1;
    --dark-light-color: #ccc;
    --dark-color: #616161;
}

/* Header */
.header {
    text-align: center;
}

.header h1 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Showcase */
.grid-main {
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.grid-inner {
    grid-template-columns: 1fr;
}

.content h3,
.light-weight {
    font-weight: 450;
}

.inner-flex {
    justify-content: space-between;
    align-items: center;
}

/* Top champs */

.grid-bar {
    align-items: center;
    grid-template-columns: 1fr 100fr;
    gap: 15px;
}

.flex-bar .grid-bar {
    border-bottom: 1px solid var(--dark-light-color);
}

/* Tags */

.tags {
    justify-content: flex-start;
}

.tag {
    margin: 5px 10px;
    padding: 2px;
    font-size: 15px;
    background-color: rgb(240, 240, 240);
    opacity: 0.7;
    transition: all 0.7s ease-out;
    cursor: pointer;
}

.tag:hover {
    background-color: black;
    opacity: 1;
    transform: scale(1.1);
    color: #f1f1f1;
}

/* Footer */

.git-icon {
    position: relative;
    top: 15px;
}

.footer {
    background-color: var(--dark-color);
    padding-bottom: 5rem;
}

.footer-btn {
    display: inline-block;
    color: #fff;
    background-color: black;
    text-decoration: none;
    font-weight: 475;
    padding: 15px 20px;
    border: none;
    transition: background-color 0.5s ease-in;
}

.btn-on.footer-btn:hover {
    transform: scale(0.98);
    background-color: var(--dark-light-color);
    color: #000;
}

.created-by {
    margin-bottom: 0;
    color: #ccc;
    position: relative;
}

.created-by a{
    color: white;
    text-decoration: none;
}

.created-by a:hover{
    border-bottom: 1px solid var(--light-color);
}

/* Animations */
.header {
    overflow: hidden;
}

.to-right {
    position: relative;
    animation: toRight 2.5s ease-out;
}

.to-left {
    position: relative;
    animation: toLeft 2.5s ease-out;
}

.to-bottom {
    position: relative;
    animation: toBottom 1.5s ease-out;
}

.to-invisible {
    opacity: 1;
    animation:  toVisible 8s infinite both alternate ease-in;
}

.to-visible {
    opacity: 0;
    animation:  toInvisible 8s infinite both alternate ease-out;
}

@keyframes toLeft {
    0% {
        left: 100%;
    }

    100% {
        left: 0%;
    }
}

@keyframes toRight {
    0% {
        right: 100%;
    }

    100% {
        right: 0%;
    }
}

@keyframes toBottom {
    0% {
        bottom: 100%;
    }

    100% {
        bottom: 0%;
    }
}

@keyframes toInvisible {
    0% {
        opacity:1;
        z-index: 2;
    }

    45% {
      opacity:1;
    }

    55% {
      opacity:0;
    }

    75% {
        opacity: 0;
        z-index: -1;
    }

    100% {
      opacity:0;
      z-index: -1;
    }
}

@keyframes toVisible {
    0% {
        opacity:0;
        z-index: -1;
    }

    45% {
      opacity:0;
    }

    55% {
      opacity:1;
    }

    75% {
        opacity: 1;
        z-index: 2;
    }

    100% {
      opacity:1;
      z-index: 2;
    }
}

/* Media Queries */
@media screen and (max-width: 1000px) {
    .grid,
    .grid-main{
        grid-template-columns: 1fr;
    }

    .grid-bar {
        grid-template-columns: 1fr 100fr;
    }

    .flex-bar {
        flex-direction: column;
        
    }

    .grid-main {
        gap: 0px;
    }
    
}

@media screen and (max-width: 650px) {
    
    .main-container {
        padding: 0 25px;
    }

    .to-right {
        animation: toRight 1.5s ease-out;
    }
    
    .to-left {
        animation: toLeft 1.5s ease-out;
    }

}