@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

html{
    --v-light-grey: #efefefaa;
    --light-grey: #ddd;
    --dark-grey: #555;
    --green: #49c980;
    --light-green: #49c98022;
    --red: #d12a2a;
    --light-red: #d12a2a22;
}


*{
    font-family: "Work Sans", sans-serif;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-size: 20px;
}

header{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

header button{
    padding: 15px 25px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background-color: var(--dark-grey);
    color: white;
    transition: all .2s ease-in-out;
    height: fit-content;
}

header button:hover{
    background-color: var(--green);
}

h1, h2{
    font-weight: bold;
}

h1{
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 30px;
}

h2{
    font-size: 26px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 800;
    width: 100%;
}

#uptime h2{
    margin-bottom: 0;
}

body{
    padding-top: 60px;
    margin-bottom: 60px;
    margin-left: 18vw;
    margin-right: 18vw;
}

#error-popup, #confirm-popup, #google-popup{
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #000000aa;
    top: 0;
    left: 0;
    z-index: 20;
    justify-content: center;
    align-items: center;
}

#google-popup{
    display: flex;
}

#error-popup div, #confirm-popup div, #google-popup div{
    padding: 40px 60px;
    background-color: white;
    height: fit-content;
    border-radius: 10px;
    text-align: center;
}

#error-popup div p{
    margin-bottom: 40px;
    text-align: left;
}

#error-popup div p span{
    color: var(--red);
}

#error-popup div button{
    padding: 15px 25px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background-color: var(--dark-grey);
    color: white;
    transition: all .2s ease-in-out;
    height: fit-content;
}

#error-popup div button:hover{
    background-color: var(--green);
}

#confirm-popup div button, #google-popup div button{
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid white;
    cursor: pointer;
    color: white;
    transition: all .2s ease-in-out;
    height: fit-content;
}

#confirm-popup div button#confirm-button, #google-popup div button#google-confirm{
    background-color: var(--green);
    margin-right: 15px;
}

#confirm-popup div button#confirm-button:hover, #google-popup div button#google-confirm:hover{
    border: 1px solid var(--green);
    background-color: var(--light-green);
    color: var(--green);
}

#confirm-popup div button#reject-button, #google-popup div button#google-reject{
    background-color: var(--dark-grey);
    margin-left: 15px;
}

#confirm-popup div button#reject-button:hover, #google-popup div button#google-reject:hover{
    border: 1px solid var(--dark-grey);
    background-color: var(--light-grey);
    color: var(--dark-grey);
}

#container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

#container div{
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    padding: 40px 20px;
    margin: 15px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    box-shadow: 0 2px 24px 0 rgba(221, 221, 221, 0.48);
    transition: all .2s ease-in-out;
}

#container div:hover{
    box-shadow: 0 2px 24px 0 rgba(221, 221, 221, 1);
}

input{
    padding: 5px 10px;
    outline: none;
    border: none;
    border-bottom: 1px solid var(--light-grey);
    transition: all .2s ease-in-out;
    margin-bottom: 16px;
    text-align: center;
}

input:focus{
    border-bottom: 1px solid var(--dark-grey);
}

p{
    font-weight: bold;
    color: #ccc;
}

#page-info{
    width: calc(60% - 30px);
}

#page-info p{
    width: 100%;
    margin-bottom: 8px;
}

#page-info input{
    width: 30%;
    margin-bottom: 12px;
}

#page-info input::placeholder{
    font-weight: normal;
}

#page-info input:last-of-type{
    font-weight: 800;
}

#page-info input::placeholder{
    font-weight: normal;
}

#page-info img{
    max-height: 120px;
    border-radius: 10px;
    margin-bottom: 12px;
}

#date{
    width: calc(35% - 30px);
}

#date input{
    color: var(--green);
    font-weight: 800;
    width: 50%;
}

#date input::placeholder{
    font-weight: normal;
}

#uptime select{
    text-align: center;
    width: 130px;
    border: none;
}

#uptime select:focus{
    outline: none;
}

#uptime label, #uptime select{
    font-size: 60px;
    font-weight: 800;
    color: var(--green);
}

#copy{
    width: calc(65% - 30px);
}

#copy table *{
    font-size: 15px;
}

#copy table tr td{
    padding: 8px;
}

#copy table tr th{
    color: var(--dark-grey);
    font-weight: bold;
    padding: 8px;
}

.rh{
    font-weight: bold;
    color: var(--green);
}

#copy table tr td input{
    font-weight: 800;
    width: 60%;
}

#copy table tr td input::placeholder{
    font-weight: normal;
}

#copy table tr td select{
    border: none;
    font-weight: 800;
}

#copy table tr td select:focus{
    outline: none;
}

