/* RESET CSS */
:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
    all: unset;
    display: revert
}

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

a,
button {
    cursor: revert
}

menu,
ol,
ul {
    list-style: none
}

img {
    max-inline-size: 100%;
    max-block-size: 100%
}

table {
    border-collapse: collapse
}

input,
textarea {
    user-select: auto
}

meter {
    -webkit-appearance: revert;
    appearance: revert
}

:where(pre) {
    all: revert
}

::placeholder {
    color: unset
}

::marker {
    content: initial
}

:where([hidden]) {
    display: none
}

:where([contenteditable]:not([contenteditable=false])) {
    -moz-user-modify: read-write;
    -webkit-user-modify: read-write;
    overflow-wrap: break-word;
    line-break: after-white-space;
    user-select: auto
}

:where([draggable=true]) {
    -webkit-user-drag: element
}

:where(dialog:modal) {
    all: revert
}

/* END OF RESET CSS*/

/* MAIN CSS */
@import url(https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;700;900&display=swap);

body {
    font-family: 'Lexend Deca', sans-serif;
    color: #382626;
    background: #FFE5E8;
    display: flex;
    justify-content: center;
    position: relative;
}

body,
html {
    overflow-x: hidden
}

.container {
    padding: 32px 32px 0 32px;
    max-width: 576px;
}

footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 24px 4px;
}

.flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    max-height: 800px;
}

.headline {
    text-align: center;
    width: 100%;
}


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

h1 {
    font-weight: 900;
    font-size: 57px;
    line-height: 110.5%
}

h2 {
    font-weight: 900;
    font-size: 40px;
    line-height: 110.5%;
}

h6 {
    font-weight: 700;
    font-size: 20px;
    line-height: 25px
}

p {
    font-weight: 400;
    font-size: 18px;
    line-height: 22px
}

b {
    font-weight: 900
}

#error {
    display: block;
    padding-top: 8px;
    color: #F93838;
}

label {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
}

.icon-sm,
.icon-md,
.icon-lg,
.icon-xl,
.icon-xxl {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-md {
    width: 24px;
    height: 24px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

.icon-xl {
    width: 48px;
    height: 48px;
}

.icon-xxl {
    width: 64px;
    height: 64px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 32px;
}

.my-1 {
    margin: 8px 0;
}

.my-2 {
    margin: 16px 0;
}

.my-3 {
    margin: 32px 0;
}

.px-1 {
    padding: 0 8px;
}

.cpb {
    padding-bottom: 48px;
}

.txtpic {
    width: calc(100vw - 64px);
    max-width: 512px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


/* INPUTS */

form {
    width: 100%;
}

input::placeholder,
textarea::placeholder {
    opacity: 0.8;
}

input[type=number],
input[type=text],
textarea {
    width: 100%;
    background: #fff;
    border: 2px solid #E8C2C2;
    font-weight: 700
}

input[type=text],
textarea {
    border-radius: 18px;
    padding: 20px 24px 21px;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
}

input[type=text] {
    border-radius: 32px;
    padding: 20px 24px 21px
}

input[type=number] {
    width: 100%;
    border-radius: 32px;
    padding: 20px 24px 21px 56px;
    font-style: normal;
    font-size: 18px;
    line-height: 22px;
    appearance: textfield
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}

/* BUTTONS */

.btn-primary,
.btn-secondary {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 32px;
    border-radius: 32px;
    font-style: normal;
    font-weight: 900;
    font-size: 18px;
    line-height: 22px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

.btn-primary.pink {
    background: #FF4468;
    color: #FFF;
}

.btn-primary.pink:active {
    background: #e73c5f;
}

.btn-primary.blue {
    background: #1951E3;
    color: #FFF;
}

.btn-primary.blue:active {
    background: #164ace;
}

.btn-secondary.pink {
    background: transparent;
    color: #FF4468;
    border: 3px solid #FF4468;
    padding-top: 17px;
    padding-bottom: 17px;
}

.btn-secondary.pink:active,
.btn-secondary.blue:active {
    background: #00000008;
}

.btn-secondary.blue {
    background: transparent;
    color: #1951E3;
    border: 3px solid #1951E3;
    padding-top: 17px;
    padding-bottom: 17px;
}

/* CUSTOM BUTTONS */

#delete {
    color: #fff;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    position: absolute;
    /* width: 32px;
    height: 32px; */
    background: #FF4468;
    border-radius: 32px;
    top: 24px;
    right: 24px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

#delete:active {
    background: #e73c5f;
}

.ent-code button {
    width: 64px;
    height: 64px;
    padding: 20px;
    background: #1951e3;
    border-radius: 32px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ent-code button:active {
    background: #164ace;
}

.btn-like {
    min-width: 56px;
    max-height: 32px;
    border-radius: 32px;
    position: absolute;
    right: 10%;
    margin-top: -20px;
    display: flex;
    flex-direction: row;
    font-weight: 700;
    line-height: 98%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* ---- */
    border: 4px solid #f93838;
    background: #fff2f5;
    color: #f93838;
    padding: 4px 8px;
    font-size: 17px;
}

.btn-like.liked {
    padding: 8px 12px;
    border: none;
    background: #f93838;
    color: #fff;
    font-size: 16px;
}

.like-count {
    margin-right: 20px
}

.btn-like .like-count::after {
    content: url('../img/ico1.svg');
    position: absolute;
    right: 8px
}

.btn-like.liked .like-count::after {
    content: url('../img/ico2.svg');
    position: absolute;
    right: 12px
}


/* ACCESS CODE STYLING */



.ent-code form {
    display: flex;
    flex-direction: row;
    gap: 8px
}

.ent-code label {
    position: absolute;
    align-self: center;
    margin-left: 24px
}

@media only screen and (max-width: 400px) {
    .cover-photo img {
        padding: 32px 0 42px 0;
        scale: 1.3;
    }
}

.cover-photo img {
    padding: 32px 0 42px 0;
    scale: 1.2;
    transform: translate(-10px);
}



/* Background elements */

#ellipse-enter {
    background-image: url('../img/ellipse.svg');
    background-position: center -661px;
    background-repeat: no-repeat;
}

#cloud-fs,
#cloud-fe,
#cloud-ss,
#cloud-se {
    position: absolute;
    z-index: -1;
}

#cloud-fs {
    left: calc(50% - 108px/2 - 176px);
    top: 302px;
}

#cloud-fe {
    left: calc(50% - 35px/2 + 146.5px);
    top: 72px;
}

