* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: Arial,Helvetica,sans-serif;
    color: #000;
}
html:lang(FI) {
    word-break: break-all;
}
body {
    height: 100vh;
}

header {
    height: 100px;
}

footer {
    min-height: 115px;
}

main {
    height: auto;
}

.container {
    max-width: 720px;
    margin: 0 auto;
}

.container.large {
    max-width: 1090px;
    margin: 0 auto;
}
/*changes for preference*/
.unsubscribe-text{
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
}
.btn-primary-white {
    background-color: transparent;
    border-radius: 25px;
    -webkit-box-shadow: 0 0 20px #D1D3D5;
     box-shadow: 0 0 20px #D1D3D5;

}
.preference-label .text-small{
    font-size: 15px;
}
/*end*/
/*radio-button*/
.switch{
    position: relative;
    display: block;
    margin: 0 15px 0 auto;
}
.switch input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1px solid #a8a8a9;
    box-shadow: inset 0 2px 5px #D1D3D5;
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
.switch input:checked ~.checkmark:after{
    display: block;
}
.switch .checkmark:after{
    width: 4px;
    height: 7px;
    border: solid #C41230;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    left: 5px;
    top: 2px;
}
/*radio-button-end*/
.btn {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-content: center;
    /*min-height: 42px;*/
    padding: 12px 40px;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    width: fit-content;
    color:black;
}

.btn.btn-primary {
    background: #C41230;
    color: #fff;
}

.btn.btn-primary:disabled {
    background: #cccccc;
    color: #666666;
}

.btn.btn-secondary {
    background: #fff;
    color: #000;
    box-shadow: 0 0 14px #d0d0d0;
}

.btn-group {
    display: flex;
    justify-content: center;
    align-content: center;
    margin-top: 20px;
}

.btn-group .btn:not(:only-child) {
    margin: 0 10px;
}

.line {
    width: 30px;
    height: 4px;
    background-color: #000;
    margin: 25px auto 0 auto;
    margin-bottom: 25px;
}

.unsubscribe-page .line,
.thankyou-page .line {
    margin: 25px auto;
}

.preference-page .line {
    margin-bottom: 25px;
}

