@tailwind base;
@tailwind components;
@tailwind utilities;
 
@layer base {
    :root {
        --background: 0 0% 100%;
        --foreground: 240 10% 3.9%;
    
        --muted: 240 4.8% 95.9%;
        --muted-foreground: 240 3.8% 46.1%;
    
        --popover: 0 0% 100%;
        --popover-foreground: 240 10% 3.9%;
    
        --card: 0 0% 100%;
        --card-foreground: 240 10% 3.9%;
    
        --border: 240 5.9% 90%;
        --input: 240 5.9% 90%;
    
        --primary: 240 5.9% 10%;
        --primary-foreground: 0 0% 98%;
    
        --secondary: 240 4.8% 95.9%;
        --secondary-foreground: 240 5.9% 10%;
    
        --accent: 240 4.8% 95.9%;
        --accent-foreground: 240 5.9% 10%;
    
        --destructive: 0 72.2% 50.6%;
        --destructive-foreground: 0 0% 98%;
    
        --ring: 240 10% 3.9%;
    
        --radius: 7px;
    }
}
 
@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}

:root {
    font-size: 16px;
}

html {
	font: normal 18px / 20px "DM Sans", "Montserrat", "Segoe UI", Arial, Tahoma, Verdana, sans-serif;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    cursor: default;
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
}

body {
    margin: 0;
    padding: 0;
}

.app-root {
    overflow-x: hidden;
}

/* Animations */

@keyframes spin {
  
    from {
      transform: rotate( 0deg );
    }
    
    to {
      transform: rotate( 360deg );
    }
  }
  
/* Space */
.space-bg {
    position: fixed;
    width: 400vw;
    height: 400vh;
    top: 50%;
    left: 50%;
    margin-top: -200vh;
    margin-left: -200vw;
    animation: spin 240s linear infinite;
    background-size: 240px;
    backface-visibility: visible;
    
    /* Had to base64 SVG background for FF compatibility */
    background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5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RkYiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiLz48cmVjdCB4PSIxNjEiIHk9IjU5IiBmaWxsPSIjRkZGRkZGIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIi8+PHJlY3QgeD0iMTM4IiB5PSI5NSIgZmlsbD0iI0ZGRkZGRiIgd2lkdGg9IjEiIGhlaWdodD0iMSIvPjxyZWN0IHg9IjE5OSIgeT0iNzEiIGZpbGw9IiNGRkZGRkYiIHdpZHRoPSIzIiBoZWlnaHQ9IjMiLz48cmVjdCB4PSIyMTMiIHk9IjE1MyIgZmlsbD0iI0ZGRkZGRiIgd2lkdGg9IjIiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjEyOCIgeT0iMTYzIiBmaWxsPSIjRkZGRkZGIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIi8+PHJlY3QgeD0iMjA1IiB5PSIxNzQiIGZpbGw9IiNGRkZGRkYiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiLz48cmVjdCB4PSIxNTIiIHk9IjIwMCIgZmlsbD0iI0ZGRkZGRiIgd2lkdGg9IjEiIGhlaWdodD0iMSIvPjxyZWN0IHg9IjUyIiB5PSIyMTEiIGZpbGw9IiNGRkZGRkYiIHdpZHRoPSIyIiBoZWlnaHQ9IjIiLz48cmVjdCB5PSIxOTEiIGZpbGw9IiNGRkZGRkYiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiLz48cmVjdCB4PSIxMTAiIHk9IjE4NCIgZmlsbD0iI0ZGRkZGRiIgd2lkdGg9IjEiIGhlaWdodD0iMSIvPjwvc3ZnPg==);
}

body * {
    touch-action: pan-y !important;
}

* {
	box-sizing: border-box;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
}
*::after,
*::before {
	box-sizing: border-box;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
}

/* Custom Scrollbars */
.sb::-webkit-scrollbar {
    width: 0.45em;
    background-color: rgba(255, 255, 255, 0.505);
}
.sb::-webkit-scrollbar-thumb {
    background-color: white;
    border-radius: 50px;
}

a.link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #65519e;
}
a.link:hover {
    text-decoration: underline;
}

.auth {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 9999999999999999999999999;
}
.auth .logo {
    height: 130px;
    width: 130px;
    background-image: url("/images/branding/logo-white-transparent.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 30px;
}
.auth input, .auth select {
    padding: 9px 20px;
    border-radius: 50px;
    background-color: #ffffff24;
    color: white;
    width: 100%;
}
.auth select option {
    color: black;
}
.auth .btn {
    display: block;
    width: 100%;
    background-color: #0e50d9;
    padding: 7px 0px;
    text-align: center;
    border-radius: 50px;
    font-size: 1.5rem;
}

.notfound .logo {
    height: 150px;
    width: 150px;
    background: url("/images/branding/logo-dark-transparent.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: auto;
    margin-top: -75px;
}

.header {
    position: fixed;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0px 50px;
    color: white;
    z-index: 10;
}
.header .logo {
    display: block;
    height: 75px;
    min-width: 75px;
    background: url(/images/branding/logo-white-transparent.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.header .menu {
    margin: auto;
}
.header .menu a {
    font-size: 1.2rem;
    margin: 0px 13px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}
.header .menu a:hover, .header .menu a.active {
    border-bottom: 2px solid #ffffff69;
}
.header .right .user-pane-btn {
    height: 46px;
    width: 46px;
}
.header .right .user-pane-btn svg {
    width: 100%;
    height: 100%;
    color: white;
}
.userpane-points {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 400;
}
.userpane-points svg {
    width: 22px;
    fill: #f1c456;
    margin-right: 5px;
}
.ai-btn {
    position: fixed;
    bottom: 40px;
    right: 50px;
    height: 60px;
    width: 60px;
    background: url(/images/ai-icon.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40px;
    border-radius: 100px;
    background-color: #2b2d31;
    cursor: pointer;
    z-index: 99;
    transition: background-color 200ms;
}
.ai-btn:hover {
    background-color: #36383d;
}

.root {
    position: relative;
    z-index: 1;
}

.root.home .section-2 {
    height: 100vh;
}

.root .topic-center {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
}
.root .p-center {
    margin: auto;
    max-width: 650px;
    text-align: center;
    color: #ffffffbd;
}
.root .center-content {
    max-width: 65%;
    margin-left: auto;
    margin-right: auto;
}
.root .subtopic {
    font-size: 2rem;
    font-weight: 500;
}

.root .links {
    padding-left: 20px;
}
.root .links a {
    display: block;
    font-size: 1.4rem;
    color: #00d2ff;
    font-weight: 500;
    margin: 5px 0px;
}

.footer {
    background-color: #0c0d12;
    padding: 50px 50px;
    position: relative;
    display: flex;
    margin-top: 30px;
}
.footer .content {
    width: 100%;
    font-size: 1.1rem;
    font-weight: 500;
}
.footer .astronaut {
    width: 100%;
}
.footer .astronaut .img {
    background: url(/images/astronaut.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    height: 300px;
    width: 300px;
    position: absolute;
    bottom: 0;
    left: 15%;
}

.ai-box input {
    width: 100%;
    background-color: #d4d4d4;
    font-size: 1.3rem;
    padding: 10px 15px;
    border-radius: 50px;
}