@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.5;
}

.container {
    width: 100%;
    margin: auto;
}

/* Navigator */
.top {
    background: url(https://lordsrealm.in/topics/nav.jpg) no-repeat;
    background-attachment: fixed;
    background-position: center; 
    background-size: cover;
    width: 100%;
} 

.topList {
    display: flex;
    justify-content: space-between;
    margin-bottom: 70px;
}

.brand h1 {
    font-size: 1.5rem;
    letter-spacing: 0.7rem;
    margin: 15px;

    background: rgba(255, 255, 255, 0.3);
    padding: 5px 5px 5px 15px;
    border-radius: 5px;
}

ul { 
    font-family: 'Open Sans', sans-serif;
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 16px;
    padding-top: 20px;
    margin-right: 30px;
}

.main-nav a {
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    padding-bottom: 5px;
    margin: 10px 30px;

    transition: border-bottom 0.5s;
	transition: opacity 0.5s;
}

.main-nav a:hover {
    cursor: pointer;
    font-weight: 700;
    color: #fff;
 
    opacity: 0.7;
    border-bottom: 1px solid #fff;
    text-decoration: none;
 }

 .dark {
    font-weight: 700;
    border-bottom: 2px solid #fff;
}

/* Cards */
.wrapper {
    width: 80%;
    margin: auto;
}


.cardTitle {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1rem;
    display: inline-block;

    color: #fff;
    background: seagreen;
    border-radius: 5px;
    margin: 10px;
    padding: 5px;
    padding-left: 25px;
}

.cards {
    padding-bottom: 130px;
    display: grid;
    grid-gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    justify-content: center;
}

.card {
    font-weight: 300;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    color: #fff;
    text-align: left;
    padding: 20px;
    min-height: 270px;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;

}

.card h1 {
    margin: 10px;
}

.card img {
    max-width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
    margin-top: auto;   
}

.card a {
    text-decoration: none;
    color: #fff;
    background: seagreen;
    border-radius: 2px;
    padding: 5px; 

    transition: background 0.5s;

}

.card a:hover {
    background: rgb(77, 163, 255); 
}

#scrollToTopButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    color: white;
    border: 1.2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.2s;
}
  
#scrollToTopButton:hover {
    background-color: rgba(255, 255, 255, 0.1);
}



/* Social */ 
.social {
    background: #3a4052;
    padding: 30px;
    color: #fff;
    text-align: center;

    margin: auto;
}

.social h2 {
    font-size: 20px;;
    margin-bottom: 10px;
}

.social a {
    font-size: 14px;
    color: #fff;
}

.social a:hover {
    opacity: 0.7;
}

/* Media Query */
@media(max-width: 797px) {
    .topList {
        display: flex;
        flex-direction: column;
    }

    .brand h1 {
        text-align: center;
    }

    ul {
        display: flex;
        justify-content: center;
    }

}