/** 
 * \file style.css 
 * Tämä on hakemukseen liittyvä css-stylesheet-tiedosto. 
 */ 

/*
    Tyylittelyssä otettu inspiraatiota suoraan soihdun kotisivuilta ja myös JYY:n sivuilta.
    Pitäisi toimia myös mobiililla hyvin.
    - vs
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #000000;
    background: #469293;
    background: linear-gradient(184deg, rgba(70, 146, 147, 1) 0%, rgba(41, 100, 113, 1) 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
    color: #296471;
    margin-bottom: 30px;
    font-size: 2em;
}

h2 {
    color: #296471;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2c9173;
    font-size: 1.5em;
}

fieldset {
    border: none;
    margin-bottom: 30px;
    padding: 0;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.txfield {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 5px;
}

.txfield:focus {
    outline: none;
    border-color: #2c9173;
    box-shadow: 0 0 0 3px rgba(44, 145, 115, 0.1);
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

input[type="radio"] + label,
input[type="checkbox"] + label {
    display: inline;
    margin-top: 0;
    margin-left: 5px;
    cursor: pointer;
    font-weight: normal;
}

.button {
    display: inline-block;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 40px;
    text-decoration: none;
    background-color: #2c9173;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 20px;
}

.button:hover {
    transition: 0.3s ease-in-out;
    background-color: #238661;
}

.logo {
    display: block;
    margin: 0 auto 20px auto;
}

::-webkit-scrollbar {
    background-color: #2c9173;
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #fff;
    border-radius: 5px;
}

::webkit-scrollbar-thumb:hover {
    background-color: rgba(44, 145, 115, 0.7);
}

input[type="submit"].button {
    width: 100%;
    font-size: 20px;
}

a {
    color: #2c9173;
    text-decoration: none;
    font-style: italic;
    transition: color 0.3s;
}

a:hover {
    color: #296471;
    text-decoration: underline;
}

p {
    margin: 15px 0;
    color: #555;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    form {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 1.2em;
    }
    
    .txfield {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    form {
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 1.3em;
        margin-bottom: 20px;
    }
    
    .button {
        padding: 12px 30px;
        font-size: 16px;
    }
}