* {
    /* border: 1px solid rgb(185, 20, 20); */
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;  
}

/*global colours*/

:root {
    --background-color: rgb(11, 10, 11);
    --background-color-card: rgb(243, 239, 223);
    --button-color: white;
    --text: white;
    --alt-text: black;
    --footer: rgb(243, 239, 223);
    --accent-01: rgb(204, 45, 210);
    --accent-02: rgb(52, 137, 212);
}

/*master*/

html body {
    margin: 0%;
    padding: 0%;
}

body {
    /* background-color: var(--background-color); */
    background-image: url(../media/background.jpg);
    background-color: rgba(15, 15, 15, 0.75);
    background-blend-mode: multiply;
}

h1, h2, h3, p {
    color: var(--text);
    text-align: center;
}

h1 {
    font-size: 50px;
    letter-spacing: 2px;
}

h2 {
    font-size: 40px;
    padding: 1.5% 0 .5% 0;
    text-align: center;
    letter-spacing: 2px;

}

h3 {
    font-size: 30px;
    padding: 2%;
    text-align: center;
    letter-spacing: 2px;
}

/*navigation*/

header {
    background-color: var(--background-color);
    border-radius: 0px 0px 20px 20px;
    /* border: 5px solid green; */
}

header img {
    display: inline-block;
    width: auto;
    max-width: 200px;
    height: auto;
    padding: 0px;
    margin: 20px;
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 10px;
}

ul li a{
    text-decoration: none;
    font-size: 1.7rem;
    margin: 1.5rem;
}

a:link {
    color: var(--text);
}

a:visited {
    color: var(--text);

}

a:hover {
    color: var(--accent-01);
}

a:active {
    color: var(--accent-01);
}

/*hero section*/

.hero {
    display: flex;
    min-height: 75vh;
    background-image: url(../media/hero_image.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: var(--background-color);
    justify-content: center;
    align-items: center;
    border-radius: 45px;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 100px;
    letter-spacing: 40px;
    margin-right: -40px;
}

.hero-content h2 {
    font-style: italic;
}

.hero-content .button {
    font-size: 28px;
    padding: 15px 30px;
    background-color: var(--button-color);
    color: var(--alt-text);
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.hero-content .button:hover {
    transform: scale(1.1);
    background-color: var(--accent-01);
    color: var(--text);
}

/* synopsis */

.synopsis {
    display: flex;
    flex-direction: column;
    width: 50%;
    align-items: center;
    padding: 10px;
    margin: 2% auto;
    background-color: var(--background-color-card);
    border-radius: 10px;
    /* border: 10px solid green; */
}

.synopsis h2 {
    width: 100%;
    text-align: center;
    color: var(--alt-text);
}

.synopsis p {
    width: 100%;
    text-align: center;
    font-size: 18px;
    padding: 25px;
    color: var(--alt-text);
}

/* watch more section */

.watch-more {
    display: flex;
    margin: 1% 0 4% 0;
    /* border: 10px solid green; */
}

.watch-more-content {
    display: flex;
    flex-direction: row;
    /* border: 10px solid purple */
}

.watch-more-content img {
    display: flex;
    justify-items: center;
    width: 100%;
    height: auto;
    border-radius: 45px;
    padding: 0 5% 0 5%;
    transition: transform 0.3s ease;
}

.watch-more-content img:hover {
    transform: scale(1.05);
}

/* character grid */

.character-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    /* border: 20px solid rgb(88, 231, 36); */
    padding: 20px 60px 60px 60px;
}

.c-grid-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
}

.c-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*cards*/

.master-container {
    display: grid;
    grid-template-columns: repeat(3, 440px);
    max-width: 2200px;
    margin: 0 auto;
    gap: 20px;
    /* border: 5px solid rgb(88, 231, 36); */
    padding: 20px 20px 200px;
    justify-content: center;
}

.card-container {
    background-color: var(--background-color-card);
    display: flex;
    flex-direction: column;
    /* width: 100%; */
    max-width: 440px;
    margin: 0 auto;
    border-radius: 40px;
    /* border: 5px solid rgb(36, 208, 231); */
}

.image-container {
    position: relative;
    aspect-ratio: 1 / 1;
    padding: 10px;
}

.image-container img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    position: absolute;
    inset: 0;
    object-fit: cover;
    border-radius: 40px;
    padding: 10px;
}

.image-container .hover-img {
    display: none;
}

.image-container:hover .default-img {
    display: none;
}

.image-container:hover .hover-img {
    display: block;
}

.card-text {
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 700px;
    text-align: center;
    /* border:10px solid purple; */
    align-items: center;
}

.card-text a {
    display: flex;
    flex-direction: column;
    text-align: center;
    max-width: 100%;
    padding: 2%;    
    overflow-wrap: break-word;
    font-size: 3rem;
    font-weight: bolder;
    color: var(--alt-text);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.card-text a:hover {
    transform: scale(1.05);
    text-decoration: underline;
}

.card-text h3 {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-02);
}

.card-text p {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 10;
    color: var(--alt-text);
    padding: 5%;
}

/*footer*/

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1% 0 2% 0;
    background-color: var(--footer);
    border-radius: 20px 20px 0px 0px;
}

footer img {
    display: inline-block;
    width: 15%;
    height: auto;
    padding: 0px;
    margin: 20px;
}

footer p {
    color: var(--alt-text);
}