@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');

*{
    font-family: 'Montserrat';
}

body{
    background-color:#424549;
    color: rgb(231, 231, 231);
    margin: 0;
}

.page{
    max-width: 1000px;
    margin: auto;
}

h1{
    text-align: center;
    font-size: 50px;
}

.flex-container{
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px
}

.flex-item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    border: none;
    border-radius: 20px;
    transition: 0.3s all;
    margin: 0;
    padding: 0;
    width: 300px;
}

.flex-item:hover, #caButton:hover{
    transform: scale(1.05);
    box-shadow:
    0 2.8px 2.2px rgba(0, 0, 0, 0.034),
    0 6.7px 5.3px rgba(0, 0, 0, 0.048),
    0 12.5px 10px rgba(0, 0, 0, 0.06),
    0 22.3px 17.9px rgba(0, 0, 0, 0.072),
    0 41.8px 33.4px rgba(0, 0, 0, 0.086),
    0 100px 80px rgba(0, 0, 0, 0.12);
}

.flex-item p{
    color: rgb(214, 214, 214);
    font-size: 30px;
}

.flex-item i{
    color: rgb(214, 214, 214);
    font-size: 50px;
}

.flex-item a{
    height: 182.5px;
    margin: 0;
    padding-top: 30px;
    padding-right: 30px;
    padding-left: 30px;
    display: block;
}

.flex-item:hover p{
    color: rgb(255, 255, 255);
}

.flex-item:hover i{
    color: rgb(255, 255, 255);
}

.flex-item#id1{
    background-color: #1a1333;
}

.flex-item#id2{
    background-color: #262949;
}

.flex-item#id3{
    background-color: #045459;
}

.flex-item#id4{
    background-color: #087353;
}

.flex-item#id5{
    background-color: #15c286;
}

.flex-item#id6{
    background-color: #abd96d;
}

.flex-item#id7{
    background-color: #fbbf54;
}

.flex-item#id8{
    background-color: #ee6b3b;
}

.flex-item#id9{
    background-color: #ec0f47;
}

.flex-item#id10{
    background-color: #a02c5d;
}

.flex-item#id11{
    background-color: #700460;
}

.flex-item#id12{
    background-color: #022c7a;
}

.flex-item a:link { text-decoration: none; }

.flex-item a:visited { text-decoration: none; }

.flex-item a:hover { text-decoration: none; }

.flex-item a:active { text-decoration: none; }

/* ---- */
/* MAIN */
/* ---- */

.data{
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.input{
    transition: 0.2s all;
    padding: 10px;
    font-size: 20px;
    border: 1px black solid;
    border-radius: 5px;
    background-color: #36393e;
    margin-bottom: 5px;
    color: rgb(231, 231, 231);
    width: 300px;
}

/* ---------- */
/* CALCULATOR */
/* ---------- */

.radioContainer{
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.radioItem{
    font-size: 20px;
    padding: 10px;
    margin: 3px;
    border: 1px black solid;
    border-radius: 5px;
    background-color: #36393e;
}

.radioItem label{
    cursor: pointer;
}

select{
    font-size: 20px;
    padding: 10px;
    margin: 3px;
    color: rgb(231, 231, 231);;
    border: 1px black solid;
    border-radius: 5px;
    background-color: #36393e;
}

button#Button{
    transition: 0.2s all;
    padding: 10px;
    font-size: 20px;
    border: 1px black solid;
    border-radius: 5px;
    background-color: #36393e;
    color: rgb(231, 231, 231);
    cursor: pointer;
    transition: 0.2s all;
}

button#Button:hover{
    transform: scale(1.05);
    background-color: #3f4144;
}

#arrowBack{
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 60px;
    color: rgb(231, 231, 231);
}

#arrowBack:hover{
    animation: hithere 0.6s ease;
}

@keyframes hithere {
	30% {
		transform: scale(1.2);
	}
	40%,
	60% {
		transform: rotate(-20deg) scale(1.2);
	}
	50% {
		transform: rotate(20deg) scale(1.2);
	}
	70% {
		transform: rotate(0deg) scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

.xd{
    display: flex;
    text-align: left;
    gap: 6px;
}

.xd p{
    font-size: 20px;
    font-weight: 800;
}

p{
    margin-bottom: 1px;
}

.inline{
    margin-left: 35.25px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}

.group{
    background-color: #36393e;
    margin: 0;
    width: 380px;
    padding: 20px;
    text-align: left;
}

/* IOS CHECKBOX */

input[type="checkbox"].ios8-switch {
    position: absolute;
    margin: 8px 0 0 16px;
  }
  input[type="checkbox"].ios8-switch + label {
    position: relative;
    padding: 0 0 0 50px;
    line-height: 2em;
  }
  input[type="checkbox"].ios8-switch + label:before {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    width: 40px; /* x*5 */
    height: 24px; /* x*3 */
    border-radius: 16px; /* x*2 */
    background: #b3b3b3;
    border: 1px solid #d9d9d9;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  input[type="checkbox"].ios8-switch + label:after {
    content: "";
    position: absolute;
    display: block;
    left: 0px;
    top: 0px;
    width: 24px; /* x*3 */
    height: 24px; /* x*3 */
    border-radius: 16px; /* x*2 */
    background: #fff;
    border: 1px solid #d9d9d9;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  input[type="checkbox"].ios8-switch + label:hover:after {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  }
  input[type="checkbox"].ios8-switch:checked + label:after {
    margin-left: 16px;
  }
  input[type="checkbox"].ios8-switch:checked + label:before {
    background: #55d069;
  }

.footer a:visited { color: rgb(233, 233, 233); }

.footer{
    font-size: 25px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    background-color: #252525;
    color: rgb(233, 233, 233);
    margin: 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer a{
    text-decoration: underline;
    color: rgb(233, 233, 233);
}

.range{
    width: 100%;
    accent-color: rgb(233, 233, 233);
}

.card{
    width: 900px;
    border-style: solid;
    border-color: rgb(233, 233, 233);
    border-radius: 50px;
    border-width: 8px;
}

.card h1{
    font-size: 130px;
    margin-bottom: 0;
    margin-top: 30px;
}

.card h3{
    font-size: 30px;
    margin: 40px;
}