@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@200;300;400;500;600;700;800&display=swap');

:root {
    --white: #ffffff;
    --lightBlue: #e8f4fd;
    --teal: #0d6796;
    --grey: #4e4e4e;
    --purple: #7c4dff;
    --black: #000000;
    --light-grey: #d8d8d8;
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--lightBlue);
    padding: 0;
    margin: 0;
}

code {
    font-family: 'Raleway', sans-serif;
}

.main-wrapper {
    margin-top: 128px;
}

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

img {
    display: block;
}

.logo {
    max-width: 145px;
    margin: auto;
    margin-bottom: 25px;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Custom styles */
.pod-card {
    padding: 25px 35px;
    text-align: center;
    border-radius: 32px;
    padding-bottom: 50px;
    box-shadow: 0 8px 14px 2px rgba(31, 40, 74, 0.05);
    width: 700px;
    max-width: 100%;
    margin: auto;
    background-color: var(--white);
}

.pod-card p {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 1.25em;
}

.pod-card__icon {
    margin: auto;
    margin-bottom: 20px;
}

.pod-card__heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--teal);
    line-height: 1.455;
    margin: 0 0 8px 0;
}

.pod-card__btn {
    max-width: 100%;
    font-size: 17px;
    font-weight: 800;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    margin: auto;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none;
    margin-bottom: 2em;
    color: var(--white);
    box-shadow: 0 8px 14px 0 rgba(68, 91, 184, 0.22);
    width: 100%;
    border: none;
    cursor: pointer;
    letter-spacing: 1.1px;
}

.pod-card__small_btn {
    font-size: 15px;
    font-weight: 800;
    padding: 15px;
    margin: 0 10px;
    border-radius: 10px;
    align-items: center;
    text-transform: uppercase;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none;
    margin-bottom: 2em;
    color: var(--white);
    box-shadow: 0 8px 14px 0 rgba(68, 91, 184, 0.22);
    border: none;
    cursor: pointer;
    letter-spacing: 1.1px;
}

.pod-card__small_btn.teal,
.pod-card__btn.teal {
    background-color: var(--teal);
}

.pod-card__small_btn.purple,
.pod-card__btn.purple {
    background-color: var(--purple);
}

.pod-card__small {
    font-size: 13px;
    line-height: 1.462;
    font-weight: 500;
    color: var(--grey);
    display: block;
    margin-bottom: 1em;
}

.pod-card__link {
    color: var(--purple);
    text-decoration: underline;
    margin-bottom: 20px;
    display: inline-block;
}

.pod-card .web-id-title {
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    text-align: left;
    display: block;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.143;
}

.pod-card .web-id__wrapper {
    display: flex;
    justify-content: space-between;
    box-shadow: 0 3px 22px 2px rgba(62, 76, 131, 0.12);
    margin: auto;
    padding-right: 12px;
    border-radius: 7px;
    margin-bottom: 10px;
    align-items: center;
    background-color: var(--white);
    max-width: 100%;
    margin-bottom: 103px;
}

.pod-card .web-id__wrapper p {
    margin: 0;
    text-decoration: underline;
    color: var(--purple);
    text-align: left;
    flex: 1;
    overflow: hidden;
    word-wrap: break-word;
    text-align: left;
    padding: 16px 12px 16px 24px;
}

.pod-card .web-id__icon-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 113px;
    padding: 16px 12px 16px 24px;
}

.pod-card .web-id__icon {
    width: 20px;
    height: 20px;
    position: relative;
    display: flex;
    align-items: center;
    align-self: flex-end;
    justify-content: center;
    border-radius: 50%;
    padding: 18px;
    flex-shrink: 0;
    background-color: rgb(235, 235, 235);
    margin-left: 20px;
    cursor: pointer;
}

.pod-card .web-id__icon-wrapper .web-id-popup {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% - 7px);
    right: 7px;
    min-width: 113px;
    min-height: 94px;
    background-color: var(--white);
    align-items: center;
    padding: 12px 0;
    box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12),
    0 5px 5px -3px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.pod-card .web-id__icon-wrapper:hover .web-id-popup,
.pod-card .web-id-popup:hover .web-id-popup,
.pod-card .web-id__icon-wrapper:hover .web-id-popup,
.pod-card .web-id-popup:hover .web-id-popup {
    display: flex;
    height: max-content;
}

.pod-card .web-id__icon-wrapper .web-id-popup::before {
    content: '';
    border-bottom: 7px solid var(--white);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    position: absolute;
    bottom: 100%;
    right: 10px;
}

