* {
    margin: 0px;
    padding: 0px;
}

@font-face {
    font-family: 'Melforine';
    src: url("fonts/Melforine.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gelineos';
    src: url('fonts/Gelineos.otf') format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* General styling */

header {
    width: 100%;
    height: 300px;
    background: #fff;
    border-bottom: 3px solid black;
}

img {
    width: 843px;
    max-height: 900px;
    object-fit: cover;
    object-position: center;
}

/* Styling for the body of the page */
.bigContainer {
    display: flex;
    align-items: stretch;
}

.rightdoc {
    text-align: center;
}

.artwork {
    text-align: center;
    width: 843px;
    margin-left: 30px;
    margin-right: 100px;
}

/* Styling the guesses */

.guessing {
    font-size: 25px;
    font-family: "Melforine", sans-serif;
    color: black;
    margin-top: 70px;
}

.previousGuesses {
    font-size: 22px;
    font-family: "Melforine", serif;
    margin-top: 30px;
}

ul {
    margin-top: 10px;
    list-style-type: none;
}

ul li {
    font-size: 22px;
    font-family: "Melforine", serif;
    padding-top: 5px;
    padding-bottom: 5px;
}

#guessesLeft {
    font-size: 22px;
    font-family: "Melforine", serif;
    margin-top: 20px;
}

#guessInput {
    font-size: 22px;
    font-family: "Gelineos", serif;
    color: black;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid black;
    margin-top: 30px;

}

#submitGuess {
    font-size: 22px;
    font-family: "Gelineos", serif;
    color: black;
    background: none;
    border-radius: 2px;
    width: fit-content;
    padding: 5px 5px;
    height: fit-content;
}

/* Header styling */

.container {
    position: relative;
    text-align: center;
    color: white;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    font-size: 150px;
    font-family: 'Melforine', serif;
    color: black;
    white-space: nowrap;
}

/* Styling for buttons */
.instructions {
    position: absolute;
    top: 230px;
    left: 90%;
    z-index: 10;
}

.instructions button {
    border: none;
    background: none;
}

.closeInstructionBtn {
    top: 20px;
    left: 90%;
    z-index: 10;
}

#loadArt {
    font-size: 25px;
    font-family: "Melforine", sans-serif;
    color: black;
    background: none;
    border: none;
    margin-top: 40px;
    margin-bottom: 20px;
    text-decoration: underline; 
}

/* Styling for popup boxes */
.popup {
    width: 600px;
    height: 400px;
    background: #fff;
    border: 2px solid black;
    border-radius: 6px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    text-align: center;
    padding: 0 30px 30px;
    visibility: hidden;
    transition: transform 0.4s, top 0.4s;
}

.losePopup {
    width: 600px;
    height: 400px;
    background: #fff;
    border: 2px solid black;
    border-radius: 6px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    text-align: center;
    padding: 0 30px 30px;
    visibility: hidden;
    transition: transform 0.4s, top 0.4s;
}

#moreArt {
    position: absolute;
    bottom: 20px;
    left: 45%;
    transform: translate(-45%, 0%);
    border: none;
    background: none;
    font-size: 20px;
    font-family: 'Gelineos', serif;
    text-decoration: underline;

}

#closepopup {
    position: absolute;
    top: 0px;
    left: 90%;
    padding: 5px 0;
    background: none;
    border: none;
    color: #fff;
}

#closeLosePopup {
    position: absolute;
    top: 0px;
    left: 90%;
    padding: 5px 0;
    background: none;
    border: none;
    color: #fff;
}

.popup svg {
    padding: 20px 0;
}

.popup h2 {
    font-size: 75px;
    font-family: 'Melforine', serif;
    color: black;
    margin-top: 20px;
    margin-bottom: 30px;
    text-decoration: underline;
}

.popup p {
    font-size: 35px;
    font-family: "Gelineos", serif;
    color: black;
    line-height: 2.0;
}

.losePopup h2 {
    font-size: 75px;
    font-family: 'Melforine', serif;
    color: black;
    margin-top: 20px;
    margin-bottom: 30px;
    text-decoration: underline;
}

.losePopup p {
    font-size: 35px;
    font-family: "Gelineos", serif;
    color: black;
    line-height: 2.0;
}

.instructionPopup {
    width: 700px;
    height: 500px;
    background: #fff;
    border: 2px solid black;
    border-radius: 6px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    text-align: center;
    padding: 0 30px 30px;
    visibility: hidden;
    transition: transform 0.4s, top 0.4s;
}

.instructionPopup button {
    position: absolute;
    top: 0px;
    left: 90%;
    padding: 5px 0;
    background: none;
    border: none;
    color: #fff;
}

.instructionPopup h2 {
    font-size: 50px;
    font-family: 'Melforine', serif;
    color: black;
    margin-top: 50px;
    margin-bottom: 30px;
    text-decoration: underline;
}

.instructionPopup p {
    font-size: 23px;
    font-family: "Gelineos", serif;
    color: black;
    line-height: 2.0;
}

.open-popup {
    visibility: visible;
    top: 5px;
    transform: translate(-50%, 50%) scale(1);
}

/* Styling images on second page */
#moreArtContainer {
    margin-top: 30px;
    display: flex;
    align-items: center;
}

#img2 {
    margin-left: 20px;
}

#img3 {
    margin-top: 20px;
    margin-left: 421px;
}