@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Exo+2:wght@500&display=swap');

html {
    height: 99%;
    background:
            linear-gradient(#e0dab8, #c7d3bf, #7c9a92, #536d6c, #314448) no-repeat center center fixed;
    background-blend-mode: hard-light;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

body {
    margin: 0;
    font-family: 'Exo 2', sans-serif;
    align-items: center;
    padding-bottom: 100px;
}

header {
    font-family: 'Dancing Script', cursive;
    border: solid 2pt #2e888888;
    border-radius: 30pt;
    background-image:
            linear-gradient(to bottom, rgba(245, 246, 252, 0.12), rgba(70, 149, 151, 0.73)),
            url('https://aleksandrnurk22.thkit.ee/images/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0 2%;
    width: 50%;
    border-top-color: #2f6688dd;
    margin: 1% auto;
}

main {
    width: 80%;
    margin: auto;
}

header h1 {
    letter-spacing: 10px;
    font-variant-caps: all-small-caps;
    font-size: 36px;
    text-align: center;
    color: blanchedalmond;
}

header h2 {
    text-align: center;
    text-decoration-color: blanchedalmond;
    color: blanchedalmond;
}

.opilased > .opilased-image {
    width: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all .2s ease-in-out;
    margin: 10px;
    border: 1px solid white;
    border-radius: 50%;
}

.opilased > .opilased-image:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 0 30px 10px;
}

.opilased > .opilased-image img {
    width: 250px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    height: 100%;
    backface-visibility: hidden;
    pointer-events: auto;
}

.opilased > .opilased-image span {
    position: absolute;
    font-style: italic;
    font-size: 18pt;
    text-transform: uppercase;
    text-align: center;
    width: 250px;
    height: 253px;
    border-radius: 50%;
    background: linear-gradient(
            to top,
            hsla(0, 0%, 0%, 0.497) 0%,
            hsla(0, 0%, 0%, 0.417) 7.4%,
            hsla(0, 0%, 0%, 0.337) 15.3%,
            hsla(0, 0%, 0%, 0.259) 23.4%,
            hsla(0, 0%, 0%, 0.186) 31.6%,
            hsla(0, 0%, 0%, 0.117) 39.9%,
            hsla(0, 0%, 0%, 0.054) 48.2%,
            hsla(0, 0%, 0%, 0) 56.2%
    );
    transform: rotate(-10deg);
    backface-visibility: hidden;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.opilased > .opilased-image span a {
    color: inherit;
    text-decoration: none;
}

.opilased > .opilased-image span a:hover {
    color: inherit;
    text-decoration: underline;
}

.opilased {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
}

main h2 {
    background-color: blanchedalmond;
    width: 20%;
}

.mees {
    color: lightseagreen;
}

.naine {
    color: deeppink;
}

footer {
    width: 100%;
    height: 80px;

    position: fixed;
    bottom: 0;

    background: #111;
    padding: 20px 0 0 0;
    text-align: center;
}

footer > p {
    color: white;
    padding: 0;
    margin: 0;
}