/* reset */
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}input:focus{border: none;box-shadow: none;outline: none;}

* 
{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html
{
    font-size: 15px;    
}

body 
{
    color: #bbb;
    background-color: black;
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    padding-top: 10px;
}

input 
{
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
}

.clearfix:after 
{
    content: '';
    display: table;
    width: 100%;
    clear: both;
}

.main-container {
   border: 3px solid #212121 ; /* Czarna ramka o grubości 3px */
   border-radius: 40px; /* Zaokrąglenie rogów ramki */
   padding: 30px;
   /* Dodaj inne style według potrzeb, np. padding, margin */
}

.text-center
{
    text-align: center;
}

.white 
{
    color: #fff;
}

.gold 
{
    text-align: center;
    color: #FF710D;
}

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

h2 
{
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 18px;
}

.btn-eth-top
{
    margin-top: 30px;
}

.btn-eth-top .item
{
    display: inline-block;  
    margin-left: 20px;  
}

.btn-eth-top .item img 
{
    position: relative;
    margin-right: 6px;
    top: 4px;
}

input,
a,
button,
#mm .volumen .copy 
{
    transition: all 0.2s ease;
}

.bg-gray,
input[type="text"]
{
    background-color: #1D1D1D;
}

input[type="text"]:focus::placeholder
{
    opacity: .3;    
}

input[type="text"]
{
    color: #fff;
    border: none;
    padding: 0;
    margin-left: 3px;
    padding: 25px 21px;
    height: 65px;
}

input[type="text"]::placeholder
{
    font-style: italic;
    color: #7C7C7C;
}

.table label 
{
    background-color: #262626;
    display: block;
    padding: 25px 21px;
    height: 65px;
    margin-bottom: 3px;
    width: 38%;  
}

#mm
{
    max-width: 375px;
    margin-bottom: 120px;
}

.table > .row 
{
    display: flex;
}

.table > .row input
{
    width: 62%;    
    cursor: pointer;
}

.table > .row input:focus
{
    padding-left: 15px;
    background-color: transparent;
}

#mm .margin
{
    margin-top: 12px;
    margin-right: -3px;
    margin-bottom: 14px;
}

#mm .margin input 
{
    background-color: #1B1B1B;
    border: none;
    height: 65px;
    width: calc(16.66666% - 3px);
    color: #404040;
    font-size: 16px;
    margin: 0 3px 3px 0;
    padding: 0;
    cursor: pointer;    
}

#mm .margin input.active,
#mm .margin input:hover,
#mm .margin input:focus
{
    background-color: #262626;
    color: #fff;
}

#mm .volumen 
{
    background-color: #1d1d1d;
}

#mm .volumen > div
{
    padding: 29px 30px 35px;    
}

#mm .volumen > div > div + div 
{
    margin-top: 18px;
}

#mm .volumen .big 
{
    color: #fff;
    font-size: 29px;
    font-weight: 500;
}

#mm .volumen .big small 
{
    font-weight: 400;
    font-size: 24px;
    opacity: .5;
    margin-left: 5px;
}

#mm .volumen .label 
{
    width: 50%;
    display: inline-block;
}

#mm .volumen .copy 
{
    font-size: 15px;
    font-weight: 400;
    float: right;
    margin-top: 10px;
    cursor: pointer;
    display: inline-block;
}

#mm .volumen .copy:hover,
#mm .volumen .copy:focus,
#mm .volumen .copy:active
{
    opacity: .5;
}

header 
{
    margin-bottom: 30px;
}

#percent .table 
{
    max-width: 440px;
    float: left;
    margin-right: 20px;
}

#percent .table label 
{
    width: 49%;
}

#percent .table input
{
    width: 51%;    
}

#percent .table .btn 
{
    float: right;
    clear: both;
    width: auto;
    border: none;
    background-color: #262626;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    box-shadow: none;
    margin: 9px 0 0;
    padding: 21px 38px;
    cursor: pointer;
}

#percent .table .btn:hover,
#percent .table .btn:focus,
#percent .table .btn:active
{
    background-color: #454545;    
}

#average-price .table .btn
{
float: right;
clear: both;
width: auto;
border: none;
background-color: #262626;
color: #fff;
font-size: 16px;
font-weight: 400;
outline: none;
box-shadow: none;
margin: 9px 0 0;
padding: 21px 38px;
cursor: pointer;
}

#average-price .table .btn:hover,
#average-price .table .btn:focus,
#average-price .table .btn:active
{
background-color: #454545;
}

#spot .table .btn
{
float: right;
clear: both;
width: auto;
border: none;
background-color: #262626;
color: #fff;
font-size: 16px;
font-weight: 400;
outline: none;
box-shadow: none;
margin: 9px 0 0;
padding: 21px 38px;
cursor: pointer;
}

#spot .table .btn:hover,
#spot .table .btn:focus,
#spot .table .btn:active
{
background-color: #454545;
}

#percent .sum 
{
    clear: both;
    line-height: 180%;
    padding-top: 35px;
    display: block;
}

#percent-table:empty
{
    display: none;    
}

#percent-table
{
    max-width: 340px;
    float: left;
    background-color: #1D1D1D;
    padding: 34px 33px;
    width: 50%;
}

#percent-table > div + div 
{
    margin-top: 15px;
}

#percent-table > div .date
{
    margin-right: 10px;
    min-width: 88px;
    display: inline-block;
    color: #858585;
}

#average-price-result:empty
{
    display: none;    
}

#average-price-result
{
    max-width: 340px;
    float: left;
    background-color: #1D1D1D;
    padding: 34px 33px;
    width: 50%;
}

#average-price-result > div + div 
{
    margin-top: 15px;
}

#average-price-result > div .date
{
    margin-right: 10px;
    min-width: 88px;
    display: inline-block;
    color: #858585;
}

#result-spot:empty
{
    display: none;    
}

#result-spot
{
    max-width: 340px;
    float: left;
    background-color: #1D1D1D;
    padding: 34px 33px;
    width: 50%;
}

#result-spot > div + div 
{
    margin-top: 15px;
}

#result-spot > div .date
{
    margin-right: 10px;
    min-width: 88px;
    display: inline-block;
    color: #858585;
}

#results:empty
{
    display: none;    
}

#results
{
    float: left;
    background-color: #1D1D1D;
    padding: 34px 33px;
}

#results > div + div 
{
    margin-top: 15px;
}

#results > div .date
{
    margin-right: 10px;
    min-width: 88px;
    display: inline-block;
    color: #858585;
}

#calc 
{
    width: 50%;
    margin-top: 40px;
}

#calc .calculator-grid 
{
    display: grid;
    justify-content: flex-end;
    min-height: 362px;
    height: 362px;
    grid-template-columns: repeat(4, 70px);
    grid-template-rows: minmax(70px, auto) repeat(5, 70px);
}

#calc .calculator-grid > button 
{
    cursor: pointer;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #262626;
    color: #fff;
    margin-left: 3px;
    margin-top: 3px;
}

#calc .calculator-grid > button:hover 
{
    background-color: #454545;
}

#calc .output
{
    grid-column: 2 / 5;
    background-color: rgba(38, 38, 38, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    flex-direction: column;
    padding: 2px 18px;
    word-wrap: break-word;
    word-break: break-all;
    margin-top: 3px;
    margin-left: 3px;
}

#calc .output .previous-operand
{
    color: #858585;
    font-size: 15px;
}

#calc .output .previous-operand:empty
{
    display: none;    
}

#calc .output .current-operand
{
    color: white;
    font-size: 27px;
}

#calc h2 
{
    display: none;
}

footer 
{
    margin: 110px 0 45px;
    text-align: center;
    color: #fff;
    opacity: .7;
    font-size: 14px;
}

hr {
  opacity: 0.2;
}

.button {
  background-color: #e89c3f;
  border: none;
  color: black;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  opacity: 50%;
  transition: opacity 0.3s ease-in-out; /* efekt przejścia */
  border-radius: 5px
}

.button:hover {
  opacity: 90%; /* zmniejszenie przezroczystości po najechaniu */
}


@media (min-width: 851px) {
    .pull-left 
    {
        float: left;
    }

    .pull-right
    {
        float: right;
    }
}

@media (max-width: 850px) {
    .btn-eth-top
    {
        display: none;
    }
    
    #logo 
    {
        float: none;
        text-align: center;
    }
    
    #mm,
    #calc,
    #percent
    {
        max-width: 80%;
        margin: 0 auto 80px;
    }
    
    #calc
    {
        width: 80%;
    }
    
    #calc .calculator-grid 
    {
        grid-template-columns: repeat(4, 25%);
    }
    
    h2 
    {
        text-align: center;
        margin-bottom: 25px;
    }
    
    #calc h2 
    {
        display: block;
    }
    
    #percent h2 
    {
        text-align: left;
    }
    
    #percent .sum
    {
        text-align: center;
    }
    
    #percent .table
    {
        margin-right: 0;
    }
    
    #percent-table
    {
        width: 100%;
        max-width: 100%;
        margin-top: 47px;
    }
    
/*    #average-price-result
    {
        width: 100%;
        max-width: 100%;
        margin-top: 47px;
    }*/
    
    footer 
    {
        margin-top: 60px;
    }

}