#cloud-ss {
    left: calc(50% - 108px/2 - 176px);
    top: 191px;
}

#cloud-se {
    left: calc(50% - 35px/2 + 156.5px);
    top: 209px;
}

/* END OF ACCESS CODE STYLING */

/* TAKE A PHOTO STYLING */

/* Background elements */

#ellipse {
    background-image: url('../img/ellipse.svg');
    background-position: center -770px;
    background-repeat: no-repeat;
}

/* END OF TAKE A PHOTO STYLING */

/* WRITE WISHES STYLING */

.write {
    width: 100%;
}

.write>label {
    width: 100%;
    display: inline-block;
    padding: 12px 8px;
}

.photo {
    position: relative;
}

.photo img {
    border: 2px solid #E8C2C2;
    border-radius: 18px;
    min-width: 100%;
    width: 100%;
    height: auto;
}

.photo::before,
.photo::after,
.card::before,
.card::after {
    position: absolute;
}

.photo::before,
.card::before {
    content: url('../img/emoji.svg');
    left: -10px;
    bottom: 96px;
}

.photo::after,
.card::after {
    content: url('../img/heart.svg');
    right: -10px;
    top: 96px;
}

.delete {
    color: #FF4468 !important;
}



/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Modal content */
.modal-content {
    background: #FFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 32px 20px;
    gap: 16px;
    border-radius: 18px;
    margin: 50% auto;
    width: 80%;
}

.modal-buttons {
    display: flex;
    gap: 16px;
}

/* END OF WRITE WISHES STYLING */

/* WISHES BOOK STYLING */

.card {
    position: relative;
    padding: 16px 16px 24px;
    background: #FFFFFF;
    border-radius: 18px;
    margin-bottom: 32px;
}

.card img {
    border-radius: 18px;
    width: 100%;
    height: auto;
}

.card::before {
    left: -14px;
}

.card::after {
    right: -14px;
}

.wishes-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px;
    padding-top: 24px;
    gap: 16px;
}

.wishes-text {
    text-align: left !important;
    margin-left: 4px;
    font-weight: 300;
    font-size: 16px;
    line-height: 20px;
}

.signature {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 4px;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
}



/* END OF WISHES BOOK STYLING */

#loader {
    display: none;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFE5E8;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-size: 20px;
    font-weight: 700;
}


.loader-spinner {
    border: 8px solid #FFBCCC;
    border-radius: 50%;
    border-top: 8px solid #FFE5E8;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 1s linear infinite;
    /* Safari */
    animation: spin 1s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

img {
    pointer-events: none;
    -drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.alert {
    display: none;
    position: fixed;
    z-index: 1;
    background: #fff;
    color: #FF4468;
    border-radius: 18px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    margin: 16px;
    justify-content: space-between;
}

.close {
    font-size: 32px;
    cursor: pointer;
    margin-top: -4px;
    -webkit-tap-highlight-color: transparent;
}