* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}
nav {
    background: #2c3e50;
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
label.logo {
    color: white;
    font-size: 35px;
    line-height: 80px;
    padding: 0 100px;
    font-weight: bold;
}
nav ul {
    float: right;
    margin-right: 20px;
    list-style: none;
}
nav ul li {
    display: inline-block;
    line-height: 80px;
    margin: 0 5px;
}
nav ul li a {
    color: #FFFFFF;
    font-size: 17px;
    padding: 7px 13px;
    border-radius: 3px;
    text-transform: uppercase;
    text-decoration: none;
}
a.active,a:hover {
    background: #1b9bff;
    transition: .5s;
}
.checkbtn {
    font-size: 30px;
    color: white;
    float: right;
    line-height: 80px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
}
#check {
    display: none;
}
@media (max-width: 952px) {
    label.logo {
        font-size: 30px;
        padding-left: 50px;
    }
    nav ul li a {
        font-size: 16px;
    }
}
@media (max-width: 858px) {
    .checkbtn { 
        display: block;
    }
    nav ul {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #2c3e50;
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all .5s;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-right: 0;
    }
    nav ul li {
        display: block;
        margin: 20px 0;
        line-height: normal;
    }
    nav ul li a {
        font-size: 20px;
        padding: 15px 0;
        display: block;
        width: 100%;
        max-width: 200px;
    }
    a:hover,a.active {
        background: #1b9bff;
        color: #fff;
    }
    #check:checked ~ ul {
        left: 0;
    }
}

section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}
form {
    background-color: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}
form div {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 18px;
}
input[type="text"],
input[type=password],
input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
}
input[type="text"]:focus,
input[type=password]:focus,
input[type="number"]:focus {
    border-color: #0082e6;
    box-shadow: 0 0 5px rgba(0, 130, 230, 0.5);
    outline: none;
}
button {
    width: 100%;
    padding: 12px;
    background-color: #0082e6;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition : background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}
button:hover {
    background-color: #006bbd;
    transform: translateY(-1px);
}
button:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}


.button-group button {
    width: auto; 
    flex-grow: 1;
}

/* Set specific style for the Rinnankytkentä button */
.button-group button:nth-child(2) {
    background-color: #1b9bff;
}


.result-display {
    padding: 20px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    background-color: #f0f4f7;
    color: #2c3e50;
    border: 2px solid #ddd;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 25px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    position: relative;
    background: #2c3e50;
    height: auto;
    width: 100vw;
    font-family: "Poppins", sans-serif;
    padding-top: 40px;
    color: #fff;
    margin-top: auto;
}
.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}
.footer-content h3 {
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: capitalize;
    line-height: 3rem;
}
.footer-content p {
    max-width: 500px;
    margin: 10px auto;
    line-height: 28px;
    font-size: 14px;
}
.socials {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 3rem 0;
}
.socials li {
    margin: 0 10px;
}
.socials a {
    text-decoration: none;
    color: #fff;
}
.socials a i {
    font-size: 1.1rem;
    transition: color .4s ease;
}
.socials a:hover i {
    color: aqua;
}

.footer-bottom {
    background: #0082e6;
    width: 100vw;
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 14px;
    word-spacing: 2px;
    text-transform: capitalize;
}
.footer-bottom span {
    text-transform: uppercase;
    opacity: .4;
    font-weight: 200;
}