html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
        
body {
    background: url("../images/background-stars_two.jpg") no-repeat center center fixed;
    background-size: cover;
    background-color: black;
    color: white;
    font-family: "Barlow Semi Condensed", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Homepage styles */
.choose-headline {
    position: absolute;
    top: 47%; 
    left: 50%; 
    transform: translateX(-50%); 
    width: auto; 
    text-align: center;
    color: white;
    font-size: 32px;
    z-index: 5;
    text-shadow: 4px 4px 12px black;
}

.background-wrapper {
    display: flex;
    width: 100%;
    position: relative;
}

.background-wrapper .background-image {
    width: 50%;
    height: 650px;
    object-fit: cover;
}

.icon-row {
    position: absolute;
    bottom: 50px; /* distance from bottom of images */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 80px;
    z-index: 5;
}

.circle {
    width: 120px;
    height: 120px;
    background: rgba(0,0,0,0.55); /* lowers opacity */
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.icon-circle-button {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-circle-button:hover {
    transform: scale(0.9);
}

.icon-circle-button img {
    width: 60px;
    height: 60px;
    z-index: 2;
}

.icon-label {
    margin-top: 20px;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.025em;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 4px 4px 12px black;
}

.reflection {
    text-align: center;
}

/* Baseline styles */
h1 {
    margin-top: 20px;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 700;
    font-size: 36px;
    letter-spacing: 0.025em;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
}

.hero-title, .choose-headline {
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 700;
    font-size: 36px;
    letter-spacing: 0.3em;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
}

h2 {
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 600;
    font-size: 26px;
    letter-spacing: 0.025em;
    color: #f9dd5e;
    text-decoration: none;
    text-transform: uppercase;
}

p {
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.2;
    color: white;
}

.basic-image {
    width: 100%;
    max-width: 1000px;
}

main, .choose-your-side {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.content-box {
    background: #1d1e1f;
    padding: 50px 80px;
}

.buttons {
    margin-top: 20px;
}

.btn {
    background: white;
    padding: 15px 25px;
    margin: 10px;
    display: inline-block;
    text-decoration: none;
    color: black;
    border-radius: 10px;
    font-size: 20px;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.random-character-img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    object-position: top;
    border-radius: 3px;
    margin-top: 20px;
    background: linear-gradient(45deg, #2663a4, #87131c);
}

/* Character Cards */
.card {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 1000px;
    margin: 10px 0;
    gap: 20px;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #404040;
    background-color: black;
    position: relative;
    z-index: 1;
}

.card-text {
    flex: 1;
    padding: 10px;
}

.card-img-wrapper {/* thanks YouTube */
    width: 300px;
    height: 400px;
    border-radius: 3px;
    overflow: hidden;
    background: linear-gradient(45deg, #2663a4, #87131c);
    z-index: 1;
}

.card-img-wrapper img { /* thanks YouTube */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.card img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    object-position: top;
    border-radius: 3px;
}

.result {
    margin-top: 30px;
}

.slideshow {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* thanks YouTube */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; 
    background: none; 
    border: none;
    outline: none;
    padding: 0;
}

.nav-btn:hover {
    transform: translateY(-50%) scale(1.2); /* thanks YouTube */
}

.nav-btn img {
    width: 100%;
    height: 100%;
}

.prev {
    left: -55px;
    }

.next {
    right: -55px;
}

@media (max-width: 700px) {
    .prev, .next {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: -70px;
        transform: translateY(0); /* thanks YouTube */
    }
}

/* Character Cards Mobile */
@media (max-width: 700px) {
.card {
    flex-direction: column;
    width: 100%;
}

.slideshow {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
}

.nav-btn {
    top: auto;
    bottom: -50px;
    }
}

/* Destiny reveal styles */
.fate-app {
    text-align: center;
}

.fate-btn {
    font-weight: bold;
    font-size: 16px;
    padding: 15px 60px;
    border-radius: 30px;
    display: inline-block;
    background: #f9dd5e;
}

.fate-btn:hover {
    background: #e7c85b;
}

.fate-app .reveal-area h2 {
    margin: 0;
    padding: 10px 0;
    font-size: 22px;
    animation: fadeIn 0.6s ease forwards;
}

.fate-app .reveal-area .random-character-img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    object-position: top;
    margin: 0 auto;
    display: block;
    animation: fadeIn 0.6s ease forwards;
}

.fate-app .reveal-area {
    width: 320px;
    height: 470px;
    margin: 20px auto;
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* Navigation styles */
.brand-header {
    text-align: center;
    margin: 20px;
}

.header-logo {
    display: inline-block;
    height: 20px;
}

.menu-section {
	width: 100%;
    padding-bottom: 0;
	margin-bottom: 0;
}

.menu ul {
	display: flex;
    justify-content: center;
    gap: 10px;
    list-style-type: none;
	padding: 0;
	margin: 0;
	background: #1d1e1f;
}

.menu li a {
	display: block;
	text-decoration: none;
	color: white;
	padding: .6em 1em;
}

.menu li a:hover {
	background: #404040;
}

.main-header-section {
    max-width: 1000px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.single-nav ul li a { 
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.025em;
    color: white;
    text-decoration: none;
}

/* Navigation styles for Single Level Menu */
@media screen and (min-width: 30em) {
 
    .single-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .single-nav li {
        flex: 1 0 auto;
        text-align: center;
    }
}

/* Header Slideshow - borrowed my The Bear project */
.header-slideshow {
    position: relative;
    width: 100%;
    max-width: 1000px; 
    height: 600px; 
    margin: 0 auto;
    overflow: hidden;
}

.header-slideshow .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeCycle 15s infinite;
}

.header-slideshow .slide:nth-child(1) {
    animation-delay: 0s;
}
.header-slideshow .slide:nth-child(2) {
    animation-delay: 5s;
}
.header-slideshow .slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes fadeCycle {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -200%);
    text-align: center;
    font-size: 2.5rem;
    text-shadow: 4px 4px 12px black;
    margin: 0;
    width: 100%;
    z-index: 2;
}

/* Gallery Slideshow */
#gallery {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    height: 500px;
    overflow: hidden;
}

#gallery .gallery-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

#gallery .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    padding: 0;
    z-index: 10;
}

#gallery .prev {
    left: 10px;
}

#gallery .next {
    right: 10px;
}