#address{
    width: calc(40% - 30px);
}

#version, #certificate, #uptime{
    width: calc(33% - 29px);
}
#version svg, #certificate svg, #domain svg, #hosting svg{
    fill: var(--green);
    margin-bottom: 12px;
}

#version select, #certificate input, #address input{
    color: var(--green);
    font-weight: 800;
}

#version p{
    width: 100%;
    margin-bottom: 8px;
}

#version select{
    border: none;
}

#version select:focus{
    outline: none;
}

#certificate input::placeholder, #address input::placeholder{
    font-weight: normal;
}

#address{
    margin-bottom: 60px;
}

#domain, #hosting{
    width: calc(50% - 30px);
    flex-direction: column;
    align-items: center;
}

#domain p, #hosting p{
    width: 100%;
    margin-bottom: 8px;
}

#hosting input{
    font-weight: 800;
}

#hosting span{
    font-weight: 800;
}

#hosting span:first-of-type{
    margin-bottom: 8px;
    color: var(--green);
}

#hosting input::placeholder{
    font-weight: normal;
}

#domain select{
    border: none;
    color: var(--green);
    text-align: center;
    width: fit-content;
    font-weight: 800;
    margin-bottom: 8px;
}

#domain select:focus{
    outline: none;
}

#domain input:first-of-type{
    margin-bottom: 8px;
    font-weight: 800;
}

#domain input:first-of-type::placeholder{
    font-weight: normal;
}

#custom-date-input{
    width: fit-content;
    display: none;
    font-weight: 800;
    color: var(--green);
}

#custom-date-input::placeholder{
    font-weight: normal;
}

#tables-container{
    display: flex;
    flex-wrap: nowrap;
}

#tables-container div{
    width: 100%;
}

#tables-container div:first-of-type{
    margin-right: 30px;
}

#tables-container div:last-of-type{
    margin-left: 30px;
}

#updates, #seo, #chart{
    margin-bottom: 60px;
}

#updates div, #seo div, #others div, #chart div:first-of-type{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

#updates div input, #seo div input, #others div input, #chart div:first-of-type input{
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    position: relative;
    appearance: none;
    border: none;
}

#updates div input:checked::after, #seo div input:checked::after, #others div input:checked::after, #chart div:first-of-type input:checked::after{
    content: "";
    width: 16px;
    height: 16px;
    background-color: var(--green);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url("./check.png");
    background-position: center;
}

#updates div input::after, #seo div input::after, #others div input::after, #chart div:first-of-type input::after{
    content: "";
    width: 16px;
    height: 16px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    border: 2px solid var(--green);
    border-radius: 2px;
    transition: all .2s ease-in-out;
}

#updates div h2, #seo div h2, #others div h2, #chart div:first-of-type h2{
    text-align: left;
    margin-bottom: 0;
    margin-right: 20px;
    width: fit-content;
    height: fit-content;
}

#chart div:nth-of-type(2){
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}

#chart div:nth-of-type(2) label{
    font-weight: 800;
    color: var(--dark-grey);
}

#chart div:nth-of-type(2) label input, #chart div:nth-of-type(2) input, #chart div:nth-of-type(2) select{
    margin-bottom: 0;
}

#chart div:nth-of-type(2) *{
    font-size: 14px;
    height: fit-content;
}

#chart div:nth-of-type(2) input#photo::file-selector-button{
    padding: 5px 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background-color: var(--dark-grey);
    color: white;
    transition: all .2s ease-in-out;
}

#chart div:nth-of-type(2) input#photo::file-selector-button:hover{
    background-color: var(--green);
}

#chart div:nth-of-type(2) button{
    margin-left: 20px;
}

#chart div:nth-of-type(2) svg{
    fill: var(--green);
    margin-right: 20px;
    margin-left: 20px;
}

#google-error{
    margin-top: 8px;
    display: none;
    font-weight: 800;
    color: var(--red);
    width: 100%;
}

#chart div select{
    border: none;
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: 16px;
    padding: 5px 10px;
}

#chart div select:focus{
    outline: none;
}

#updates table, #seo table, #others table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 20px;
}

#updates table *, #seo table *, #others table *{
    font-size: 14px;
    text-align: center;
}

#updates table tr th, #seo table tr th, #others table tr th{
    color: var(--dark-grey);
    font-weight: bold;
    padding: 8px;
}

#updates table tr td select, #seo table tr td select, #others table tr td select{
    border: none;
}
#updates table tr td select:focus, #seo table tr td select:focus, #others table tr td select:focus{
    outline: none;
}

#updates table tr td, #seo table tr td, #others table tr td{
    padding: 8px;
}

#updates table tr td input, #seo table tr td input, #others table tr td input{
    margin: 0;
    width: 100%;
}

