:root {
    --text-primary: #263343;
    --theme-color: #43BDFE;
    --gradient-secondary: #00D3FB;
}

html, body {
    overflow: hidden;
}

* {
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;

    &::-webkit-scrollbar-thumb {
        display: none;
    }

    &::-webkit-scrollbar-track {
        background-color: transparent;
    }

    &::-webkit-scrollbar {
        width: 4px;
        height: 4px;
        background-color: transparent;
    }
}

.hidden {
    opacity: 0 !important;
}

.alert-text {
    position: absolute;
    display: none;
    bottom: -226px;
    font-size: 16px !important;
    color: red;
    
    animation: text-pop-in ease-out 0.5s;
}

@keyframes text-pop-in {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

a {
    position: relative;
    color: var(--theme-color);
    text-decoration: none;
    font-weight: bold;
    margin-left: 4px;

    transition: all 0.25s ease-out;
}

a::after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    bottom: -2px;
    background-color: var(--theme-color);
    height: 1.5px;
    width: 0;

    transition: all 0.1s ease-out;
}

a:hover::after {
    width: 100%;
}

.main-header {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.upload-label {
    font-weight: 500;
    line-height: 1.25rem;
}

.photo-grid {
    display: grid;
    box-sizing: border-box;
    justify-content: center;
}

.photo-upload-pair {
    width: calc(140.5px + 140.5px + 5px);
    position: relative;
    display: grid;
    justify-items: center;
    transition: opacity 0.25s ease-out;
}

.angle-image {
    justify-self: center;
    width: 200px;
    height: 200px;
}

.angle-image>img {
    width: 200px;
}

.button-container {
    display: grid;
    grid-auto-flow: row;
    gap: 10px;
    margin-top: 20px;
}

.button-container>p {
    text-align: center;
    color: gray;
}

.button-container button {
    border-radius: 500px;
    padding: 15px;
    border: none;
    outline: none;
    color: gray;
    transition: all 0.25s ease-out;
    display: flex;
}

.button-container button:hover {
    scale: 1.03;
    cursor: pointer;
}

.next-button>div {
    font-size: 17px;
    text-align: center;
    align-self: center;
    color: white;
    margin-left: auto;
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.next-button>svg {
    margin-right: auto;
}

.next-button {
    background-color: var(--gradient-secondary);
    outline: 1px solid var(--gradient-secondary);
    color: white;
    gap: 10px;
    width: 100%;
    height: 100%;
}

#library-button {
    width: 0;
    height: 0;
    border-radius: 500px;
    align-items: center;
    justify-items: center;
    padding: 0;
    flex: none;
    
    animation: grow-library-button 0.25s ease-out forwards;
    animation-delay: 0.5s;
}

#library-button>svg {
    width: 25px;
    height: 25px;
    position: relative;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}

@keyframes grow-library-button {
    0% {
        width: 0;
        height: 0;
    }
    
    100% {
        width: 54px;
        height: 54px;
    }
}

.back-button-container {
    display: flex;
    margin-left: auto;
    margin-right: auto;
}

.back-button-container>p {
    color: gray;
    font-size: 16px;
}

.back-button {
    background-color: white;
    outline: 1px solid gray;
    display: block !important;
    font-size: 17px;
}

.photo-upload-pair>div,
.photo-upload-pair>img {
    border-color: var(--text-primary);
    border-radius: 1rem;
    height: 400px;
    width: calc(400px * (2 / 3));

    animation: card-animation 0.5s ease-in-out forwards;
}

.photo-buttons {
    display: flex;
    gap: 10px;
}

.photo-upload-pair img {
    object-fit: cover;
    border-style: solid;
    border-width: 1px;
    z-index: 10;

    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.photo-upload-pair>div {
    position: relative;
    border-style: dashed;
    border-width: 2px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    display: flex;

    transition: all 0.25s ease-out;
}

.photo-upload-pair>div:not(.has-photo):not(.hover-disabled):hover {
    scale: 1.05;
    border-color: var(--theme-color);
    cursor: pointer;
}

.photo-upload-pair>div img {
    position: absolute;
    width: 140.5px;
    height: 140.5px;
    object-fit: cover;
    opacity: 1;
}

.invisible {
    display: none;
}

.photo-upload-pair>div input {
    display: none;
}

.photo-upload-pair>div svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.photo-upload-pair>div span {
    font-size: .75rem;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
}

.photo-upload-pair p {
    font-size: .75rem;
    text-align: center;
}

.remove-button {
    position: absolute;
    top: -10px;
    right: -10px;
    border: none;
    border-radius: 50px;
    width: 30px;
    height: 30px;
    background-color: rgb(175, 175, 175);
    color: white;
    font-size: 15px;
    font-weight: bold;

    box-shadow: -1px 1px 18px 0 rgba(0, 0, 0, 0.24);
    -webkit-box-shadow: -1px 1px 18px 0 rgba(0, 0, 0, 0.24);
    -moz-box-shadow: -1px 1px 18px 0 rgba(0, 0, 0, 0.24);

    transition: all 0.25s ease-out;

    z-index: 14;
}

.remove-button:hover {
    scale: 1.1;
    cursor: pointer;
}

.submit-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
}

