/* --- Joonista Maja --- */
.house-wrapper {
    width: 900px;
    margin: 60px auto;
    padding: 30px;
    background-color: #fffefc;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.house-wrapper h1 {
    text-align: center;
    margin-bottom: 20px;
}

.house-wrapper canvas {
    display: block;
    margin: 0 auto 30px;
    border: 2px solid black;
    background-color: rgba(143, 215, 241, 0.63);
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
}

.house-wrapper .button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
}

.house-wrapper input[type="button"] {
    background-color: lightgreen;
    border: 2px solid black;
    color: black;
    font-weight: bold;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    text-align: center;
}

.house-wrapper input[type="button"]:hover {
    background-color: green;
    transform: scale(1.05);
}

.button-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    padding: 10px;
}

.button-grid input[type="button"] {
    background-color: lightgreen;
    border: 2px solid #444;
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    min-width: 120px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.button-grid input[type="button"]:hover {
    background-color: #59c459;
    transform: scale(1.05);
}

/* --- Valuutakalkulaator --- */
.currency-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background-color: #f7f7f7;
    border-radius: 20px;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.currency-wrapper h1 {
    text-align: center;
    width: 100%;
    font-size: 36px;
    color: #337ab7;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.currency-wrapper #sum {
    width: 300px;
}

.left-section {
    flex: 1;
    text-align: center;
}

.left-section img {
    max-width: 100%;
    width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.right-section {
    flex: 2;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.right-section label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.right-section input[type="number"] {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    width: 100px;
}

.radio-group {
    margin-bottom: 20px;
}

.radio-group strong {
    display: block;
    margin-bottom: 10px;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

.radio-group label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
}

input[type="submit"] {
    background-color: #f5d7aa;
    border: 2px solid #aaa;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #f0c97a;
}

#infoBox {
    padding: 10px;
    border-radius: 10px;
    color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

#result {
    padding: 10px;
    background-color: #e2f0ff;
    border-radius: 10px;
    color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}