#updates table tr td button, #seo table tr td button, #others table tr td button, #chart div:nth-of-type(2) button{
    padding: 5px 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background-color: var(--dark-grey);
    color: white;
    transition: all .2s ease-in-out;
}

#updates table tr td button:hover, #seo table tr td button:hover, #others table tr td button:hover, #chart div:nth-of-type(2) button:hover{
    background-color: var(--green);
}

#updates table tr td, #seo table tr td, #others table tr td{
    border: 1px var(--light-grey) solid;
    border-right: none;
    border-left: none;
    padding-top: 20px;
    padding-bottom: 20px;
    font-weight: normal;
}

#updates table tr, #seo table tr, #others table tr{
    transition: all .2s ease-in-out;
    cursor: pointer;
}

#updates table tr:hover, #seo table tr:hover, #others table tr:hover{
    box-shadow: 0 02px 24px 0 rgba(221, 221, 221, 0.48);
}

#updates table tr td:first-of-type, #seo table tr td:first-of-type, #others table tr td:first-of-type{
    border-left: 1px var(--light-grey) solid;
}

#updates table tr td:last-of-type, #seo table tr td:last-of-type, #others table tr td:last-of-type{
    border-right: 1px var(--light-grey) solid;
}

#updates table tr:nth-child(odd) td, #seo table tr:nth-child(odd) td, #others table tr:nth-child(odd) td{
    background-color: var(--v-light-grey);
}

#updates table tr#updates-headers td, #updates table tr#updates-form td, #updates table tr#errors td,
#seo table tr#seo-headers td, #seo table tr#seo-form td, #seo table tr#seo-errors td,
#others table tr#others-headers td, #others table tr#others-form td, #others table tr#others-errors td{
    border: none;
    background-color: white;
}

#updates table tr#updates-headers:hover, #updates table tr#updates-form:hover, #updates table tr#errors:hover,
#seo table tr#seo-headers:hover, #seo table tr#seo-form:hover, #seo table tr#seo-errors:hover,
#others table tr#others-headers:hover, #others table tr#others-form:hover, #others table tr#others-errors:hover{
    box-shadow: none;
}

#updates table tr#updates-headers, #updates table tr#updates-form, #updates table tr#errors,
#seo table tr#seo-headers, #seo table tr#seo-form, #seo table tr#seo-errors,
#others table tr#others-headers, #others table tr#others-form, #others table tr#others-errors{
    cursor: default;
}

#errors, #seo-errors, #others-errors{
    display: none;
    color: var(--red);
}

#updates table tr td span{
    border-radius: 10px;
    padding: 5px 8px;
}

#updates table tr td span.sukces{
    color: var(--green);
    background-color: var(--light-green);
}

#updates table tr td span.wycofana{
    color: var(--red);
    background-color: var(--light-red);
}

#stats, #photo-container, #phrases-el{
    display: none;
}

#photo-container{
    margin-bottom: 60px;
}

#stats{
    max-height: 300px;
    max-width: 100%;
}

#phrases-el{
    margin-top: 28px;
    margin-bottom: 12px;
}

#phrases-el *{
    font-size: 14px;
    color: black;
    font-weight: normal;
}

#phrases-el button{
    padding: 5px 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background-color: var(--dark-grey);
    color: white;
    transition: all .2s ease-in-out;
}

#phrases-el button:hover{
    background-color: var(--green);
}

#phrases-el ul{
    padding-left: 40px;
}

#phrases-el ul li{
    margin-top: 4px;
    margin-bottom: 4px;
}

#phrases-el ul li::marker{
    color: var(--green);
}

#total-clicks{
    display: none;
    font-weight: normal;
    color: black;
    font-size: 14px;
    margin-bottom: 12px;
    margin-top: 12px;
}

#seo div:first-of-type, #others div:first-of-type{
    margin-left: 0;
}

/* ---------------------------------- */

@media screen and (max-width: 1675px){
    body{
        margin-left: 14vw;
        margin-right: 14vw;
    }
}
@media screen and (max-width: 1495px){
    body{
        margin-left: 10vw;
        margin-right: 10vw;
    }
}

@media screen and (max-width: 1197px){
    body{
        margin-left: 2vw;
        margin-right: 2vw;
    }
    #container div{
        margin: 10px;
    }
    #container div{
        width: 100%;
    }
    #tables-container div:first-of-type{
        margin-right: 0;
    }
    #tables-container div:last-of-type{
        margin-left: 0;
    }
}

@media screen and (max-width: 900px){
    body{
        margin-left: 10px;
        margin-right: 10px;
    }
}

@media screen and (max-width: 766px){
    #tables-container{
        flex-wrap: wrap;
    }
}