/* ########## GLOBAL ########## */

:root {
    --logo-1: #ede901;
    --logo-2: #2fc0ec;
    --grey: #c8c8c8;
    --white: #ffffff;
    --button-text-size: 18px;
    --transition-10: 0.1s;
    --transition-20: 0.2s;
    --no-transition: 0.0s;
    --selector-text: 1.4em;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    letter-spacing: 2px;
}

@font-face {
    font-family: 'Kollektif';
    font-style: normal;
    font-weight: normal;
    src: local('Kollektif'), url('../resources/fonts/Kollektif.ttf') format('truetype');
}

@font-face {
    font-family: 'SpartanMB';
    font-style: normal;
    font-weight: normal;
    src: local('SpartanMB'), url('../resources/fonts/SpartanMB-Regular.otf') format('truetype');
}

html, body {
    position: relative;
    margin: 0;
    border: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start ;
    align-items: center;
    transition: 0.1s linear;
    overflow: scroll;
    overflow-x: auto;
}

header {
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    top: 0px;
    padding: 0.5% 4%;
    margin: 1.5% 0;
    transition: 0.15s linear;
}

footer {
    padding: 5px 0 10px;
    width: 100%;
    bottom: 0px;
    margin-top: auto;
}

h1 {
    font-size: 4em;
    line-height: 80%;
}

p, a, h2, h3, div {
    font-family: 'Kollektif', 'Quicksand', 'Raleway', 'Ubuntu', 'Sans-serif';
}

a {
    text-decoration: none;
}

button, input[type="submit"], input[type="reset"], select, option, select option {
    box-shadow: none;
    border-radius: 4px;
	padding: 8px;
	font: inherit;
	cursor: pointer;
	outline: none;
    transition: 0.1s linear;
}

button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gui-button {
    height: 60px;
    padding: 10px;
}

button i {
    height: 90%;
    aspect-ratio: 1;
}

.button, .nav-icon {
    position: relative;
    transition: transform 0.15s linear;
}

select {
    margin: 2% 0;
}

select:hover, select:focus, select option, select option:hover {
    outline: none;
}

.text-box {
    height: 40px;
    width: 100%;
    max-width: 100%;
    border-radius: inherit;
    border: 0px solid transparent;
    outline: 0;
    transition: 0.2s linear;
}

.input-form {
    margin: 2% 0;
    padding-left: 15px;
    border-radius: 4px;
}

.input-form:focus-within {
    padding-left: 25px;
}

.form-button {
    padding: 2%;
    margin: 2% 0;
}

.pop-up {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 2%;
}

.pop-up button {
    margin: 0;
    margin-bottom: 3%;
}

.pop-up p {
    margin-bottom: 2%;
}

.copy-frame {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    margin: 1% 0;
    border-radius: 10px;
    overflow: hidden;
}

.copy-frame button {
    height: 100%;
    padding: 0;
    margin: 0;
    margin-left: 5%;
    border: 1px solid rgba(0, 0, 0, 0.8);
}

.copy-buttons {
    display: inline-flex;
    justify-content: space-around;
    margin-left: 3%;
    margin-bottom: 0%;
}

.copy-buttons button {
    margin: 0;
    padding: 5px;
}

.copy-button {
    height: 2em;
    width: 4em;
    margin-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.qr-button {
    height: 2em;
    width: 4em;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.qr-code {
    margin: 2%;
}

.loader {
    background-color: rgba(0, 0, 0, 0);
    border-radius: 50%;
    height: 1.5em;
    aspect-ratio: 1;
    margin: 0 20px;
    -webkit-animation: load 2s linear infinite; /* Safari */
    animation: load 2s linear infinite;
}

/* Safari */
@-webkit-keyframes load {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }
  
  @keyframes load {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }


/* ########## SPECIFIC ########## */

.logo-container {
    height: 45px;
    width: 200px;
}

.logo-1, .logo-alt-1 {
    display: inline;
    color: var(--logo-1);
}

.logo-2, .logo-alt-2 {
    display: inline;
    color: var(--logo-2);
}

.mobile-logo {
    display: none;
}

.bx-left-arrow-alt {
    padding: 5px;
    transform: scale(1.5);
}

.op-title {
    margin: 0 0 3%;
}

#page-main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    bottom: 0px;
    width: 100%;
    padding: 8% 4%;
    transition: 0.2s linear;
}

.connect-wallet-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#connectWallet {
    font-weight: 800;
    border: 1px solid;
    flex-grow: 1;
}

.connection-indicator {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    margin-right: 2px;
    margin-left: 7px;
}

.site-font {
    font-family: 'Kollektif', 'Quicksand';
}

.contract-address {
    font-size: small;
    margin-top: 5%;
}


/* NEW OPERATION */

.section-new-operation {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    min-width: 60%;
    max-width: 100%;
}

.operation-forms {
    min-width: 100%;
}

.selector-frame {
    position: sticky;
    display: flex;
    flex-direction: row;
    justify-content: center;
    top: 0px;
    width: 100%;
    padding: 5px 4%;
    transition: 0.15s linear;
}

.selector-buttons-container {
    display: flex;
}

#history {
    font-size: medium;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
    border: 1px solid;
    transition: 0.15s linear;
}

.op-selector {
    font-size: var(--selector-text);
    font-weight: 700;
    padding: 10px;
}

