/* ==================================================
   Hiirikerhon harjoitussivusto
   custom.css
   ================================================== */
html {
    font-size: 100%;
}
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.25;
    background: #f2f4f7;
    color: #333;
}

.login-container {
    width: min(90%, 500px);
    margin: 80px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.profile-container {
    width: min(90%, 1300px);
    margin: 80px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
main.kurssimateriaalit {
    padding: 10px 3%;
}
.wrapper {
    width: 1300px;
    max-width: 100%;
    margin: 40px auto;
    background-color: #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
header.header {
    background: #333;
    color: #fff;
    padding: 10px 3%;
}
footer.footer {
    height: 80px;
    padding: 10px 3%;
}
p {
   font-size: 1.1rem;
   padding-bottom: 0.5rem;
}
h1 {
    font-family: "Alegreya Sans", sans-serif;
    margin-top: 0;
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: -0.2px;
}

h2 {
  font-family: "Alegreya Sans", sans-serif;
  font-size: 1.75rem;
    letter-spacing: -0.2px;
}

h3 {
  font-size: 1.3rem;
}

label {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

small {
  font-size: 0.875rem; 
    color: #012a06;

}
.content-article > ol > li, .material-content > ol > li {
    font-size: 120%;
    font-weight: 600;
}

.content-article > ol > li > ul, .material-content > ol > li > ul {
    padding: 5px 2% 20px 4%;
}

.content-article > ol > li > ul > li, .material-content > ol > li > ul > li {
    font-size: 100%;
    font-weight: 400;
}
.form-group {
    margin-bottom: 20px;
}


input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 13px;
    border: 0;
    border-radius: 6px;
    background: #333;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    opacity: 0.85;
}

.notice {
    margin-top: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-left: 4px solid #e60000;
    font-size: 14px;
}
.notice .success {
    margin-top: 10px;
    padding: 15px;
    background: #f5f5f5;
    border-left: 4px solid #007a10;
    font-size: 14px;
}

.notice p {
    margin-bottom: 0;
}

.error {
    color: #e60000;
    font-weight: bold;
    margin-bottom: 15px;
}
.course-box {
    display: flex;
    gap: 1.5rem; /* Luo siistin välin elementtien väliin ilman margin-kikkailua */
    align-items: flex-start; /* Tasaa elementit yläreunaan (tai 'center' pystysuuntaiseen keskitykseen) */
    border-radius: 1.5rem;
    background-color: #e0e0e0;
}

.course-box-image {
  flex: 0 0 20%; /* Ei kasva (0), ei kutistu (0), pohjaleveys 30% */
  max-width: 20%;
}

/* Varmistetaan, että kuva pysyy laatikon sisällä ja skaalautuu oikein */
.course-box-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.course-box-content {
  flex: 1; /* Täyttää automaattisesti kaiken jäljelle jäävän tilan (70% miinus gap) */
}
.course-box-link {
  width: 100%;
  display: block;
}
/*SISÄLTÖARTIKKELIT JA LINKIT ARTIKKELEIHIN*/
article.course-article {
    display: block;
    background-color: #dbd1ca;
    padding: 1px 2%;
    border-radius: 10px;
    border: 1px solid #000;
    margin: 40px 2%;
}
.course-article p a {
    text-align: right;
    display: block;
    width: fit-content;
    float: right;
    padding: 7px 20px;
    background-color: #c0c4dc;
    border-radius: 5px;
    margin-top: -15px;
    margin-right: -15px;
}