h1 {
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.line + p,
h1 + p {
    font-size: 20px;
    margin-bottom: 20px;
}

h1 + p {
    margin-top: 20px;
}

.bordered-box {
    border: 11px solid #F2F2F2;
    padding: 50px 70px;
    margin-bottom: 40px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-content: center;
    text-align: center;
    min-width: 720px;
}

.social-list {
    list-style-type: none;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    margin-top: 20px
}

.social-list li {
    margin: 0 5px;
}

/* ------------------ */
/* page header styles */
/* ------------------ */

.page-header {
    padding-top: 70px;
}

.page-header > .container {
    display: flex;
    flex-flow: column nowrap;
}

.page-header * {
    display: flex;
    justify-content: center;
    align-content: center;
    text-align: center;
}

/* ------------------- */
/* content page styles */
/* ------------------- */
.page-content {
    margin: 50px 0 ;
    min-height: calc(100vh - 315px);

    /* margin: 55px 0;
    min-height: calc(100vh - 280px); */
}

/* ----------------------- */
/* preferences form styles */
/* ----------------------- */
.preferences-form fieldset {
    border: 11px solid #F2F2F2;
    padding: 40px 45px;
    margin-bottom: 40px;
}

.preferences-form fieldset .form-header {
    padding-bottom: 25px;
    margin-bottom: 35px;
    border-bottom: 1px solid #D1D3D5;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
}

.preferences-form fieldset .form-header .preference-label {
    margin-right: 20px;
    font-size: 15px;
}

.preferences-form .input-group {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-content: flex-start;
}

.preferences-form .input-group:not(:last-child) {
    margin-bottom: 25px;
}

.preferences-form .input-group > svg {
    margin-right: 15px;
    width: 50px;
}

.preferences-form .input-group .preference-label {
    display: flex;
    flex-flow: column nowrap;
    width: 70%;
}

.preferences-form .input-group .preference-label strong {
    font-size: 20px;
    margin-bottom: 7px;
    line-height: 1;
}

.preferences-form .input-group .switch {
    margin-left: auto;
}

.preferences-form .btn-submit {
    margin: 0 auto;
}

/* ------ switch toggle button------ */
/* The switch - the box around the slider */
.preferences-form .input-group .switch {
    position: absolute;
    display: inline-block;
    width: 5px;
    height: 22px;
    bottom: 0px;
}

/* Hide default HTML checkbox */
.preferences-form .input-group .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.preferences-form .input-group .switch input:checked {
    background: red;
}

/* The slider */
.preferences-form .input-group .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.preferences-form .input-group .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.preferences-form .input-group input:checked + .slider {
    background-color: #C41230;
}

.preferences-form .input-group input:focus + .slider {
    box-shadow: 0 0 1px #C41230;
}

.preferences-form .input-group input:checked + .slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

/* Rounded sliders */
.preferences-form .input-group .slider.round {
    border-radius: 34px;
}

.preferences-form .input-group .slider.round:before {
    border-radius: 50%;
}

/* ------------------ */
/* page footer styles */
/* ------------------ */

footer {
    background: #000;
    padding: 25px;
}

footer .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer p,
footer a {
    color: #F2F2F2;
    opacity: 0.6;
    font-size: 14px;
    text-decoration: none;
    line-height: 1;
}

footer .footer-left,
footer .footer-right {
    display: flex;
    align-items: center;
}

footer .footer-right{
    margin-top: 10px;
}

footer .footer-left a span {
    margin: 0 6px 0 11px;
}

footer .footer-right p {
    text-transform: uppercase;
    font-size: 15px;
    margin-right: 20px;
    opacity: 1;
    font-weight: bold;
}

footer .footer-right a:not(:first-child) {
    margin-left: 10px;
    opacity: 1;
}

/* -------------------------------------- */
/* thank you / Goodbye page custom styles */
/* -------------------------------------- */
.thankyou-page .container,
.unsubscribe-page,
.goodbye-page .container {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

.thankyou-page .btn-secondary,
.goodbye-page .btn-secondary {
    display: inline-flex;
    text-align: center;
}
.goodbye-page h1{
    font-weight: 800;
    font-size: 30px;
}
.thankyou-page h1{
    text-transform: uppercase;
    font-weight: 800;
    font-size: 30px;
}

.goodbye-page h2,
.page-content-text h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 800;
    margin: 20px 0 15px 0;
    text-align: center;
}

.page-content-text {
    text-align: center;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}
.unsubscribe-page h1{
    font-size: 30px;
    font-weight: 800;
}
.unsubscribe-page h2{
    font-size: 20px;
    font-weight: 800;
}
.unsubscribe-page  label{
    /* display: block; */
    display: flex;
    align-items: baseline;
    font-size: 15px;
    margin-bottom: 10px;
}
.unsubscribe-page .btn{
    display: inline;
    margin-top: 25px;
    
}
.unsubscribe-submit-btn{
    text-align: center;
}
.unsubscribe-form{
    text-align: left;
}
.unsubscribe-form .test{
    text-align: center;
}
.unsubscribe-form input{
    flex: 0 0 30px;
}

.unsubscribe-text {
    width: 100%;
}

.unsubscribe-text textarea {
    resize: none; 
    width: calc(100% - 30px);
    margin-left: 30px;
    border-radius: 5px;
    padding: 10px 15px; 
    border: 1px solid #d8d8d8;
    box-shadow: inset 0 0 10px #D1D3D5;
    font-size: 15px;
    height: 43px;
}

.unsubscribe-text textarea::placeholder {
    font-family: "Nunito", sans-serif;
}

.test .text-box{
    background-color: transparent;
    border: 1px solid #a8a8a9;
    box-shadow: inset 0 2px 5px #d1d3d5;
}
/* --------------------------------- */
/* On screens that are 992px or less */
/* --------------------------------- */
@media screen and (max-width: 992px) {
    .container:not(.large) {
        padding: 0 25px;
    }
    /* .page-content {
        min-height: calc(100vh - 345px);
    } */
    footer {
        padding: 40px 0;
    }

    footer .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    footer .footer-right {
        margin-top: 20px;
    }

    .bordered-box {
        padding: 40px 15px;
        min-width: 100%;
    }
}
/* --------------------------------- */
/* On screens that are 320px or less */
/* --------------------------------- */
@media screen and (max-width: 320px) {
    .preferences-form .input-group .switch {
        right: 0;
        position: relative;
        width: unset;
        height: unset;
    }

    .preferences-form .input-group .preference-label {
        flex-grow: 1;
    }

    .preferences-form .input-group svg {
        width: 50px;
        margin-right: 0;
    }

    .preferences-form .input-group {
        gap: 5px;
        justify-content: stretch;
    }

    .preferences-form .input-group .preference-label strong {
        word-break: break-all;
    }
}
/* --------------------------------- */
/* On screens that are 600px or less */
/* --------------------------------- */
@media screen and (max-width: 600px) {
    .btn-group {
        flex-flow: column nowrap;
        align-items: center;
    }

    .btn-group .btn {
        display: inline-flex;
    }

    .btn-group .btn:not(:last-child) {
        margin-bottom: 20px;
    }

    .preferences-form fieldset {
        padding: 20px 0;
    }

    .preferences-form fieldset .form-header {
        padding: 0 25px 25px 25px;
    }

    .preferences-form .input-group:not(.form-header .input-group) {
        padding: 0 5px;
    }

    .preferences-form .input-group .preference-label:not(.form-header .input-group .preference-label) {
        width: 60%;
    }

    .preferences-form .input-group .preference-label strong {
        line-height: 1.2;
    }

    .preferences-form .input-group > svg {
        height: 50px;
    }

    footer {
        padding: 40px 15px;
    }

    footer .footer-left {
        flex-flow: row wrap;
        justify-content: center;
        align-content: center;
    }

    footer .footer-left a,
    footer .footer-left p {
        line-height: 1.5;
    }
}


input[type="radio"] {
    appearance: none;
    position: relative;
    height: 15px;
    width: 15px;
}

input[type="radio"]::before{
    position: absolute;
    content: '';
    height: inherit;
    width: inherit;
    border-radius: 50%;
    border: 1px solid #a8a8a9;
    box-shadow: inset 0 2px 5px #D1D3D5;
}

input[type="radio"]::after{
    display: none;
    position: absolute;
    left: 3.45px;
    top: 3.45px;
    content: '';
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: #C41230;
}

input[type="radio"]:checked::after{
 display: block;
}

strong {
    font-weight: 900;
}
/* ----------------- */
/* Color page style */
/* --------------- */
preference-label-color{
    margin-top: 20px;
}
.color-section{
    display: flex;
    flex-wrap: wrap;
}
.color-box{
    width: 85px;
    margin-top: 30px;
    margin-right: 10px;
    word-wrap: break-word;
    position: relative;
    min-height: 120px;
}
.img-color{
    margin-left: 0px;
    height: auto;
    width: 40px;
}
.preference-label-color table{
    margin: 30px 0 40px 0;
}
.color-title{
    font-size: 25px;
}
.color-name{
    margin: 10px 0;
    font-size: 12px;
}