.op-selector:active {
    box-shadow: none;
}

.op-wrap {
    border-top-right-radius: 0%;
    border-bottom-right-radius: 0%;
}

.op-unwrap {
    border-top-left-radius: 0%;
    border-bottom-left-radius: 0%;
}

.chain-select {
    margin: 5%;
}


/* STATUS */

.header-row {
    padding: 20px;
}

.section-check-operation {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    min-width: 60%;
    max-width: 100%;
}

#check-wraps-frame, #check-unwrap-frame {
    min-height: 100px;
}

#check-wraps-frame p, #check-unwrap-frame p {
    text-align: center;
}

.wrap-table {
    display: flex;
    flex-direction: column;
    max-height: 300px;
    margin-top: 5px;
    border-radius: 20px;
    overflow: auto;
}

.wrap-status {
    display: inline-flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
}

.status-field {
    flex-basis: 0;
    padding: 5px;
}


/* ########## MEDIA QUERIES ########## */

/* SMALL SMARTPHONES: */
/*
@media screen and (max-width: 320px) {
    * {
        font-size: large;
    }

    label {
        margin: 0 0 5%;
    }

    .site-font {
        margin: 0 0 5%;
    }

    select {
        width: 100%;
        padding: 10px;
        margin-top: 5%;
        margin-bottom: 0;
    }

    .form-button {
        padding: 5%;
    }

    .input-form {
        margin-bottom: 10%;
    }

    h1 {
        font-size: 1.8em !important;
        justify-self: center !important;
        align-self: center !important;
        margin-bottom: 10px;
    }

    .op-title {
        margin-bottom: 10%;
    }

    .logo-container {
        display: block;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .selector-frame {
        width: 100%;
        margin: 0;
        margin-bottom: 5%;
    }

    .op-selector {
        padding: 10px 0;
    }

    .chain-select {
        margin-bottom: 10%;
    }

    .theme-selector {
        margin-top: 10px;
    }
}
*/


/* UP TO SMARTPHONES: */
@media screen and (max-width: 480px) {

    header {
        position: relative;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 5% 5%;
    }

    .logo-container {
        height: 100px;
        width: 100px;
        margin: 0px 0px 5%;
    }

    #history {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    #connectWallet {
        text-indent: -9999px;
        white-space: nowrap;
        height: 60px;
        width: 60px;
        right: 0px;
        margin-bottom: 5px;
        border: 0px;
    }

    .connection-indicator {
        display: none;
    }

    .selector-frame {
        justify-content: center;
        padding-left: 0px;
        padding-right: 0px;
    }

    .selector-buttons-container {
        min-width: 100%;
    }

    .op-selector {
        min-width: 50%;
        border-radius: 0px;
    }

    #page-main-section {
        min-width: 0px;
        max-width: 100%;
        padding: 8% 0px;
    } 

    .section-new-operation {
        min-width: 0px;
    }

    .operation-forms {
        min-width: 0px;
        max-width: 100%;
        padding: 0px 5px;
    }

    .multi-function-form {
        padding: 10px 15px;
    }

    .section-check-operation {
        overflow-x: scroll;
        padding-left: 100px;
    }

    .text-box {
        min-width: 0px;
        max-width: 100%;
    }

    .input-form {
        margin: 0px;
        padding-left: 10px;
    }
}


/* TABLETS: */
@media screen and (min-width: 481px) and (max-width: 768px) {

    .logo-container {
        height: 60px;
        width: 60px;
    }

    #connectWallet {
        text-indent: -9999px;
        white-space: nowrap;
        height: 60px;
        width: 60px;
        border: 0px;
    }

    .selector-frame {
        justify-content: center;
        max-width: 40%;
        top: 7px;
    }

    .operation-forms {
        margin-top: 70px;
    }

    .section-check-operation {
        margin-top: 20%;
    }

}


/* NETBOOKS AND OVER */
@media screen and (min-width: 769px) {

    #page-main-section {
        border-top-left-radius: 120%;
        border-top-right-radius: 120%;
    }

    .selector-frame {
        position: sticky;
        max-width: 40%;
    }

    .section-check-operation {
        margin-top: 5%;
    }
}


/* NOTEBOOKS AND OVER */
@media screen and (min-width: 1024px) {
    
    #page-main-section {
        padding: 4% 4%;
    }
}


/* ########## SCROLLBAR ########## */

/* width */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

/* button */
::-webkit-scrollbar-button {
display : none;
}
  
  /* Track */
::-webkit-scrollbar-track {
border-radius: 10px;
}

::-webkit-scrollbar-track-piece {
border-radius: 10px;
}
  
  /* Handle */
::-webkit-scrollbar-thumb {
border-radius: 10px;
}


/* ########## GENERIC ########## */

.inline {
    display: inline;
}

.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

.hand-pointer {
    cursor: pointer;
}

.default-pointer {
    cursor: default;
    pointer-events: none;
}

.text-margin {
    margin: 2% 0;
}

.error {
    overflow-wrap: break-word;
    line-height: 1.2em;

    /* max-width: 80%; */

    color: #ff0000;
    margin-bottom: 5%;
}

.alert {
    padding: 1em;

    border-radius: 1em;
}

.compressed {
    transform: scale(0);
}