#user-image { display: block; margin-left: auto; margin-right: auto; max-width: 100%; width: 100%; } #User { display: block; margin-left: auto; margin-right: auto; margin: 1%; } #wrapper { display: flex; justify-content: center; align-items: center; } #user-profile-wrapper { display: inline-grid; margin: 0px; grid-template-areas: "profile-image user-title user-title" "profile-image user-name dx-rating" "profile-image user-class awakens"; gap: 10px; border: 2px solid black; border-radius: 15px; justify-items: center; align-items: center; width: fit-content; margin: 0 auto; font-size: 2em; } @media screen and (max-width: 768px) { #user-profile-wrapper { display: inline-block; margin: 0; border: 2px solid black; border-radius: 15px; align-items: center; justify-content: center; font-size: 1.5em; } } .profile-image { grid-area: profile-image; max-width: 100%; width: 100%; } .user-title { grid-area: user-title; } .user-name { grid-area: user-name; } .dx-rating { grid-area: dx-rating; } .user-rank { grid-area: user-rank; } .awakens { grid-area: awakens; } h4.profile { font-size: 2em; } @media (max-width: 768px) { h4 { font-size: 1.5em; } } .error { display: inline-block; margin: 1em; border: 2px dashed red; border-radius: 10px; align-items: center; justify-content: center; } .buttons { margin-bottom: 2em; display: grid; grid-template-areas: "1a 2b 3c 4d" "5e 6f 7g 8h"; grid-gap: 10px; } .btn1 { grid-area: "1a"; } .btn2 { grid-area: "2b"; } .btn3 { grid-area: "3c"; } .btn4 { grid-area: "4d"; } .btn5 { grid-area: "5e"; } .btn6 { grid-area: "6f"; } .btn7 { grid-area: "7g"; } .btn8 { grid-area: "8h"; } .hidden { display:none !important; } /* Jacket Grid */ .score-grid { display: grid; grid-template-rows: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-areas: 'label0 label0 label0 label0' 'label1 label1 label2 label3' 'label1 label1 label4 label4'; gap: 0px; height: 100%; } .score-title { background-color: #D5BBCA; grid-area: label0; } .score-jacket { background-color: #9EF6B5; grid-area: label1; display: block; margin-left: auto; margin-right: auto; max-width: 25%; width: 25%; } .score-achivement { background-color: #ED69FD; grid-area: label2; } .score-grade { background-color: #9B5999; grid-area: label3; } .score-info { background-color: #58B669; grid-area: label4; }