
@import url('https://fonts.googleapis.com/css2?family=Averia+Sans+Libre&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: "Averia Sans Libre", sans-serif;
    background-color: #d1c9b2;


}


.section {
    height: 100vh;
    width: 100%;
    display: none; /* Hide all sections initially */
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    color: #cbbfd9; /* Set the text color */
	
}

.section:first-child {
    display: flex; /* Show the first section by default */
}


.section .text {
    position: relative;
    display: inline-block;
    background: conic-gradient(from 0deg, #d1c9b2, #7b8ead, #ab9ab3, #c5b0d1, #ab9ab3, #d1c9b2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    z-index: 1;
    
    /* Move animation to background-image instead of the entire background property */
    animation: spin-gradient 2s linear infinite;
}

.section .text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);
}

@keyframes spin-gradient {
    from {
        /* Only animate the background-image */
        background-image: conic-gradient(from 0deg, #d1c9b2, #7b8ead, #ab9ab3, #c5b0d1, #d1c9b2);
    }
    to {
        background-image: conic-gradient(from 360deg, #d1c9b2, #7b8ead, #ab9ab3, #c5b0d1, #d1c9b2);
    }
}

.section-image {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: auto;
}

.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    font-size: 18px;
    background-color: #323;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1000;
	border-radius: 50px;
}

#leftBtn {
    left: 20px;
	background-color: #98a0b8;
	color: #6f7eb3;
}

#rightBtn {
    right: 20px;
	background-color: #98a0b8;
	color: #6f7eb3;
}

        .section-1 {
            background-image: url('https://upload.wikimedia.org/wikipedia/commons/d/da/Opening_of_South_Atlantic_126_Ma.png');
			    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	background-color: inherit ;
	background-blend-mode: hue;
        }

        .section-2 {
            background-image: url('https://upload.wikimedia.org/wikipedia/commons/d/d6/Geology_of_Asia_175Ma.jpg');
			    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	background-color: inherit ;
	background-blend-mode: hue;
        }

        .section-3 {
            background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Pangaea_200Ma.jpg/800px-Pangaea_200Ma.jpg?20191231100310');
			    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	background-color: inherit ;
	background-blend-mode: hue;
        }

        .section-4 {
            background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/c8/Panthalassa_250Ma.jpg/800px-Panthalassa_250Ma.jpg?20200202141712');
			    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	background-color: inherit ;
	background-blend-mode: hue;
        }

        .section-5 {
            background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Geology_of_Asia_400Ma.jpg/480px-Geology_of_Asia_400Ma.jpg');
			    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	background-color: inherit ;
	background-blend-mode: hue;
        }

        .section-6 {
            background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/cb/Gondwana_420_Ma.png/612px-Gondwana_420_Ma.png?20180303080742');
			    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	background-color: inherit ;
	background-blend-mode: hue;
        }

        .section-7 {
            background-image: url('https://upload.wikimedia.org/wikipedia/commons/5/5a/Rodinia_900Ma.jpg');
			    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	background-color: inherit ;
	background-blend-mode: hue;
        }