.submit-container button {
    display: inline-flex;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    color: white;
    background-color: var(--theme-color);
    font-weight: 600;
    font-size: 100%;
    justify-content: center;
    align-items: center;
    width: 297px;
    height: 48px;
    margin-top: 20px;

    box-shadow: rgba(99, 99, 99, 0.2) 0 2px 8px 0;

    transition: all 0.25s ease-out;
}

.submit-container button>p {
    color: white;
    font-size: 100%;
    font-weight: 600;
}

.submit-container button:hover:not(:disabled) {
    cursor: pointer;

    box-shadow: rgba(50, 50, 93, 0.25) 0 13px 27px -5px, rgba(0, 0, 0, 0.3) 0 8px 16px -8px;

    transform: translateY(-5px)
}

.submit-container button:active:not(:disabled) {
    background-color: var(--theme-color);
}

.submit-container button:disabled {
    opacity: 0.6;
}

.submit-container button svg {
    margin-left: 20px;
    width: 1rem;
    height: 1rem;
}

.checkbox-container {
    display: inline-block;
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    user-select: none;
    align-content: center;
}

.checkbox-container>p {
    transform: translateY(-6px);
    height: 25px;
}

.custom-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: white;
    border-radius: 4px;
    transition: all 0.3s ease-out;

    outline: var(--theme-color) solid 2px;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.custom-checkbox:checked~.checkmark {
    background-color: var(--theme-color);
    box-shadow: 0 3px 7px rgba(33, 150, 243, 0.3);
}

.custom-checkbox:checked~.checkmark:after {
    display: block;
}

@keyframes checkAnim {
    0% {
        height: 0;
    }

    100% {
        height: 10px;
    }
}

.custom-checkbox:checked~.checkmark:after {
    animation: checkAnim 0.2s forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pan-in {
    from {
        transform: translateY(-50px);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes pan-in-left {
    from {
        transform: translateX(-50px);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes pan-in-right {
    from {
        transform: translateX(50px);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes card-animation {
    0% {
        scale: 0.5;
        opacity: 0;
    }

    100% {
        scale: 1;
        opacity: 1;
    }
}

.photo-upload-pair>div>svg {
    transition: all 0.25s ease-out;
}

.photo-upload-pair>div:hover>svg {
    transform: translateY(-10px);
    z-index: 0;
}

.source-selection {
    z-index: 13;

    position: absolute;
    display: none;
    background-color: white;
    border-radius: 1rem;
    width: 100%;
    height: 100%;
}

.cam-selection,
.file-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50%;

    transition: all 0.25s ease-out;

    user-select: none;
}

.cam-selection:hover,
.file-selection:hover {
    scale: 1.05;
    cursor: pointer;
}

.cam-selection:hover>p,
.file-selection:hover>p {
    color: var(--theme-color);
}

.cam-selection {
    flex-direction: column;
    animation: photo-anim 0.25s ease-out;
}

.file-selection {
    flex-direction: column-reverse;
    animation: file-anim 0.25s ease-out;
}

.selection-separator {
    width: 100%;
    height: 1.4px;
    background-color: #c2c2c2;

    animation: separator-anim 0.5s ease-out;
}

@keyframes photo-anim {
    from {
        transform: translateY(-50%);
        opacity: 0;
    }

    to {
        transform: translateY(0%);
        opacity: 1;
    }
}

@keyframes file-anim {
    from {
        transform: translateY(50%);
        opacity: 0;
    }

    to {
        transform: translateY(0%);
        opacity: 1;
    }
}

@keyframes separator-anim {
    0% {
        width: 0;
        height: 1.4px;
    }

    50% {
        width: 0;
        height: 1.4px;
    }

    to {
        width: 100%;
        height: 1.4px;
    }
}