.pod-card .web-id__icon-wrapper .web-id-popup button,
.pod-card .web-id__icon-wrapper .web-id-popup a {
    font-size: 16px;
    line-height: 1.5;
    color: var(--black);
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none;
    padding: 0;
    outline: none;
    background-color: var(--white);
    border: none;
    text-align: left;
    width: 100%;
    flex: 1;
    padding: 0 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.plus-btn {
    padding: 10px 15px;
    display: flex;
    background-color: rgb(249, 247, 255);
    color: var(--purple);
    text-transform: uppercase;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 800;
}

.plus-btn img {
    margin-right: 10px;
    display: inline-block;
}

/* Edit Form Styles */
header.header {
    position: absolute;
    top: 128px;
    left: 0;
    width: 100%;
    z-index: 100;
    margin: auto;
    display: flex;
    justify-content: flex-end;
    padding: 0 20px;
}

.login-btn {
    margin-top: 20px;
    width: 70%;
}

.logout-btn {
    padding: 14px 16px;
    color: var(--purple);
    text-decoration: underline;
    border-radius: 10px;
    text-transform: uppercase;
    background-color: var(--white);
    display: inline-block;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 8px 14px 0 rgba(68, 91, 184, 0.22);
}

.edit-form {
    width: 768px;
    margin: auto;
    background-color: var(--white);
    padding: 5px;
    border-radius: 32px;
    max-width: 100%;
    padding-bottom: 50px;
}

.edit-form__top {
    display: flex;
}

.edit-form .back-to-webid {
    position: absolute;
    padding-top: 10px;
}

.edit-form .back-to-webid a {
    line-height: 1.5;
    font-size: 16px;
    font-weight: 500;
    color: var(--grey);
}

.edit-form .heading {
    font-size: 22px;
    line-height: 1.455;
    font-weight: 800;
    margin: 0;
}

.edit-form .sub-heading {
    font-size: 13px;
    line-height: 1.846;
    font-weight: 500;
    color: var(--grey);
    margin: 0 0 10px 0;
}

.edit-form .text-area {
    margin-bottom: 47px;
    text-align: left;
}

.edit-form .edit-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.edit-form .edit-filters-issuers {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.edit-form .edit-filters-issuer {
    list-style-type: none;
}

.edit-form .issuer-users {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.edit-form .issuer-users-popup {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background-color: var(--white);
    align-items: center;
    padding: 12px 0;
    box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12),
    0 5px 5px -3px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
}

.inrupt-webid-issuer-wrapper:hover .issuer-users-popup,
.inrupt-webid-issuer-wrapper:focus .issuer-users-popup,
.issuer-users-popup:hover .issuer-users-popup {
    display: flex;
}

.edit-form .issuer-users-popup::before {
    content: '';
    border-bottom: 7px solid var(--white);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    position: absolute;
    bottom: 100%;
    right: 12px;
}

.edit-form .issuer-users-popup button {
    font-size: 16px;
    line-height: 1.5;
    color: var(--black);
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none;
    padding: 0;
    outline: none;
    background-color: var(--white);
    border: none;
    text-align: left;
    width: 100%;
    flex: 1;
    padding: 0 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.edit-form .issuer-users span {
    flex: 1;
}

.edit-form .issuer-users .inrupt-webid-issuer-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 16px 12px 16px 24px;
}

.edit-form .issuer-users .inrupt-webid-issuer-wrapper .inrupt-webid-delete-btn-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-left: 10px;
    cursor: pointer;
    width: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    margin-top: 44px;
}

.edit-form .edit-filters input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 16px;
    border: 1px solid var(--light-grey);
}

.edit-form .edit-filters .heading {
    margin-bottom: 8px;
}

.edit-form .edit-filters label {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--grey);
    display: block;
    line-height: 1.846;
    font-size: 13px;
}

.edit-form .edit-filters .edit-filters-issuer {
    margin-bottom: 20px;
}

.edit-form .edit-filters .small,
.edit-form .edit-filters-types label {
    margin-bottom: 10px;
}

.edit-form .edit-filters ul {
    padding-left: 0;
    margin-top: 0;
}

.edit-form .edit-filters-types select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 16px;
    border: 1px solid var(--light-grey);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url(./images/chevron-down.svg) center right 20px / 15px 15px no-repeat, var(--white);
    cursor: pointer;
}

.usernameIsNull p {
    margin-bottom: 75px;
}

.usernameIsNull .pod-card__btn {
    margin-bottom: 30px;
}

.usernameIsNull .pod-card__link {
    margin-bottom: 0;
}

.usernameIsVerified p {
    margin-top: 70px;
    padding: 0 10px;
    margin-bottom: 30px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .main-wrapper {
        margin-top: 0;
    }
    .pod-card {
        padding: 25px 15px;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .edit-form {
        padding: 20px;
        border-radius: 0;
        background-color: transparent;
    }

    .edit-form .back-to-webid {
        top: 53px;
    }

    .edit-form .edit-filters {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    header.header {
        position: static;
        margin: auto;
        margin-top: 48px;
    }
}
