@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

body {
   font-family: 'Poppins', sans-serif;
}

h1,
p {
   font-family: 'Poppins', sans-serif;
   text-align: center;
   color: white;
}

a {
   font-family: 'Poppins', sans-serif;
   text-align: center;
   text-decoration: none;
   color: white;
   background-color: #00b37d;
   border-radius: 8px;
   transition: background-color 0.3s ease;
   padding: 8px;
}

a:hover {
   text-align: center;
   background-color: white;
   color: #00b37d;
   text-decoration: none;
}

#output-holder h1 {
   text-align: left;
}

#output p {
   color: black;
}

#info-window h1 {
   text-align: left;
   color: black;
}

#info-window p {
   color: black;
}

#question-select li {
   cursor: pointer;
}

button {
   padding: 10px 20px;
   font-size: 1rem;
   background-color: #00b37d;
   color: white;
   border: none;
   border-radius: 5px;
   cursor: pointer;
   transition: background-color 0.3s ease;
   width: 40%;
   margin-top: 2em;
   transition: transform 0.2s ease, background-color 0.3s ease;
}

.background {
   display: flex;
   background: linear-gradient(135deg, #003d2d, #008070);
   width: 100vw;
   height: 100vh;
   flex-direction: row;
   align-items: center;
   justify-content: center;
   overflow: hidden;
}

.right-container {
   display: flex;
   flex-direction: column;
   align-items: center;
   width: 50vw;
   height: 100vh;
   background-color: rgba(232, 233, 235, 255);
}

.landing-header {
   text-align: center;
   color: white;
}

.landing-header h1 {
   font-size: 5rem;
   margin-bottom: 10px;
}

.landing-header p {
   font-size: 1.5rem;
   margin-top: 0px;
}

.landing-buttons {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 20px;
   flex-wrap: nowrap;
   /* <- This is the key part */
}

.landing-buttons button {
   padding: 15px 30px;
   font-size: 1.7rem;
   border-radius: 8px;
   border: none;
   background-color: #00a86b;
   color: white;
   cursor: pointer;
   transition: 0.3s ease;
}

.landing-buttons button:hover {
   transform: scale(1.02);
   background-color: #00b37d;
}

button {
   font-family: 'Poppins', sans-serif;
   /* <- Add this */
   padding: 10px 20px;
   font-size: 1rem;
   background-color: #00b37d;
   color: white;
   border: none;
   border-radius: 5px;
   cursor: pointer;
   transition: background-color 0.3s ease, transform 0.2s ease;
   width: 40%;
   margin-top: 2em;
}

#header {
   display: flex;
   flex-direction: column;
   align-items: center;
}



#info-window {
   background-color: white;
   width: 50vw;
   height: 100vh;
   display: flex;
   flex-direction: column;
   align-items: center;
}

#question-title {
   text-align: center;
}

#select-background {
   display: flex;
   background: linear-gradient(135deg, #003d2d, #008070);
   width: 100vw;
   flex-direction: row;
   align-items: center;
   justify-content: center;
   height: calc(auto + 10vh);
}

#question-select {
   overflow: auto;
   height: 50vh;
   display: flex;
   align-items: center;
   flex-direction: column;
}

#question-select li {
   width: 80%;
}

#question-description {
   text-align: center;
   padding-left: 25px;
   padding-right: 25px;
}

#run {
   flex: 0.7;
}

#output {
   background-color: rgba(255, 255, 255, 255);
   color: rgba(0, 0, 0, 255);
   font-family: monospace;

   height: 100%;
   width: 100%;
   /* Set a fixed height for scrolling */
   display: flex;
   flex-direction: column;

   /* Elements start at the top left */
   align-items: flex-start;
   justify-content: flex-start;

   overflow: auto;
   position: absolute;

   /* Enable vertical scrolling */
   padding-left: 10px;
   gap: 4px;
}

#output p {
   height: auto;
   margin-top: 5px;
   font-size: large;
   font-family: monospace;
}

#output-holder {
   background-color: rgba(232, 233, 235, 255);
   padding: 0px;
   margin: 0px;
   padding-left: 3em;
   width: calc(100% - 3em);
   flex: 6;
}

#output-title {
   color: rgba(0, 0, 0, 255);
   font-family: monospace;
   height: 1em;
}

#code-area {
   width: 100%;
   display: flex;
   flex-direction: row;
   flex: 10;
}

#code-numbers {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: flex-start;
   background-color: rgba(232, 233, 235, 255);
   color: rgbargba(43, 175, 216, 255);
   line-height: normal;
   cursor: default;
   text-align: right;
   resize: none;
   user-select: none;
   overflow-wrap: normal;
   overflow: hidden;
   line-height: normal;
   font-size: large;
   resize: none;
   width: 3em;
   height: 100%;
   border: none;
   outline: none;
}

#editor {
   width: 100%;
   height: 100%;
   background-color: transparent;
   color: transparent;
   cursor: text;
   tab-size: 4;
   white-space: pre;
   overflow-wrap: normal;
   overflow: auto;
   overflow-y: scroll;
   line-height: normal;
   font-size: large;
   resize: none;
   border: none;
   outline: none;
   padding-left: 2px;
   caret-color: darkgray;
   box-sizing: border-box;

   grid-column: 1;
   grid-row: 1;
   z-index: 2;

   font-family: monospace;
}

#text-display {
   width: 100%;
   height: 100%;
   background-color: rgba(255, 255, 255, 255);
   color: rgba(0, 0, 0, 255);

   tab-size: 4;
   white-space: pre;
   user-select: none;
   line-height: normal;
   font-size: large;
   resize: none;
   overflow-wrap: normal;
   overflow: auto;
   overflow-y: scroll;
   border: none;
   outline: none;

   font-family: monospace;

   box-sizing: border-box;
   grid-column: 1;
   grid-row: 1;
   text-rendering: auto;
   letter-spacing: normal;
   word-spacing: normal;
   line-height: normal;
   text-transform: none;
   text-indent: 0px;
   text-shadow: none;
   display: inline-block;
   text-align: start;
   appearance: auto;
   -webkit-rtl-ordering: logical;
   cursor: text;
   column-count: initial !important;
   margin: 0em;
   border-width: 1px;
   border-style: solid;
   border-color: light-dark(rgb(118, 118, 118), rgb(133, 133, 133));
   border-image: initial;
   padding: 2px;
   white-space: no-wrap;
   z-index: 1;
   border: none;
   outline: none;
}

#editor-holder {
   width: 100%;
   flex: 2;
   display: grid;
}

.red {
   color: red !important;
}

.green {
   color: green !important;
}

.keyword {
   color: rgba(0, 0, 255, 255);
}

.string {
   color: rgba(195, 99, 21, 255);
}

.number {
   color: rgba(9, 149, 185, 255);
}

.comment {
   color: rgba(0, 128, 0, 255);
}

.operator {
   color: rgba(166, 108, 250, 255);
}

.bracket {
   color: rgba(236, 193, 109, 255);
}

ul {
   list-style-type: none;
   padding: 0;
   margin: 0;
   text-align: left;
   color: white;
   font-size: 1.2rem;
}

ul li {
   background-color: rgba(30, 30, 46, 0.8);
   margin: 10px 0;
   padding: 10px 15px;
   border-radius: 8px;
   transition: transform 0.2s ease, background-color 0.3s ease;
}

ul li:hover {
   background-color: rgba(50, 50, 70, 0.9);
   transform: scale(1.02);
}

h2 a {
   position: fixed;
   top: 10px;
   left: 10px;
}