body {
    font-family: "Source Sans Pro", sans-serif;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    background-repeat: no-repeat;
  }

 
  
  h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
  }
  
  .navbar {
    background-color: #333;
  }
  
  .navbar .navbar-brand {
    font-weight: bold;
  }
  
  .navbar .nav-link {
    font-weight: 500;
    color: #ffffff !important;
  }
  
  /* Korttityyli */

  
  
    .card {
      position: relative;
      height: 100%;
      background: #3c8bda; /* Fallback-väri */
      
      border: 1px solid #ccc;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
      transition: 0.3s;
      padding: 20px;
      margin: 50px;
      z-index: 1;
      min-height: 400px;
    }

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 12px 40px 0 rgba(0, 0, 0, 0.19);
}



  
  
  .card h5 {
    font-weight: bold;
    margin-bottom: 0;
  }


  .card-price {
    font-size: 3rem;
    font-weight: bold;
}

  
  .card-equal-height {
    display: flex;
    flex-direction: column;
  }
  
  .card-equal-height .card-body {
    flex-grow: 1;
  }
  
  /* Asiakaspalautteet */
  .customer-review {
    font-style: italic;
  }
  
  .customer-name {
    font-weight: bold;
    font-size: 1.2em;
  }
  
  .footer {
    background-color: #333;
    color: #ffffff;
    padding: 30px 0;
    margin-top: 5px;
  }
  
  .footer a {
    color: #ffffff;
    text-decoration: none;
  }
  
  .footer a:hover {
    color: #63c1ff;
    text-decoration: none;
  }
  


  /* Hakukentän tyyli */
.search-form {
  display: inline-flex;
}

.search-form input[type="text"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
  width: 100px;
  box-sizing: border-box;
}

.search-form input[type="submit"] {
  padding: 40px;
  background-color: #333;
  color: #fff;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}


* Otsikoiden tyylit */
.footer h5 {
  font-weight: bold;
  margin-bottom: 20px;
}

/* Linkkien tyylit */
.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  color: #cccccc;
  text-decoration: none;
}

/* Luetteloiden tyylit */
.footer ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

/* Tekstikeskityksen tyylit */
.text-center {
  text-align: center;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.content {
  flex: 1;
}



/* Navbar */
.navbar {
  background-color: #333;
  padding: 20px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 24px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin-left: 20px;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
}

.nav-menu li a:hover {
  color: #eee;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
}

.search-form {
  display: inline-flex;
}

.search-form input[type="text"] {
  padding: 1px;
  border: 1px solid #c93030;
  border-radius: 5px 0 0 5px;
  width: 200px;
  box-sizing: border-box;
}

.search-form input[type="submit"] {
  padding: 8px;
  background-color: red;
  color: #fff;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.search-form input[type="submit"]:hover {
  background-color: #63c1ff;
}


.navbar-button {
  background-color: #333;
  color: #fff;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  
}

.navbar-button:hover {
  background-color: #63c1ff;
}




/* Rekisteröitymislomake */
.form-container.register-form {
  background-color: #DDE5F4;
  padding: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  width: 85%;
  margin: 0 auto;
  transition: 0.3s;
}


/* Rekisteröitymislomakkeen rivit */
.form-container.register-form .form-row {
display: flex;
justify-content: space-between;
margin-bottom: 15px; /* Lisää tyhjää tilaa rivien välille */
}

/* Rekisteröitymislomakkeen kentät */
.form-container.register-form .form-field {
width: 48%;
}



.centered-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.form-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}

.btn-primary {
  background-color: #333;
  border-color: #333;
}


.btn-primary:hover {
  background-color: #636262 !important;
  border-color: #636262 !important;
}
/* Otsikko */
form h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px;
}

/* Kentät ja niiden nimet */
form label {
  display: block;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;
  margin-top: 15px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  margin-bottom: 15px; /* Lisää tyhjää tilaa kenttien välille */
  box-sizing: border-box;
  
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Lähetä-painike */
form button[type="submit"] {
  width: 100px;
  padding: 10px;
  background-color: #333;
  color: #fff;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 15px;
}

form button[type="submit"]:hover {
  background-color: #63c1ff;
}

/* Rekisteröitymislomakkeen rivit */
.form-container.register-form .form-row {
display: flex;
justify-content: space-between;
}

/* Rekisteröitymislomakkeen kentät */
.form-container.register-form .form-field {
width: 48%;
}



form button[type="submit"] {
padding: 10px;
font-family: "Source Sans Pro", sans-serif;
font-weight: bold;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 15px;
}

/* Register form submit button */
.form-container.register-form .register-button {
width: 100%;
background-color: #333;
color: #fff;
}

.form-container.register-form .register-button:hover {
background-color: #63c1ff;
}

.form-inline {
  margin-right: 50px; /* Muuta marginaalia oikealla */
}



/* Luo tili -osion tyyli */
.create-account-section {
    
    background-color:rgb(25, 25, 26);
    padding: 50px 0;
    text-align: center;
    padding-bottom: 60px;
    margin-top: 0px;
    margin-bottom: 50px;
  
}
  
  .create-account-section h2 {
    color: #ffffff;
    font-size: 2em;
    margin-bottom: 20px;
  }
  
  .create-account-section p {
    color: #ffffff;
    margin-bottom: 40px;
  }
  
  .create-account-section .create-account-btn {
    padding: 15px 30px;
    color: #ffffff;
    background-color: #63c1ff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .create-account-section .create-account-btn:hover {
    background-color: #489ad0;
  }
  


  .task--text {
    text-align: center;
    font-size: 24px;
    font-family: 'Roboto', sans-serif;
}

#upper {
    width: 100%;
    height: 70%;
    overflow: auto;
}
.CodeMirror {
    font-size: 25px;
    width: 90%;
    height: 100%;
    margin: 0 auto;
}
#handle {
    background: transparent;
    height: 10px;
    cursor: ns-resize;
    width: 100%;
}
#lower {
    width: 100%;
    height: 100%;
    overflow: auto;
}
#console {
    width: 89%;
    height: 60%;
    margin: 0px auto;
    background-color: #000;
    color: #fff;
    padding: 10px;
    font-size: 20px;
    overflow: auto;
    
}
.editor-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.button-container {
display: flex;
justify-content: center;
align-items: center;
}

.save-code-button {
 background-color: #007BFF; /* Sininen */
 border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
}

.run-code-button {
    background-color: #4CAF50; /* Vihreä */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
}


.example-run-container {
width: 70%;
margin-left: auto;
margin-right: auto;
margin-top: 30px;
margin-bottom: 30px;
}

.example-run {
text-align: left;
background-color: #f5f5f5;
border: 1px solid #ccc;
padding: 10px;
overflow-x: auto;
}

.example-run-container h3 {
margin-bottom: 10px;
}




.tutorial-container {
width: 80%;
margin-left: auto;
margin-right: auto;
margin-top: 30px;
margin-bottom: 30px;
background-color: #f5f5f5;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.15);
}


.tutorial {
text-align: left;
font-size: 18px;
color: #333;
}

.example-run-container h3 {
margin-bottom: 10px;
}

h3.tutorial-header {
text-align: left; /* keskittää otsikon */
margin-bottom: 1px; /* muuttaa otsikon ja containerin välistä etäisyyttä */
margin-left: 190px;
}