* {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
   transition: all 0.3s ease-in-out;
}

body {
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   min-height: 100vh;
   background: linear-gradient(135deg, #00D4FF 0%, #001014 100%);
}

main {
   text-align: center;
   background: white;
   padding: 25px;
   border-radius: 16px;
   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
   gap: 25px;
   width: 85%;
   max-width: 450px;
}

nav {
   width: 3rem;
   height: 3rem;
   background: #001014;
   margin: 10px;
   border-radius: 100%;
   aspect-ratio: 1;
   display: flex;
   justify-content: center;
   align-items: center;
   color: white;
   font-size: 1.5rem;
   padding: 10px;
   position: fixed;
   top: 0;
   right: 0;
   z-index: 1000;
   transition: all 300ms;

   &:hover {
      background: #0ea5e9;
      /* color: #001014; */
   }
}


.fact-info {
   margin-top: 20px;
   width: 100%;
   background-color: #00BFFF;
   border-radius: 8px;
   padding: 15px;
}

.factDisplay {
   font-size: 1.4rem;
   text-rendering: optimizeLegibility;
   text-justify: auto;
   font-weight: 500;
   text-wrap: wrap;
   overflow-wrap: break-word;
   line-height: 1.4;
   user-select: all;
   &::selection {
      background: white;
      color: #001014;
   }
}

.loader {
   width: 50px;
   padding: 8px;
   aspect-ratio: 1;
   border-radius: 50%;
   background: #ffffff;
   display: none;
   --_m:
      conic-gradient(#0000 10%, #000),
      linear-gradient(#000 0 0) content-box;
   -webkit-mask: var(--_m);
   mask: var(--_m);
   -webkit-mask-composite: source-out;
   mask-composite: subtract;
   animation: l3 0.5s infinite linear;
   margin: 10px auto;
}

@keyframes l3 {
   to {
      transform: rotate(1turn)
   }
}

.buttonContainer {
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: 100%;
   gap: 10px;
}

button {
   padding: 12px 24px;
   font-size: 1.1em;
   cursor: pointer;
   user-select: none;
   border-radius: 8px;
   outline: 0;
   border: none;
   color: white;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
   background: linear-gradient(135deg, #00D4FF 0%, #00BFFF 100%);

   &:hover {
      background: linear-gradient(135deg, #00BFFF 0%, #001014 100%);
   }
}

.arrow {
   font-size: 2rem;
   border-radius: 50%;
   padding: 5px;
   text-align: center;
   vertical-align: middle;
   width: 3rem;
   aspect-ratio: 1/1;
}

#getButton {
   flex-grow: 1;
}